static int xform_s;
static short vblcount;
+static void *prev_iwram_top;
static inline void xform_pixel(int *xp, int *yp);
uint8_t *cptr;
struct enemy *enemy;
+ prev_iwram_top = iwram_sbrk(0);
+
gba_setmode(4, DISPCNT_BG2 | DISPCNT_OBJ | DISPCNT_FB1);
vblperf_setcolor(0);
static void gamescr_stop(void)
{
+ iwram_brk(prev_iwram_top);
}
static void gamescr_frame(void)
update_keyb();
- if(KEYPRESS(BN_SELECT)) {
- vox_quality ^= 1;
+ if(KEYPRESS(BN_START)) {
+ /* TODO pause menu */
+ change_screen(find_screen("menu"));
}
if(keystate) {
REG_BG2PC = -sa;
REG_BG2PD = ca;
- keystate = ~REG_KEYINPUT;
-
if((keystate & (BN_LEFT | BN_RIGHT)) == 0) {
if(bank) {
bank -= bankdir << 4;