src/system
Guide: System Library
Files
| File | Description |
|---|---|
bupdata.c | The save signature and sector header template, and test data nothing reads. |
irq_table.c | The interrupt handlers: the table the IWRAM dispatcher calls through, and the handlers start-up copies into it. |
math_table.c | The tangent table syAtan searches. |
number_text.c | The digits the number text is written with. |
rom_start.c | The cartridge's first instruction, where the BIOS starts the game: ahead of the cartridge header (rom_header.s), it goes on to the game's start-up. |
system.c | The system library's object: power-up and the interrupt handlers, the tick wait and VBlank, input, the register write queue, fades, the sprite lists and VRAM cache, events, maths, debug text, the heap, the 3D transform, decoding, saving, the link cable and the game flags. |
system_bup.c | Saving: flash sectors, parts and the save workspace. |
system_debug_text.c | Number text, the debug text screen and the window graphics. |
system_decompress.c | Resource decoding, through RAM copies of ARM code. |
system_event.c | Events: per-tick and VBlank functions in priority order. |
system_flags.c | gmUnitGet (moved here from TBS's game_units.c, keeping its gm prefix for TBS/TLA parity) and the game flags: bits, bytes and nibbles. |
system_frame.c | Interrupt handlers, the tick wait, key repeat and the VBlank handler. |
system_heap.c | The heap: its two bump allocators and heap slots. |
system_internal.h | What every part of the system library's object shares: its includes. |
system_io_write_queue.c | The register write queue that VBlank carries out after each finished tick. |
system_math.c | Random numbers, angles and square roots. |
system_matrix.c | The 3D transform, its stack, the look-at matrix and the projection. |
system_oam.c | The tick's sprite lists: affine matrices and depth slots. |
system_screen_fade.c | Screen fades through the blend registers. |
system_serial.c | |
system_start_up.c | Power-up, the cartridge's language, the build stamp and code loading. |
system_vram_cache.c | The sprite VRAM cache, which hands out sprite tile VRAM to the actors, icons and portraits on screen and loads their pictures into it; then the affine matrix builder that follows it. |