Skip to Content
The Alchemy Project

src/system

Guide: System Library

Files

FileDescription
bupdata.cThe save signature and sector header template, and link test data nothing reads.
math_table.cTrigonometry tables: a quarter-wave sine, tangents and the quadrants' sines.
number_text.cThe digit characters and place values numbers are 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.
sprite_metadata.cFinding a sprite animation's metadata row.
system.cThe system library's object: what every other part of the game stands on.
system_bup.cSaving: flash sectors, parts and the save state.
system_debug_text.cNumber text, the debug text screen and the window graphics.
system_decompress.cResource decoding and pixel buffer shading, through RAM copies of ARM code.
system_event.cEvents: per-tick and VBlank functions in priority order.
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 and the one call into the compiler's library that two parts make.
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, depth slots and the OAM build.
system_screen_fade.cScreen fades through the blend registers: the screen brightens toward white or darkens toward black, BLDY running from 0, the picture as drawn, to FADE_LEVEL_MAX, all white or all black, one step each VBlank.
system_serial.cThe link cable: payload exchange, block transfers and the link test.
system_start_up.c
system_vram_cache.cThe sprite VRAM cache: blocks, entries and loading pictures.

On this page