An arena contest fought as a ladder of ordinary battles. Pick one of three courses and fight its fixed run of rounds (8, 8 or 13), one real monster per round, with one party character. Between rounds the arena shows a tally that heals the fighter and adds casino coins to a running total, and finishing the contest pays the total out. This page covers how a contest runs, what each screen and rule does, and what that means when you play it.
koin1 sceneThree 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.
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.
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.
| Round result | Next screen | Contest |
|---|---|---|
| Survived, course has rounds left | INTERVAL tally, then the next ROUND card | goes on |
| Survived, course exhausted | Settle | cleared: the “continuing” latch is up |
| Knocked out | Settle | lost: latch down |
Ran (leg outcome word _DAT_80084448 = 4) | Settle | given 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.
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.
| State | Screen | What it does | Next |
|---|---|---|---|
| 0 | Welcome fade-in | “Welcome to the Muscle Dome!” strip climbs | 1 |
| 1 | Welcome hold | holds 123 ticks | 2 |
| 2 | Welcome fade-out | strip drains while the brick wall rises | 3 |
| 3 | Title zoom | course-title art scales 0x1640 to 0x1000 | 4 |
| 4 | Course card fade-in | course card over the title art | 5 |
| 5 | Course card hold | holds 180 ticks, pad-skippable | 6 |
| 6 | Wall drain | backdrop drains; kicks the battle load | 0x14 |
| 0x0A | INTERVAL fade-in | heading and backdrop climb; arms the four tally cues | 0x0B |
| 0x0B | Tally roll | drains the four tally lanes | 0x0C |
| 0x0C | HP restore | hp = min(max, hp + accumulator) | 0x14 |
| 0x14 | Backdrop return | backdrop back to full; one pass-through tick on a first visit | 0x15 |
| 0x15 | ROUND card | banner fades in, holds 61 ticks, pad-skippable | 0x16 |
| 0x16 | ROUND card fade-out | card and backdrop drain | the fight starts |
| 0x32 | Settle | contest settlement | leaves 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.
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.
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.| Course | Rounds | Monster ids (in order) | Full-clear coins |
|---|---|---|---|
| Beginner | 8 | 13 0D 10 49 62 4B 86 8B | 818 |
| Expert | 8 | 14 06 6D 3C 81 49 50 8B | 1,532 |
| Master | 13 | 81 86 3C 49 4B 4D 8B 8A A4 A3 A2 A9 AA | 13,830 |
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 round | If this flag is missing | The course ends at |
|---|---|---|
| 8 | 0x378 | 8 |
| 11 | 0x382 | 11 |
| 12 | 0x471 | 12 |
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.
The restrictions are bits of the special-battle word, seeded at the arena’s first entry from whichever course flag the menu set:
| Course flag | Seed | Course | Command ring | Equipment |
|---|---|---|---|---|
| 0x536 | 0x101 | Beginner | Item crossed out | kept |
| 0x537 | 0x111 | Expert | Item crossed out | armour, head, weapon and leg gear removed |
| 0x538 | 0x321 | Master | Item and Ra-Seru crossed out | armour, 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.
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.
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.
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 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.
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.
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:
| Direction | AP cost (retail values) |
|---|---|
| The weapon’s favoured direction | 30 (0x1E) |
| Off-class | 42 (0x2A) |
| Far | 54 (0x36) |
n sits at x = 16 + (cost of the earlier pennants) and is cost - 6 wide, so the bar fills in proportion to AP spent; a 100-AP pool spans 128 pixels.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.
| Chip | Refused when | Mark drawn |
|---|---|---|
| Item | restriction bit 0x100 (every course) | red cross-out X |
| Ra-Seru | no 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 - |
| Attack | all three Rot limbs (+0x16E & 0x38 == 0x38) | blue Rot stamp |
| Spirit | never | - |
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).
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.
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.
| Row | Value | As % of max HP | Goes to |
|---|---|---|---|
| Round | round * 2 * max_hp / 100 | 2% per round number | HP |
| Turns | min(turns, 8) * max_hp / 100 | 1% per turn taken, up to 8% | HP |
| Outcome | [8, 12, 4, 2][min(outcome, 3)] * max_hp / 100 | 8, 12, 4 or 2% | HP |
| Score | score_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.
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.
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 ended | Running total | Flags |
|---|---|---|
| Cleared (survived, course exhausted) | kept, plus the final round’s score cell | sets 0x50A |
| Knocked out | halved (signed / 2) | - |
| Ran | zeroed | sets 0x35 |
| Ran on round 1 | zeroed | also sets 0x130 + course (Chicken King trigger) |
Master’s 13th fight cleared, flag-bank bit 0x6CB clear | as cleared | awards 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).
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.
+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.| Screen | Fade in | Hold | Skip | Fade out |
|---|---|---|---|---|
| “Welcome to the Muscle Dome!” | +4 / tick, 32 ticks | 123 ticks | no | -4 / tick |
| Course-title art | scale ramp, 13 ticks | - | - | - |
| Course card | +2 / tick, 64 ticks | 180 ticks | yes | the backdrop drains at -4 / tick |
| ROUND n card | +2 / tick, 64 ticks | 61 ticks | yes | -2 / tick |
| INTERVAL + tally | +4 / tick, 32 ticks | the tally roll | fast-forward | -2 / tick to 0x40, then -4 / tick |
0xF4.0x202, 0x202, 0x202, 0x203) staggered 0 / 30 / 60 / 90 frames, played from the arena’s own sound bundle.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.
The arena loads its music itself and plays it only once a fight starts:
2026) is opened, not playedThe 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.
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.
| Cue | Meaning |
|---|---|
| 0x21 | accept / confirm: a direction taken, every confirm that advances the phase |
| 0x22 | highlight moved |
| 0x23 | refused / 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 “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.
4 - turn counter; HP Left = the opponent’s HP as a percentage of its max.0xA2..0xA5 and round 4 casts 0xA1, the all-party finisher.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.
koin1, makes the course menu’s pick and arms the same door warp. The party level defaults to 1, matching the one retail dome capture (Vahn alone, level 1). The dome panel stays for free play against any archive monster.engine-minigames::muscle_dome: DomeContest, settle_contest, the hub envelopes), with no per-host ladder rule.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.
other6, extraction 1220..1225)| Extraction | Content |
|---|---|
| 1220 | hub UI art: two TIMs uploading (320, 0) / (320, 256), CLUT rows 502 / 503 |
| 1221 / 1222 | the two ringside stills int.tim / int2.tim, headerless 16-bit, 320 x 256 |
| 1223 / 1224 | pochi fillers |
| 1225 | the 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.
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.
overlay_muscle_dome_* dump namesThe 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.
| Address | Role |
|---|---|
| _DAT_8007BAC0 | special-battle word: (course, round) cursor + restriction bits |
| _DAT_80084440 | running coin total |
| _DAT_80084444 / 48 | turns taken / leg outcome (4 = ran) |
| 0x800845A4 | casino coin bank |
| 0x8007BD0C..0F | formation cell (one writer in the arena: the installer) |
| DAT_8007BD60 | bit 0x80 = party still standing |
| DAT_801D1A78 | hub state |
| DAT_801D1A90 / 94 | decoded course / round |
| DAT_801D1A74 / DAT_801D1ADC | gave-up flag / continuing latch |
| _DAT_801D1AE0 | re-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.
koin1 geometry is ordered over the ringside still in a re-entered hub.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.