src/system/system_internal.h
What every part of the system library's object shares: its includes and the one call into the compiler's library that two parts make. More…
#include "resource_ids.h"#include "battle/battle.h"#include "field/engine_stubs.h"#include "game/game.h"#include "sdk/flash.h"#include "sound/stubs.h"#include "system/rom_header.h"#include "graphics/graphics.h"#include "window/window.h"
Included by system.c.
Macros
| Name | Description | |
|---|---|---|
#define | syStackPointerGet (variable) | Reads the hardware stack pointer into variable. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | _call_via_r3 (Sint32, Sint32, Sint32, Sint32) | The compiler library's call through r3, which system_oam.c uses to run code copied to RAM. |
static __inline__ void | syStackPointerSet (Uint8 *value) | Moves the hardware stack pointer to value. |
Description
What every part of the system library's object shares: its includes and the
one call into the compiler's library that two parts make. system.c includes
it before the parts.
Macros in detail
syStackPointerGet
#define syStackPointerGet(variable)
Reads the hardware stack pointer into variable. A statement, not an inline
function: sySynch matches only when the asm writes its local itself.
FAKEMATCH(asm): sp read, which C has no name for.
Referenced by sySynch().
Definition at line 27 of file system_internal.h.
Functions in detail
_call_via_r3
Sint32 _call_via_r3(Sint32, Sint32, Sint32, Sint32)
The compiler library's call through r3, which system_oam.c uses to run code
copied to RAM.
Referenced by syOAMResetTick().
Definition at line 20 of file system_internal.h.
syStackPointerSet
static __inline__ void syStackPointerSet(Uint8 *value)
Moves the hardware stack pointer to value.
Referenced by sySynch().
Definition at line 32 of file system_internal.h.