Skip to Content
The Alchemy Project

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…

Included by system.c.

Macros

NameDescription
#definesyStackPointerGet (variable)Reads the hardware stack pointer into variable.

Functions

NameDescription
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__ voidsyStackPointerSet (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.