Skip to Content
The Alchemy Project

src/system

Guide: System Library

Files

FileDescription
bupdata.cThe save signature and sector header template, and test data nothing reads.
irq_table.cThe interrupt handlers: the table the IWRAM dispatcher calls through, and the handlers start-up copies into it.
math_table.cThe tangent table syAtan searches.
number_text.cThe digits the number text is written with.
rom_start.cThe 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.cThe 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.cSaving: flash sectors, parts and the save workspace.
system_debug_text.cNumber text, the debug text screen and the window graphics.
system_decompress.cResource decoding, through RAM copies of ARM code.
system_event.cEvents: per-tick and VBlank functions in priority order.
system_flags.cgmUnitGet (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.cInterrupt handlers, the tick wait, key repeat and the VBlank handler.
system_heap.cThe heap: its two bump allocators and heap slots.
system_internal.hWhat every part of the system library's object shares: its includes.
system_io_write_queue.cThe register write queue that VBlank carries out after each finished tick.
system_math.cRandom numbers, angles and square roots.
system_matrix.cThe 3D transform, its stack, the look-at matrix and the projection.
system_oam.cThe tick's sprite lists: affine matrices and depth slots.
system_screen_fade.cScreen fades through the blend registers.
system_serial.c
system_start_up.cPower-up, the cartridge's language, the build stamp and code loading.
system_vram_cache.cThe 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.

On this page