Skip to Content
The Alchemy Project

How The Lost Age Evolved from The Broken Seal

Golden Sun: The Lost Age is a direct evolution of Golden Sun: The Broken Seal's codebase.

Because both games were originally designed as one story split across two Game Boy Advance cartridges, their reconstructed sources, read side by side, resemble two snapshots of the same studio's source tree taken a year apart. They show where Camelot scaled systems up for a 16 MB sequel, which unused pieces of the first game were put to use in the second, and concrete evidence of the edition from which the sequel was forked.

Everything on this page derives from a reading of both games' source code and is confined to what the retail ROMs contain, without speculation.

ROM differences at a glance

SubsystemThe Broken Seal (tbs)The Lost Age (tla)
ROM size8 MB (0x08000000–0x08800000)16 MB (0x08000000–0x09000000)
Main-image modules14 fixed-address modules15 modules (adds Super Lucky Dice)
Resource directory1,000 rows2,048 rows
Scenes / Overlays / Areas201 scenes / 96 overlays / 71 areas325 scenes / 114 overlays / 97 areas
Overlay entry table6 stubs (scInit..scGetExitRegions)7 stubs (adds scPrepareMap)
Overlay C optimisation-O2 across all game C-Os for overlay-only C, -O2 for main image
Event table (EventBuf)20 slots; tick 0xC80, VBlank 0x48024 slots; VBlank 0xC80, tick 0x480 (IRQ early-exit)
sySynch() stackRelocates stack to fixed IWRAM addressRuns events directly on caller's stack
Heap slot accessLinked HeapSlots[64] array + macrosFixed-address typed struct RamHeapSlots->fieldState
Flash save layout3 files × 2 parts × 4 KB (10 spare sectors)3 files × 1 copy × 12 KB (2 spare 3-sector slots)
Party & Battle4 fighters; 380 formations; 16 summons8-member roster (4 front + 4 reserve); 660 formations; 29 summons (13 multi-element)
Battle effects2D sprites/particles on 128×128 canvasAdds IWRAM 3D software-rasterised polygon models
Field engine3 metatile grids; battle before step/push4 metatile grids; fdActorMoveWithCarriers; step/push before battle; 12 new field Psynergies; Lemurian Ship
UI & Shops12 windows (JA) / 8 (intl); 3 shop kinds12 windows (all editions); adds General Stores & Sunshine's Forge
Audio mixer352 samples/frame; IDs 0–699528 samples/frame; adds 700+ BGM & 4-player SFX fallback
MinigamesLucky Dice, Lucky Wheels (Tolbi)Lucky Dice, Lucky Wheels, Super Lucky Dice (Contigo)

It grew from the Japanese Broken Seal

Two pieces of code show that The Lost Age was forked from the Japanese build of The Broken Seal rather than the later international builds:

  • The debug level and item room (debug/level.c): The Broken Seal ships two versions of Increase item and level. The Japanese edition has 4 tester NPCs, scales the level editor at 1.7×, and binds Force on the portrait browser to a small motion test. TBS's international editions add an ability browser and 2 emote testers, change the scale to 1.6×, and change Force's test. Every edition of The Lost Age contains the Japanese TBS room unchanged (TLA level.c, TBS level.c).
  • The Lucky Spring minigame: Japanese TLA implements Lemuria's spring (lemuria_spring.c) with the same single-loop structure as Japanese TBS's Tolbi spring (tolbi_games.c), whereas the international editions of both games rewrite the flow separately. Japanese TLA also deducts the coin or medal immediately on selection, so that backing out loses it, a bug absent in TBS and fixed in international TLA builds.

What The Broken Seal already holds

  • All eight playable characters: TBS's character_ids.h already defines IDs and portrait slots from Isaac through Piers. Felix, Sheba, and Piers have empty growth and starting-gear rows in TBS's character_table.c, while Jenna has a populated row with early stats starting at level 1 rather than TLA's level 5 (compare TLA character_table.c).
  • Unused battle effects activated in TLA: TBS's effect table contains an unreferenced leap-and-sparks handler (btEffectRunUnusedSevereBlowLeap in battle_effect_thrash.c), while TBS's Severe Blow plays a generic casting impact. In TLA, that leap is Severe Blow (TLA battle_effect_thrash.c). Likewise, TBS's battle_effect_casting_impact.c checks for an impact kind nothing in TBS requests, which TLA abilities later use.

What both games keep unused

Same architecture, different codegen

  • Heap slot indirection: Both games cache subsystem states in 62 heap slots. TBS looks them up through a linked array, HeapSlots, wrapped in macros such as FieldStateWork. TLA places them at a fixed address cast to RamHeapSlots (such as RamHeapSlots->fieldState, used across nearly 400 files). Logically identical functions therefore often compile to quite different instructions across the two games.
  • Tick and event refinements: Comparing TLA system_frame.c beside TBS system_frame.c shows several cleanups. TLA expands EventBuf from 20 to 24 slots, drops sySynch()'s IWRAM stack relocation, swaps EVENT_PASS_VBLANK (0xC80) ahead of EVENT_PASS_TICK (0x480) so that the VBlank IRQ handler stops at the first tick-pass entry, adds fdActorMoveWithCarriers at rank +10 (bumping fdActorUpdateAllOnField to +11), and services field step and push requests before random battles.
  • Non-standard compiler indirect calls: TBS called syMulFX through an ip-return helper macro to preserve lr. TLA's compiler emits inline 4-byte indirect calls (mov lr, rN plus the second half of bl, which no released GCC produces). This allows Thumb routines such as syMatrixBuildLookAt to hold the addresses of multiply, divide, and dot product in high registers r11, r9, and r10 by name.