Glossary
This glossary gives plain definitions of the technical and game-specific terms used across Golden Sun: The Lost Age's documentation and source code.
A reconstructed Game Boy Advance game mixes three vocabularies at once: Golden
Sun's own English and Japanese game terms, Sega's Saturn Graphics Library
(SGL) naming style used across Japanese studios around 2000, and GBA
hardware names from GBATEK. Several everyday words, such as event,
trigger, and character, carry a specific meaning in this codebase that
differs from their meaning in modern engines.
Each entry gives a short explanation of a term found in the guides or source comments, with a link to the division guide that covers it in full.
Project & 2000-Era Studio Conventions
Matching decompilation
Reconstructed C, assembly, and readable assets (PNG, WAV, MIDI, .po, and
.tsv) that compile and link into a ROM byte-for-byte identical to the
original retail cartridge, with shipped bugs and quirks kept intact
(Documentation home).
Edition
One of the six retail releases of The Lost Age (tla-ja, tla-en, tla-de,
tla-es, tla-fr, and tla-it). The five non-Japanese releases are the
international editions, which also differ slightly in code. For example, the
map screen draws a marker's name immediately in tla-ja and 6 ticks later in
international editions.
2000-era studio & SGL vocabulary
No original Camelot symbol names are known. Alchemy names routines in the manner
of Japanese console C around 2000 and Sega's SGL, using the game's own Japanese
terms (エナジー / Psynergy, ジン / Djinn, セット / Set, スタンバイ /
Standby, リカバリー / Recovery). Several period terms explain why the codebase
uses specific words:
| Period word | Meaning in this codebase |
|---|---|
mode | A setting, as in SGL's screen, colour and TV modes and the game's DebugMode; never an engine |
event | Per-tick C callback in EventBuf, not a cutscene (Event) |
trigger | A gamepad button press, which is why scene interaction rows are called cues |
character / cell | An 8×8 hardware tile, which is why a 16×16 map square is called a metatile |
work (wk) | Persistent state struct or RAM buffer (MainRoutineStateWork, RamHeapSlots) |
pattern (pat) | One frame or picture inside a sprite sheet |
sequence | A MIDI song played by MusicPlayer2000 (m4a) |
transfer | Copying prepared RAM buffers to VRAM during VBlank |
backup (bup) | Non-volatile flash save memory (syBup*) |
dummy | An unused or placeholder function or table slot |
BUG, BUGFIX, and UBFIX
Source markers that preserve retail behaviour beside clean fixes. /* BUG: */
and BUGFIX keep a shipped bug (such as Shaman Village allocating 7 of 8 sprite
pictures and overflowing by 1,024 bytes) beside an opt-in fix. /* UB: */ and
UBFIX mark C undefined behaviour (such as an uninitialised read in battle
background code) beside a clean version.
Unused
Code or data present on the retail cartridge that nothing in normal gameplay
ever reaches, such as an infinite-random-battle test function nothing calls.
Comments opening with Unused: explain why, and UNUSED marks unreferenced
functions. Code reachable through debug menus is not counted as
unused.
Module, stub, and parts
One of the 15 fixed-address stretches of always-loaded Thumb code in the
main image (ld_script.ld, adding Super Lucky Dice over TBS's 14).
Cross-module calls jump through fixed 8-byte *Stub thunks (stubs.s, such as
btRunStub to btRun), except module 0 (system/), which resident modules
call directly. Large translation units (battle/battle.c,
battle_effect/battle_effect.c, and shop/shop.c) #include sibling .c
parts in ROM order to match one compiled .o object.
Engine & Hardware
Engine
One of the five game states gmMainRoutineRun runs, one at a time: the field
engine (one scene), the battle engine (ENGINE_BATTLE), the Lucky Dice engine
(ENGINE_LUCKY_DICE), the Lucky Wheels engine (ENGINE_LUCKY_WHEELS), or the
Super Lucky Dice engine (ENGINE_SUPER_LUCKY_DICE). Each engine is built on
the system library (sy…), which is a library rather than an engine because it
has no loop of its own. Menus, shops, and Sunshine's Forge are blocking
functions inside the field engine, not engines
(The system library). A mode is
only ever a setting, such as a colour mode or DebugMode.
Wait, tick, frame, VBlank, and slowdown
- Wait: Calling
sySynch(n)(system_frame.c), which runsngame ticks inline on the caller's stack and returns (combining SGL'sslExecuteEventandslSynch). Only foreground C may callsySynch(). - Tick: One logical game-loop step (
TickCount) insidesySynch(). - Frame and VBlank: One ~60 Hz display refresh (
FrameCount) ending in the vertical blanking interrupt (syVBlankHandler), which refreshes DMA sound buffers (SoundDriverVSyncRefresh), commits finished ticks, polls input, and mixes overrun audio frames (IwramSoundRenderVBlank). - Slowdown: When a tick exceeds one frame, VBlank redisplays the prior frame until the tick finishes, stretching tick-timed gameplay smoothly while VBlank-timed music keeps exact tempo.
Event
A registered C callback (EVENT in EventBuf, capacity 24) called once per
tick by sySynch() (EVENT_PASS_TICK = 0x480) or once per frame by
syVBlankHandler (EVENT_PASS_VBLANK = 0xC80), sorted descending by priority
so the VBlank IRQ handler exits early at the first tick-pass entry. It is not
a cutscene (see
Cue, script, and script command).
Fixed-point and angle
Signed 16.16 fixed-point numbers (FIXED, toFIXED, FIXEDtoINT, and
FX-suffixed functions) and 16-bit turns (ANGLE, 65536 = 360°, DEGtoANG),
following Sega's SGL conventions.
IWRAM, EWRAM, and heap slots
GBA Work RAM regions (GBATEK): 32 KB fast single-cycle IWRAM (stack, IRQs,
hot ARM math, 3D rasterisers, and audio mixer) and 256 KB slower EWRAM
(persistent globals, 32 KB unpacked overlay, and current map). Two linear bump
allocators (IwramHeap and EwramHeap) wipe between engines, while 62
numbered heap slots are accessed directly at a fixed address via
RamHeapSlots (for example, RamHeapSlots->fieldState).
Resource directory and overlay
syResourceDirectoryTable (resource_directory.s) is a flat 2,048-row ROM
pointer table for compressed assets and 114 -Os scene overlays. Entering a
scene unpacks one overlay into EWRAM (0x02008000) and patches its long
branches, exposing a fixed 7-stub entry table (scene/entry.s, adding
scPrepareMap) and a build-generated import table
(The system library).
Flash chip
The 64 KB non-volatile save chip on the 16 MB Game Pak, divided into sixteen
4 KB sectors. Each of the three save files uses one 12 KB copy (3 contiguous
sectors) across 5 available slots (2 always spare) for atomic copy-on-write
saving via syBup*.
World, Scenes & Maps
Scene, area, and rooms map
A scene is one loadable place (ScenesWork, 325 rows) binding an
overlay, map, area, and flags. An area (97 areas) groups related scenes
that share a banner, music rules, and area-temp flags. Building interiors pack
side by side onto a shared 128×128 rooms map (such as champa_rooms.c),
isolated by entrance camera bounds.
Map and metatile
A 128×128 grid of 16×16-pixel metatiles drawn across 3 GBA background layers
(ground, walls, and roofs). Each TLA metatile combines four grids: 2×2 tiles
(grid_picture.tsv), metatile behaviour (grid_behavior.tsv), dedicated
terrain flags (grid_shape.tsv), and ground height shape (shape_grid.tsv)
(World, Scenes & Maps).
Actor and actor script
An actor (ActorsWork, up to 64 per scene across 80 scene actor IDs) is
any independent field entity: the leader, NPCs, chests, water splashes, Sand
grains, Psynergy sparks, or the camera target. Each runs a non-blocking SC_*
bytecode actor script stepped every tick by fdActorUpdateAllOnField,
followed by fdActorMoveWithCarriers for riding actors. An actor's watched
actor is the target ID stored beside its script so generic facing and walking
orders work for any pair of actors.
Cue, script, and script command
A cue is one row of a scene's interaction table (CUE_TALK, CUE_STEP,
CUE_EXAMINE, PSYNERGY_ON_*, or CUE_EXIT), scanned top-down so the first
match wins. A script (sc*) is a blocking C cutscene function in an overlay
built from script commands (fdScript*, fdActor*, fdCamera*). It is
distinct from an actor script or an event.
Field request
A prioritised request recorded in FIELD_STATE (RamHeapSlots->fieldState)
during a tick and serviced between ticks by fdEngineRun (12 kinds, with step
cues and pushes serviced before random battles in TLA).
Still image and map screen
Because the tilted World Map consumes the GBA's affine background layer, opening
a menu or dialogue first freezes the view onto a static still image, so that
UI windows have a layer to draw on. Pressing R on the World Map opens the flat
map screen, placing a marker for every visited area (L and R cycle
markers, and Select zooms out).
Lemurian Ship
Piers's ship, which replaces the leader actor on the World Map to sail across the sea with dedicated sea encounter zones. Once Hamma attaches wings at Atteka Inlet, it flies over land with zero random encounters.
Debug menus
Hidden developer tools gated by DebugMode. They include the Start + B scene
selector, the Select + B 4,096-flag editor, the Start + L live palette
editor, walk-through-walls (L), single-tick freeze and step
(Start + Select), cutscene fast-forward (R or L), battle instant win, four
gmMainRoutineRun debug starts, and 12 test rooms across 5 overlays
(Debug mode & test rooms).
Battle & RPG Data
Unit and formation
UNIT is the unified 332-byte fighter struct (stats, HP, PP, class, Djinn,
Psynergy, 15 packed inventory slots, and ailments) shared by all 8 playable
characters (CharacterUnits) and up to 6 active battle enemies, recomputed from
scratch by gmUnitCalculate. A formation (Formations, 660 rows)
defines an encounter group.
Power and Resist
Every UNIT holds an elemental Power and Resist score for Venus,
Mercury, Mars, and Jupiter. The gap between the caster's Power and the target's
Resist scales elemental damage and chooses whether the damage line ends in !!!
(weakest element) or . (strongest element).
Playback queue and battle effect
A battle effect (battle_effect_*.c) is a blocking C animation painted onto
a 128×128 6-bit brightness canvas using palette ramps, VBlank decay, blitters,
motes, and (new in TLA) 3D software-rasterised polygon models
(btRenderDrawModelList in IWRAM). Calling btPlaybackStart() releases the
playback queue (battle_playback.c) to resolve targets and animate hit
shakes, HP drops, and log lines concurrently (Battle & Effects).
Battle Arena
The link-cable 3-versus-3 PvP lobby (scene/lobby.c) and sound test. Holding
L + R + Select while opening the lobby unlocks every music track regardless of
whether it has been heard yet (sySoundFlagSet).
Psynergy
Elemental abilities across four ordered elements, Venus (earth), Mercury (water), Mars (fire), and Jupiter (wind), that spend PP to cast spells in battle or solve puzzles on the field (adding 12 new field Psynergies in The Lost Age).
Djinn
Elemental creatures (72 named across both games) that boost a character's stats and elemental levels (deriving their class) while Set, or unleash to Standby for combat effects.

Summons
Multi-target elemental sequences (29 in The Lost Age, adding 13 multi-element summons with 3D polygon models) paid for by spending Standby Djinn.

UI, Graphics & Sound
Window and message
A window is a bordered UI box animated by mnWindowSystemUpdate (12
simultaneous windows in all TLA editions, distinct from GBA hardware WIN0 and
WIN1). A message is a context-Huffman-compressed string in
text/<lang>.po decoded with dynamic placeholders into a 512-entry ring buffer
before typing (Dialogue, Menus & Shops).
Clear Data password & Sunshine's Forge
- Clear Data password: A checksummed transfer string entered in the
post-Title File Screen (
scene/clear.c, alongside link-cable transfer) to import a cleared Broken Seal party and story flags into The Lost Age. - Sunshine's Forge: Sunshine's smithy in Yallam (
shop/shop_forge.c). It rolls weighted recipes fromshop_tables.con drop-off, stores the result inMainRoutineStateWork, and unlocks purchase as soon as Yallam's innkeeper is spoken to.
Palette number, OAM sprite, tileset, and texture
GBA display primitives: 4 background layers (BG0–BG3) built from 8×8 tiles in
a tileset, hardware sprites (OBJ in OAM) showing pictures from
vertical sprite sheets, 4-bit palette numbers selecting one of sixteen
16-colour palettes, and textures mapped across TLA's 3D summon models
(Graphics & Sound).