diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-30 01:34:40 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-30 01:34:40 +0100 |
| commit | 8fcf5bf1f74873f49b792d3e3f661a2e7feda673 (patch) | |
| tree | d134d1c9d50aefcd00f973d34d14c519b0526c77 /Source/System.c | |
| parent | c33fcca6d44264834baf42de65fe9d19c0f62ff4 (diff) | |
Removed SIO interrupt (it caused VBlank ISR not to be triggered).
Added Gfx wait on LoadMenuEnd(). Otherwise, some levels would not start after loading all required files.
Also, added GPU wait on Menu.c before entering the main loop.
An invalid index inside sound table was being accessed when creating an arrival flight. This made the game crash only under real hardware.
Other minor changes and fixes.
Diffstat (limited to 'Source/System.c')
| -rw-r--r-- | Source/System.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/System.c b/Source/System.c index dcdf127..d087639 100644 --- a/Source/System.c +++ b/Source/System.c @@ -16,8 +16,9 @@ #define END_STACK_PATTERN (uint32_t) 0x18022015 #define BEGIN_STACK_ADDRESS (uint32_t*) 0x801FFF00 -#define STACK_SIZE (4 << 10) // 4 KB +#define STACK_SIZE (6 << 10) // 6 KiB #define I_MASK (*(volatile unsigned int*)0x1F801074) +#define I_STAT (*(volatile unsigned int*)0x1F801070) /* ************************************* * Local Prototypes @@ -987,7 +988,7 @@ void SystemCyclicHandler(void) * ****************************************************************************************/ void SystemDisableVBlankInterrupt(void) { - I_MASK &= ~(0x0001); + I_MASK &= ~1; } /* **************************************************************************************** @@ -1002,7 +1003,7 @@ void SystemDisableVBlankInterrupt(void) * ****************************************************************************************/ void SystemEnableVBlankInterrupt(void) { - I_MASK |= (0x0001); + I_MASK |= 1; } /* **************************************************************************************** |
