u32 gCpuLoadPeak
The highest CPU load in the last 30 frames: the scanline the frame's work ended on,...
volatile u8 gCpuLoadDisplayEnabled
Debug: WaitFrames measures the CPU load into gCpuLoadPeak when set.
volatile u8 gSleepDisabled
Nonzero: WaitFrames counts no idle time and ignores sleep requests.
u32 gFrameTick
Counted up by every VBlank.
u32 gPlayTimeFrames
The play time clock, in frames.
u8 gFrameRenderPending
Set by WaitFrames once it has built a frame's OAM list; the VBlank handler then copies the list,...
u8 gSavedStack[]
The caller's stack below the frame-wait stack top, while WaitFrames runs.
volatile u16 gIdleFrames
Frames since a key was last held.
volatile u8 gSleepRequested
1: sleep this frame; more: count down to it.
u32 gCpuLoadTimer
Frames gCpuLoadPeak is still held.
u8 gResetRequested
Set by the keypad interrupt; WaitFrames performs the soft reset.
volatile u16 gVBlankDone
Bit 0 is set by the VBlank handler; WaitFrames clears it and halts until it is set again.
void(*) gVBlankHook(void)
Run once by the next VBlank handler, which clears it first.
u8 gDebugMode
Debug builds: Start+Select pauses the frame loop.
u8 gOamCopyEnabled
The VBlank handler copies the OAM list only while it is set; scenes clear it to keep their own sprite...
volatile u16 gLagFramesShown
gLagFrameCount as the last frame left it; the text typing paces itself by it.
u32 gCartridgeResetMarker
Written by the soft reset just before it restarts the cartridge, and cleared by System_Initialize; no...
u32 gSavedStackSize
Bytes of the caller's stack WaitFrames has copied into gSavedStack, or 0.
u16 gLagFrameCount
VBlanks since WaitFrames last started a frame: 1 when the frame took one.
u8 gDebugPaused
The debug pause is on.
volatile u16 gSleepComboFrames
Frames L and R have been held together; three seconds request sleep.
volatile u32 gFrameCount
Frames WaitFrames has finished.
volatile u8 gIdleSleepEnabled
Sleep after three idle minutes.
The integer types, TRUE, UNUSED and the fixed-address macros.