From fb06e4a3c94ae17b73df6d3aecf2d18213aa183e Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Wed, 26 Jun 2019 08:13:38 -0400 Subject: Modernize code Can compile with arm-none-eabi-gcc 8.3.0 gbafix correctly handles ELF input --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 40381bb68..d0c9ff7b4 100644 --- a/src/main.c +++ b/src/main.c @@ -85,7 +85,7 @@ void EnableVCountIntrAtLine150(void); void AgbMain() { - RegisterRamReset(RESET_ALL); + RegisterRamReset(MODERN ? RESET_ALL & ~RESET_IWRAM : RESET_ALL); *(vu16 *)BG_PLTT = 0x7FFF; InitGpuRegManager(); REG_WAITCNT = WAITCNT_PREFETCH_ENABLE | WAITCNT_WS0_S_1 | WAITCNT_WS0_N_3; -- cgit v1.2.3