At a glance

Where
The Sol Tower arena, entered from the course menu in the koin1 scene
Courses
Beginner (8 rounds), Expert (8), Master (13, cut short until three story flags are set)
A round
An ordinary Legaia battle against one monster: the same command ring, Arts input, monster AI and damage as anywhere else
Between rounds
The INTERVAL tally: part of your max HP comes back, and the round’s score cell goes into the running coin total
Payout
A full clear pays 818 / 1,532 / 13,830 coins; a loss pays half the running total; Run pays nothing
One-off prize
The War God Icon for the first clear of Master’s 13th fight
Code
Contest hub PROT 0977; each round runs on the shared battle overlay PROT 0898

Three things it is not:

Contest init FUN_801CEA6C, per-frame hub FUN_801CF870 (state byte DAT_801D1A78, 51-entry jump table at 0x801CE990), opponent installer FUN_801D1510, settlement FUN_801D0F60, all in PROT 0977; round driver FUN_801D0748 and action SM FUN_801E295C in PROT 0898.

Getting in

Every dome door on the disc is in one record of the koin1 scene: the course menu. Each of its three arms takes its entry fee, sets its own course flag and clears the other two, then runs the mode-24 minigame door warp (field-VM op 0x3E, sub-id 5), which loads the arena overlay. So exactly one course flag is set when the arena starts, and that flag is the course pick. The taiku scene, despite its label, carries no arena door.

The warp is the ordinary minigame round trip: the field is backed up, the overlay runs, and the game returns to the exact field state it left. The mechanism is on the field / event VM page.

Two pieces of code run the contest, one inside the other. The contest hub owns the ladder: which course, which round, the intro / INTERVAL / ROUND screens, the tally and the payout. Each round is a normal battle on the shared battle round driver, which every battle in the game steps; the battle’s exit selector sends a finished round back to the arena (mode 0x18) instead of to the field when the contest bit 0x100 is set in the special-battle word _DAT_8007BAC0.

How a contest runs

koin1 course menu fee + course flag Arena init refill, strip gear (Exp/Mas) First visit Welcome, title, course card ROUND card announcer calls the round The round ordinary battle, theme plays Arena re-entry survived? rounds left? INTERVAL tally HP back, score cell banked Settle keep, halve or void tally Back to the field coins paid out fresh KO or Run: back to the arena survived, rounds left next round lost, ran, or cleared
The arena re-runs its init after every round, and that re-entry is where the contest decides what happens next. There is no “continue?” prompt: whether the contest goes on is derived from two facts, whether the fighter is still standing and whether the course has rounds left. The first-visit screens play once per contest.

The cursor

The whole ladder position is one byte. The low byte of the special-battle word _DAT_8007BAC0 packs (course, round): course = ((word - 1) & 0xFF) >> 4, round = (word - 1) & 0xF. Each finished round adds one. The bits above the low byte are the course’s restrictions and survive the whole contest unchanged.

What happens after each round

Round resultNext screenContest
Survived, course has rounds leftINTERVAL tally, then the next ROUND cardgoes on
Survived, course exhaustedSettlecleared: the “continuing” latch is up
Knocked outSettlelost: latch down
Ran (leg outcome word _DAT_80084448 = 4)Settlegiven up

“Survived” is one bit, DAT_8007BD60 & 0x80: the battle’s party-wipe scan clears it, and the shared minigame-exit routine raises it again on the way out, so on re-entry it reads “the party is still standing”.

The intermission is per fight, not per turn

The INTERVAL screen comes between fights. Inside a round, the end of a turn sends the battle straight back to its own command menu: the game is in battle mode, and the hub, which is the only thing that draws INTERVAL, is not running. There is no beat between turns.

The hub’s fourteen states

Fourteen of the 51 jump-table entries are real; the other 37 go to the default arm. Every state but 0x32 ends by re-packing (course, round) into the word.

StateScreenWhat it doesNext
0Welcome fade-in“Welcome to the Muscle Dome!” strip climbs1
1Welcome holdholds 123 ticks2
2Welcome fade-outstrip drains while the brick wall rises3
3Title zoomcourse-title art scales 0x1640 to 0x10004
4Course card fade-incourse card over the title art5
5Course card holdholds 180 ticks, pad-skippable6
6Wall drainbackdrop drains; kicks the battle load0x14
0x0AINTERVAL fade-inheading and backdrop climb; arms the four tally cues0x0B
0x0BTally rolldrains the four tally lanes0x0C
0x0CHP restorehp = min(max, hp + accumulator)0x14
0x14Backdrop returnbackdrop back to full; one pass-through tick on a first visit0x15
0x15ROUND cardbanner fades in, holds 61 ticks, pad-skippable0x16
0x16ROUND card fade-outcard and backdrop drainthe fight starts
0x32Settlecontest settlementleaves the arena

Arm 0x15 can step twice. Once the card is at full level the arm stores state + 1 when its hold runs out, then tests the pad and stores state + 1 again off a reloaded state word. A skip press on the one frame the hold runs out leaves the hub at 0x17, an arm the jump table does not have: the hub then redraws its backdrop every frame and never starts the fight. The window is a single game frame of each ROUND card. The port takes that frame as one step to 0x16; the hub differential runs retail’s routine through it and reads 0x17 back.

The three courses

Each round’s opponent is a real monster id from a roster table in the arena overlay: 29 rounds in all, 8 + 8 + 13, one monster per round with no formation variety. The installer writes that id into formation slot 0, clears the other three slots, and sets the game mode to battle init; that is the arena’s whole handoff to the battle.

Beginner 8 rounds · gear kept · no Item · 818 coins 1 Red Piura 2 Skeleton 3 Drake Ghost 4 Caruban 5 Gola Gola 6 Zeto 7 Viguro Lv2 8 Xain Expert 8 rounds · gear stripped · no Item · 1,532 coins 1 Black Piura 2 High Gomboo 3 Dark Ogre 4 Gold Bison 5 Ironman 6 Caruban 7 Aluru 8 Xain Master up to 13 rounds · gear stripped · no Item, no Ra-Seru · 13,830 coins 1 Ironman 2 Viguro Lv2 3 Gold Bison 4 Caruban 5 Zeto 6 Berserker 7 Xain 8 Dohati 9 Lu Delilas 10 Che Delilas 11 Gi Delilas 12 Zora 13 Jette stop 8? stop 11? stop 12? War God Icon
The 29 rounds in order. Monster names are the curated labels in data/gamedata/casino.toml, which the disc’s roster ids reproduce 29 of 29. Coin totals are the sums of each course’s score-table row; the disc’s Master row sums to 13,830, which corrects the walkthrough figure of 13,856.
CourseRoundsMonster ids (in order)Full-clear coins
Beginner813 0D 10 49 62 4B 86 8B818
Expert814 06 6D 3C 81 49 50 8B1,532
Master1381 86 3C 49 4B 4D 8B 8A A4 A3 A2 A9 AA13,830

How long Master runs

Beginner and Expert always run their 8 rounds. Master is 13 rounds long only once the story has caught up: three story flags each cut it short, and each is checked only when the run reaches its threshold.

On reaching roundIf this flag is missingThe course ends at
80x3788
110x38211
120x47112

Retail applies the three in that order and lets a later one overwrite an earlier one, so a run missing all three stops at 12, not at 8. A course that ends early is still a clear: survived with the course exhausted settles as a win.

What each course restricts

The restrictions are bits of the special-battle word, seeded at the arena’s first entry from whichever course flag the menu set:

Course flagSeedCourseCommand ringEquipment
0x5360x101BeginnerItem crossed outkept
0x5370x111ExpertItem crossed outarmour, head, weapon and leg gear removed
0x5380x321MasterItem and Ra-Seru crossed outarmour, head, weapon and leg gear removed

Accessories and the Seru setting are never touched, so a stripped fighter keeps its accessories. Everything comes back at the end: the arena copies the party block out on a contest’s first entry, ahead of the strip, and settlement copies it back, so gear, HP, MP, items and gold all return to where the contest found them. Only two words of the lead’s record keep what the contest did. The port saves the party window on entering the dome and restores it at settlement. The curated course rules in casino.toml (no equipment, no items, magic forbidden on Master) are walkthrough labels that agree with these bits.

Ladder tables in PROT 0977: score table 0x801D1860 (3 x 16 i32), round roster 0x801D1920 (29 x {name_ptr, monster_id}), course descriptors 0x801D1A08 (3 x {round_count, first_round}). Master clamp at 0x801CED28..0x801CEDA4; course seed at 0x801CEB8C..0x801CEBC8.

A round is an ordinary battle

Nothing in a round’s damage, input or ending is dome-specific. The fighter is the lead party member alone, in the normal assembled battle form; the opponent is the rung’s monster, acting on the ordinary monster AI from its own action entries in the monster archive (PROT 867). There is no dome-specific AI table and no dome-local damage scaling.

A turn

  1. Begin | Runevery turn opens on this prompt with the far camera
  2. Command ringAttack, Item, Ra-Seru, Spirit; the highlight starts on Attack
  3. Auto | CommandAuto replays the saved string; Command opens direction entry
  4. Direction entryeach press spends that command’s AP; ends by itself when nothing is affordable
  5. Reviewthe committed bar of pennants
  6. Begin | ReselectBegin plays the turn; Reselect reopens the ring
  7. Playbackeach fighter’s whole string, then back to the prompt

The round driver steps through phase bytes 0x1E (prompt), 0x28 (ring), 0x78 (Auto | Command), 0x50 (entry), 0x5A (review), 0x6E (confirm), 0xFE / 0xFF (playback) and 0x14 (turn top) - a chain pinned by a phase-byte watch across a driven round. The turn-top arm is the only writer of the prompt phase and stores it unconditionally, which is why every turn opens on Begin | Run.

What ends a round

A knockout, and nothing else. The battle’s end-of-action gate walks the actor table; when one side has nobody standing it raises the battle-end signal (party wipe or monster wipe), and the exit selector sends the game to the arena. The battle’s turn counter is a counter, not a budget: its readers pick scripted per-turn enemy behaviour or draw Koru’s countdown, and none of them reaches the battle-end signal.

Run gives the contest up

Run is on the prompt every turn, and in the dome it always ends the contest. The fight start marks each round as a scripted fight, and the escape roll lets a scripted fight flee only through its forced arm, the special-battle word’s 0x100 bit. Every course the koin1 menu opens carries that bit, so Run gets out. The round driver’s one contest-gated arm then stores leg outcome 4, which the re-entered arena settles as a give-up: the running total is zeroed.

Running on purpose

Giving up on round 1 also sets story flag 0x130 + course. Doing it on all three courses is the trigger for the Muscle Paradise / Chicken King secret (“run from the first battle in all three difficulties”).

Fight start FUN_801D1510 stores DAT_8007BD60 = 0x80 (scripted fight); escape roll FUN_801E791C, forced arm 0x801E7978..0x801E7A14; the contest-gated flee arm is at 0x801D3228..0x801D328C in FUN_801D0748, skipped for monsters 0xAF / 0x3D..0x3F, none of which is on the ladder.

Commands, AP and the ring

On screen a round looks like any battle with the course restrictions applied: the gold Begin and name chips top-left, the blue-marble Attack / Ra-Seru / Spirit plates with the Item chip crossed out by a red X, the pointed blue status plate (name, HP and MP as cur/max) with the AP plate above it on the right. A committed string that performs an art raises the art banner (“HYPER ARTS!!”) during playback. As in any battle, the enemy’s HP is not shown.

The four direction commands

Attack opens the Arts input: four direction commands, the same four every time. Each press debits the command’s AP cost from the turn budget and appends the command to the fighter’s action queue. The cost is per character and per weapon, copied at battle load from the equipment’s swing records:

DirectionAP cost (retail values)
The weapon’s favoured direction30 (0x1E)
Off-class42 (0x2A)
Far54 (0x36)

Auto

Auto is not a picker. The queue is already loaded from a 16-byte saved string in the character’s record; Auto skips the editing screen and flags the fighter so each round rebuilds the queue. Confirming the entry screen with nothing entered replays the saved string, and confirming the review screen writes the string back. Two saved strings exist, one per AP band.

Ring gates

ChipRefused whenMark drawn
Itemrestriction bit 0x100 (every course)red cross-out X
Ra-Seruno Ra-Seru equipped; Curse; restriction bit 0x200 (Master)red X for the bit, blue Curse plate for Curse; a fighter with no Ra-Seru shows a plain -
Attackall three Rot limbs (+0x16E & 0x38 == 0x38)blue Rot stamp
Spiritnever-

A Ra-Seru cast spends MP, not AP: it replaces the direction string with the spell id, at the spell table’s cost discounted by the fighter’s ability bits (one halves it, one takes a quarter off).

Swing power and the action queue

Selection appends raw direction ids (0x0C..=0x0F) to the actor’s queue at +0x1DF. Arts and magic route through FUN_801E09F8 to FUN_801DD0AC, which indexes the move-power table at 0x801F4F5C by a byte map at 0x801F4E63. That map sends every bare swing to row 0, which is all zeros, so a bare swing’s strength is the melee kernel’s per-command scalar 12 / 18 / 20 / 22 / 28. The map and the tables are disassembly; that swing damage is therefore the melee kernel’s is inference.

The INTERVAL tally: healing and coins

After each survived round that is not the last, the INTERVAL screen counts up four rows. Three of them are healing, each a percentage of the fighter’s max HP; only the fourth is coins.

RowValueAs % of max HPGoes to
Roundround * 2 * max_hp / 1002% per round numberHP
Turnsmin(turns, 8) * max_hp / 1001% per turn taken, up to 8%HP
Outcome[8, 12, 4, 2][min(outcome, 3)] * max_hp / 1008, 12, 4 or 2%HP
Scorescore_table[course][round - 1]-running coin total

The three HP rows drain into one accumulator, and the restore state adds it to current HP, capped at max. So a later round can open hurt, and the longer the run, the more each interval gives back. Each row drains one step per frame with a voice blip per step; one button press fast-forwards the whole roll.

The contest-start refill

Row maths FUN_801D1184 (the 0x51EB851F reciprocal is the / 100), tally screen FUN_801CF074, outcome weights DAT_801D1A5C, HP accumulator DAT_801D1AC8; start refill FUN_801D0ED8, gear clear behind bnez at 0x801D0EE8.

Payout and prizes

A round pays nothing; a contest pays coins. Each score cell is counted once: the non-final rounds through the INTERVAL tally, the last one at settlement. Settlement first restores the saved party block, then settles the running total:

How it endedRunning totalFlags
Cleared (survived, course exhausted)kept, plus the final round’s score cellsets 0x50A
Knocked outhalved (signed / 2)-
Ranzeroedsets 0x35
Ran on round 1zeroedalso sets 0x130 + course (Chicken King trigger)
Master’s 13th fight cleared, flag-bank bit 0x6CB clearas clearedawards item 0xCD, the War God Icon, once per save

The total is then paid by the shared minigame-exit routine into the casino coin bank, saturating at 9,999,999. The victory caption’s “acquired the power of…” line is a string, not a grant: nothing in the arena awards anything but coins and the War God Icon.

Settlement FUN_801D0F60 (PROT 0977 file +0x2748), tail-calling FUN_80026018: coins += tally on the bank at 0x800845A4; running total _DAT_80084440; War God Icon through FUN_800421D4(0xCD, 1).

The hub screens and their timing

Each hub screen is a fade-in at its own rate, a hold, and a fade-out. Every step is scaled by the adaptive frame-skip factor, so the figures are ticks: frames at the normal cadence. Brightness climbs to 0x80, a PSX textured primitive’s neutral level.

The hub’s screen routine also stores 2 to the game’s frame-step floor on every call, so retail runs the hub at a game tick every two vsyncs or slower, and both parked hub captures read that step. The port’s hub timers run every vsync on a step of 1: the stepped envelopes come out the same length, but the steps that are not scaled (the tally’s row a tick) run twice as fast, and every fade moves at 60 frames a second where retail’s moves at 30.

First visit (once per contest) Welcome 123 card in course card 180 ROUND in 61 out 32 13 64 drain 64 64 Between rounds tally roll (press: finish) HP restore ROUND in 61 out 32 64 64 hold, cannot skip hold, any press skips fade
Widths are to scale in ticks where the doc gives a count. Fade-ins run at +4 (32 ticks) or +2 (64 ticks) per tick up to 0x80. The tally roll’s length depends on the numbers being counted, and the INTERVAL screen fades out at -2 per tick to a 0x40 floor before its last drain.
ScreenFade inHoldSkipFade out
“Welcome to the Muscle Dome!”+4 / tick, 32 ticks123 ticksno-4 / tick
Course-title artscale ramp, 13 ticks---
Course card+2 / tick, 64 ticks180 ticksyesthe backdrop drains at -4 / tick
ROUND n card+2 / tick, 64 ticks61 ticksyes-2 / tick
INTERVAL + tally+4 / tick, 32 ticksthe tally rollfast-forward-2 / tick to 0x40, then -4 / tick

The ringside still

The first visit stands on black. The hub runs in the mode-0x19 overlay with the field swapped out and no 3D scene, and the arena loads only when the fight is kicked, so nothing but the hub’s own wall and screens reaches the frame until then (port: HubTimers::first_visit_up, on both hosts).

Between rounds the hub does not show the brick wall of the first visit. It shows a pre-rendered still of the party at the ring fence, streamed into VRAM at (384, 0) at the battle’s teardown. Two stills exist, and the loader picks between them on the lead character’s live HP: int.tim (extraction 1221) normally, int2.tim (1222), the different-reaction version, when current HP is below half of max. A re-entry latch set on every return decides still versus wall. The format and the draw are on the ringside still page.

Music, announcer and sound

The battle theme waits for the fight

The arena loads its music itself and plays it only once a fight starts:

  1. Releasearena init stops both BGM sound sources: whatever was playing stops
  2. Loadthe standard battle theme (extraction 1014, sound-test #26, global 2026) is opened, not played
  3. Playthe fight start resumes it, past the ROUND card’s fade-out

The arena init runs on the door and again after every round, so the Welcome card, the course card, every ROUND card and every INTERVAL tally play with no music, and each round’s fight starts the theme afresh. On the way out the venue (koin1, whose casino-floor track is global 2018) gets its own music back.

The announcer

Two XA voice lines belong to the hub: the Welcome line on the Welcome screen’s first tick, and a ROUND line on each ROUND card’s first tick, whose XA channel is the round index. The ROUND card state is the same on a first visit and after every round, so every round’s card speaks its number.

Menu blips

CueMeaning
0x21accept / confirm: a direction taken, every confirm that advances the phase
0x22highlight moved
0x23refused / back: a blocked direction, every cancel

The round driver carries 37 immediate cue sites over these three ids, all on the system bank. Hits use the shared battle path’s melee impact sound.

Release at 0x801CEFB4..0x801CEFDC, load at 0x801CEF50..0x801CEF70 / 0x801CF000..0x801CF020, play at 0x801D1544..0x801D154C (jal 0x80026478, the installer’s only audio call); announcer XA31 channel 0x0B and XA32 channel = round. That the channel is the upcoming round’s index on a re-entered hub is inference from the first-visit value.

The Koru strip is not the dome’s

The “Turns Left / HP Left” strip lives in the same battle overlay, and its turn-top code runs in every battle, but it draws only when formation slot 0 holds monster 0xB6, Koru, the game’s one turn-limited boss fight. The dome cannot raise it: its highest roster id is 0xAA.

Tips that follow from the rules

Where this is in the port

The port models the same two layers, and the same rules run on the native play-window, the browser play page and the site’s minigames page, where you can play it.

Where the leg session still runs a round on its own (a monster with no catalog entry, a world-only harness, the free-play panel), a few things are host models rather than retail: the escape roll is not modelled (Run ends the leg on the press), the Item arm always refuses, Spirit commits an empty string, and the Ra-Seru list is a status row outside the game picture.

Internals

The arena data file (other6, extraction 1220..1225)
ExtractionContent
1220hub UI art: two TIMs uploading (320, 0) / (320, 256), CLUT rows 502 / 503
1221 / 1222the two ringside stills int.tim / int2.tim, headerless 16-bit, 320 x 256
1223 / 1224pochi fillers
1225the arena battle backdrop (byte-matched in the retail leg captures: the fight start points the map id 0x80084540 at 0x4C6, so battle init loads it while the field stays koin1)

The backdrop is an ordinary battle stage: an arena-shell TMD (2 objects, 367 verts) drawn twice, the second copy half-turned, to close the half-stage into a full ring; two 4bpp texture pages at (768, 0) / (832, 0), the second carrying the dirt tile the battle ground grid samples; additive lamp-glow quads. Object 1, a dust decal, is removed from the draw list by the battle scene loader whenever the per-encounter byte _DAT_8007B64B is zero, which the arena leaves it (measured: zero writes over a driven contest), so the match interior is mist-free. That a live contest’s backdrop pointer holds this stream is inferred, not byte-matched.

HUD chrome texture sources

The chrome resolves to five disc sources and one layout table, pinned from a live dome battle with every texture page byte-matched: the screen-element placement table at SCUS 0x80076C10 (24-byte records); the boot-gap widget TIM for chips, plates, the D-pad glyph and the AP plate; the boot-gap ASCII font; the menu-glyph atlas for small digits; the etim page for the red X, the art banner words and the damage numerals; and extraction 1220 for the hub strips. The dome’s command cluster is exactly the battle’s (centre (228, 70)). The AP meter has no source rect: retail draws it as two untextured gouraud strips.

Shared battle code under the overlay_muscle_dome_* dump names

The overlay_muscle_dome_* dumps are the entire battle-action overlay (PROT 0898) dumped while the arena was resident; the prefix is not dome evidence. Entries such as the round driver, the living-actor cursor FUN_801D32BC, the outcome-message builder FUN_801D84C0, the damage-popup ring FUN_801F44A0, the Seru-magic side-effect pair FUN_801F3C34 / FUN_801F3D3C, the cast colour wash FUN_801F2410 and the beam emitter FUN_801F2E10 are shared battle code that runs in the dome as in any battle.

RAM state and key functions
AddressRole
_DAT_8007BAC0special-battle word: (course, round) cursor + restriction bits
_DAT_80084440running coin total
_DAT_80084444 / 48turns taken / leg outcome (4 = ran)
0x800845A4casino coin bank
0x8007BD0C..0Fformation cell (one writer in the arena: the installer)
DAT_8007BD60bit 0x80 = party still standing
DAT_801D1A78hub state
DAT_801D1A90 / 94decoded course / round
DAT_801D1A74 / DAT_801D1ADCgave-up flag / continuing latch
_DAT_801D1AE0re-entry latch (still vs brick wall)

Key functions: FUN_801CEA6C (init / re-entry), FUN_801CF870 (hub), FUN_801CF074 / FUN_801D1184 (tally), FUN_801D0ED8 (start refill), FUN_801D1510 (installer + theme play), FUN_801D0F60 (settlement) in PROT 0977; FUN_801F6B24 (ringside still streamer) in PROT 0978; FUN_801D0748 / FUN_801E295C in PROT 0898; FUN_80046A20 (battle exit selector) and FUN_80026018 (minigame exit, coin payout) in SCUS_942.54.

Still open
  • The round driver’s deal / interval arms outside the capture-pinned input chain are not walked arm by arm.
  • A retail capture of the sound-bank residency inside a round, and of a round’s battle end (win pose and fade back to the arena).
  • The pennant’s 2-pixel offset above the bar and the off-class widths, by placement-table read; the review screen’s and Ra-Seru list window’s piece layout.
  • Whether live koin1 geometry is ordered over the ringside still in a re-entered hub.

See also

The hub states, the ringside loader, the chrome rects, the camera table and the port’s module map are in full in docs/subsystems/minigame-muscle-dome.md.

Reference Battle Battle command flow Battle action SM Battle round loop Battle stage and camera Arts command gauge Ringside stills Field / event VM Baka Fighter Play it: minigames page