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
| Subsystem | The Broken Seal (tbs) | The Lost Age (tla) |
|---|---|---|
| ROM size | 8 MB (0x08000000–0x08800000) | 16 MB (0x08000000–0x09000000) |
| Main-image modules | 14 fixed-address modules | 15 modules (adds Super Lucky Dice) |
| Resource directory | 1,000 rows | 2,048 rows |
| Scenes / Overlays / Areas | 201 scenes / 96 overlays / 71 areas | 325 scenes / 114 overlays / 97 areas |
| Overlay entry table | 6 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 0x480 | 24 slots; VBlank 0xC80, tick 0x480 (IRQ early-exit) |
sySynch() stack | Relocates stack to fixed IWRAM address | Runs events directly on caller's stack |
| Heap slot access | Linked HeapSlots[64] array + macros | Fixed-address typed struct RamHeapSlots->fieldState |
| Flash save layout | 3 files × 2 parts × 4 KB (10 spare sectors) | 3 files × 1 copy × 12 KB (2 spare 3-sector slots) |
| Party & Battle | 4 fighters; 380 formations; 16 summons | 8-member roster (4 front + 4 reserve); 660 formations; 29 summons (13 multi-element) |
| Battle effects | 2D sprites/particles on 128×128 canvas | Adds IWRAM 3D software-rasterised polygon models |
| Field engine | 3 metatile grids; battle before step/push | 4 metatile grids; fdActorMoveWithCarriers; step/push before battle; 12 new field Psynergies; Lemurian Ship |
| UI & Shops | 12 windows (JA) / 8 (intl); 3 shop kinds | 12 windows (all editions); adds General Stores & Sunshine's Forge |
| Audio mixer | 352 samples/frame; IDs 0–699 | 528 samples/frame; adds 700+ BGM & 4-player SFX fallback |
| Minigames | Lucky 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 at1.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 to1.6×, and change Force's test. Every edition of The Lost Age contains the Japanese TBS room unchanged (TLAlevel.c, TBSlevel.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.halready defines IDs and portrait slots from Isaac through Piers. Felix, Sheba, and Piers have empty growth and starting-gear rows in TBS'scharacter_table.c, while Jenna has a populated row with early stats starting at level 1 rather than TLA's level 5 (compare TLAcharacter_table.c). - Unused battle effects activated in TLA: TBS's effect table contains an
unreferenced leap-and-sparks handler (
btEffectRunUnusedSevereBlowLeapinbattle_effect_thrash.c), while TBS's Severe Blow plays a generic casting impact. In TLA, that leap is Severe Blow (TLAbattle_effect_thrash.c). Likewise, TBS'sbattle_effect_casting_impact.cchecks for an impact kind nothing in TBS requests, which TLA abilities later use.
What both games keep unused
- Shared unused battle effect: Neither game assigns
btEffectRunUnusedTriangleStrike(Bind's animation without its Djinni, finishing with a charge at the first target) to any ability (TLAbattle_effect_bind.c, TBSbattle_effect_bind.c). - Identical untouched stack buffers: Three functions allocate identical
unused stack arrays in both ROMs:
btLinkBattleSyncTurn(20 bytes),fdLuckyDiceRun(32 bytes), andfdPsynergyMovewhen cast with no target (12 bytes). - One cleanup in TLA: TBS's
gmUnitGet(game_units.c) reads its caller's return address and discards it. When Camelot movedgmUnitGetandsyGameFlag*into TLA's system module (system_flags.c), that dead read disappeared.
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 asFieldStateWork. TLA places them at a fixed address cast toRamHeapSlots(such asRamHeapSlots->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.cbeside TBSsystem_frame.cshows several cleanups. TLA expandsEventBuffrom 20 to 24 slots, dropssySynch()'s IWRAM stack relocation, swapsEVENT_PASS_VBLANK(0xC80) ahead ofEVENT_PASS_TICK(0x480) so that the VBlank IRQ handler stops at the first tick-pass entry, addsfdActorMoveWithCarriersat rank+10(bumpingfdActorUpdateAllOnFieldto+11), and services field step and push requests before random battles. - Non-standard compiler indirect calls: TBS called
syMulFXthrough anip-return helper macro to preservelr. TLA's compiler emits inline 4-byte indirect calls (mov lr, rNplus the second half ofbl, which no released GCC produces). This allows Thumb routines such assyMatrixBuildLookAtto hold the addresses of multiply, divide, and dot product in high registersr11,r9, andr10by name.