src/system/system_internal.h
What every part of the system library's object shares: its includes. More…
#include "game/game.h"#include "graphics/graphics.h"#include "sound/sound.h"#include "macros.h"#include "sdk/flash.h"#include "system/rom_header.h"#include "sound/sound_driver_symbols.h"#include "sdk/sound_driver.h"
Included by system.c.
Macros
| Name | Description | |
|---|---|---|
#define | DEBUG_TEXT_SCREEN_BLOCK 4 | The screen block of the debug text's map, which the link test also draws on. |
Functions
| Name | Description | |
|---|---|---|
static inline Sint32 | sySerialAddErrorFlag (Sint32 status) | status, with LINK_STATUS_ERROR set when the link's last transfer failed. |
static __inline__ void | syMatrixStoreUnit (MATRIX matrix) | Stores the unit matrix at matrix: three runs of 1.0 and three zeros, the rotation's diagonal and a translation of 0. |
static __inline__ void | syUnitMatrixCurrentInline (void) | Resets the current matrix to the unit matrix: syMatrixStoreUnit's stores, with CurrentMatrix's address in r3, which the stores then set to 0. |
static __inline__ void | syCartJump (Uint32 entry) | Jumps to entry and does not return: the cartridge restart, a bx with no return, which no C call compiles to. |
Description
What every part of the system library's object shares: its includes. system.c
includes it before the parts; a part includes only what it adds.
Macros in detail
DEBUG_TEXT_SCREEN_BLOCK
#define DEBUG_TEXT_SCREEN_BLOCK 4
The screen block of the debug text's map, which the link test also draws on.
Referenced by syPrint(), syPrintClear() and sySerialTestRun().
Definition at line 17 of file system_internal.h.
Functions in detail
sySerialAddErrorFlag
static inline Sint32 sySerialAddErrorFlag(Sint32 status)
status, with LINK_STATUS_ERROR set when the link's last transfer failed.
References SerialStateWork and Sint32.
Referenced by sySerialGetLinkStatus().
Definition at line 25 of file system_internal.h.
syMatrixStoreUnit
static __inline__ void syMatrixStoreUnit(MATRIX matrix)
Stores the unit matrix at matrix: three runs of 1.0 and three zeros, the
rotation's diagonal and a translation of 0. The system library's own copy of
syUnitMatrix, which builds 1.0 before the zeros.
Referenced by syMatrixScaleUniform(), syMatrixScaleVector(), syMatrixSetRotateY(), syMatrixTranslateVector(), syRotX(), syRotY(), syRotZ(), syScale() and syTranslate().
Definition at line 35 of file system_internal.h.
syUnitMatrixCurrentInline
static __inline__ void syUnitMatrixCurrentInline(void)
Resets the current matrix to the unit matrix: syMatrixStoreUnit's stores,
with CurrentMatrix's address in r3, which the stores then set to 0.
syMatrixStoreUnit itself cannot be used here: with r3 on its list of what it
destroys the address goes to r5, which then needs saving.
References CurrentMatrix.
Referenced by syInitMatrix() and syUnitMatrixCurrent().
Definition at line 53 of file system_internal.h.
syCartJump
static __inline__ void syCartJump(Uint32 entry)
Jumps to entry and does not return: the cartridge restart, a bx with no
return, which no C call compiles to. It lists what a call changes, r0 to r3,
ip and lr, which leaves entry in r4.
Definition at line 72 of file system_internal.h.