Glossary
This glossary gives plain definitions of the technical and game-specific terms used across Golden Sun: The Broken Seal's documentation and source code.
Reading 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. Some familiar words, like event, trigger,
and character, mean something specific in this codebase that differs from
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 Broken Seal (tbs-ja, tbs-en, tbs-de,
tbs-es, tbs-fr, and tbs-it). The five non-Japanese releases are the
international editions, which also differ slightly in code (such as 8 versus
12 simultaneous windows and extra testers in debug/level.c).
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, FieldStateWork) |
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 beside an opt-in fix. For example, casting
Sleep drops twelve sheep meant to bounce off the ground, but a slipped check
sends them through it. /* UB: */ and UBFIX mark C undefined behaviour (such
as an order-of-evaluation read and write in a battle effect) beside a clean
version.
Unused
Code or data present on the retail cartridge that nothing in normal gameplay
ever reaches, such as an unreachable second version of Garet joining Isaac on
the stormy night. 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 14 fixed-address stretches of always-loaded Thumb code in the
main image (ld_script.ld). 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, system/system.c, and shop/shop.c) #include sibling
.c parts in ROM order to match one compiled .o object.
Engine & Hardware
Engine
One of the four 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), or the Lucky Wheels engine (ENGINE_LUCKY_WHEELS). 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 and shops 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 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 commits finished ticks, polls input, and runsMixerEnter. - 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 20) called once per
tick by sySynch() (EVENT_PASS_TICK = 0xC80) or once per frame by
syVBlankHandler (EVENT_PASS_VBLANK = 0x480), sorted descending by priority
(modelled on SGL's slSetEvent family). 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, 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 (HeapSlots[64]) cache subsystem state pointers.
Resource directory and overlay
syResourceDirectoryTable (resource_directory.s) is a flat 1,000-row ROM
pointer table for compressed assets and 96 scene overlays. Entering a scene
unpacks one overlay into EWRAM (0x02008000) and patches its long branches,
exposing a fixed 6-stub entry table (scene/entry.s) and a build-generated
import table (The system library).
Flash chip
The 64 KB non-volatile save chip on the 8 MB Game Pak, divided into sixteen
4 KB sectors. Each of the three save files uses two 4 KB parts (leaving 10 spare
sectors) for atomic copy-on-write saving via syBup*.
World, Scenes & Maps
Scene, area, and rooms map
A scene is one loadable place (ScenesWork, 201 rows) binding an
overlay, map, area, and flags. An area (71 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, 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 metatile holds 2×2 tiles, a ground height
shape, and a metatile behaviour ID (240+ universal; lower values
scene-specific)
(World, Scenes & Maps).
Actor and actor script
An actor (ActorsWork, up to 64 per scene) is any independent field
entity: Isaac, NPCs, chests, snow footprints, Psynergy sparks, or the camera
target. Each runs a non-blocking SC_* bytecode actor script stepped every
tick by fdActorUpdateAllOnField. An actor's watched actor is the target ID
stored beside its script so generic orders like "face target" or "walk toward
target" 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 FieldStateWork during a tick and serviced
between ticks by fdEngineRun (12 kinds: battle, talk, examine, step, menu,
Psynergy, exit, and more).
Still image and map screen
Because the tilted World Map consumes the GBA's affine background layer, opening
a menu or dialogue freezes the view onto a static still image first so 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 by scaling its real
World Map coordinates.
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, a
sound test, and 10 test rooms across 3 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 playable
characters and active battle enemies, recomputed from scratch by
gmUnitCalculate. A formation (Formations, 380 rows) defines an enemy
encounter group of up to 5 slots.
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,
and particle motes. At the impact frame, it calls btPlaybackStart() to
release the playback queue (battle_playback.c), a tick-pass event that
concurrently resolves targets and animates hit shakes, HP drops, and log lines
(Battle & Effects).
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.

Djinn
Elemental creatures (28 in The Broken Seal) that boost a character's stats and elemental levels (deriving their class) while Set, or unleash to Standby for special combat effects.

Summons
Multi-target elemental sequences (16 single-element summons in The Broken Seal) paid for by spending Standby Djinn, after which those Djinn enter Recovery and return one per turn.

UI, Graphics & Sound
Window and message
A window is a bordered UI box animated by mnWindowSystemUpdate (12 in
tbs-ja, 8 in international editions, distinct from GBA hardware WIN0 and
WIN1). A message is a 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
A checksummed transfer string generated in
scene/file_screen.c after
completing The Broken Seal to carry the party, items, Djinn, and story flags
into The Lost Age.
Palette number, OAM sprite, and tileset
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, and 4-bit palette numbers selecting one of
sixteen 16-colour palettes (Graphics & Sound).