Claim set · data/claims/balloon-fight.yaml

Balloon Fight (NES ROM)

Game: Balloon Fight.

Balloon Fight's random number routine shifts a 16-bit value left 11 times per call. Each new low bit is the opposite of the exclusive-or of the top bit and the two lowest bits as they stood before that shift, and the routine returns the low byte. balloon-fight/rng-shift-register

About: Balloon Fight Random number generator

Value: state bits 16 · shifts per call 11 (bits of state, shifts per call)

CodeBalloon Fight (USA) · 0x31C3-0x31E3 — $F1B3-$F1D3: state $1B (low), $1C (high); eleven passes; X preserved; A = $1B on returnChecked by claude, 2026-11-30 — disassembled the pinned bytes from the ROM whose headerless SHA-1 matches the source, and traced the carry through each pass to find which pre-shift bits feed the new bitChecked by a second AI model, 2026-11-30.

Cited by: Balloon Fight

In Balloon Fight's bonus stage, 20 launches are counted down. The wait to the next one is the low 6 bits of the random state, read without advancing it, plus 40, plus the carry left over from earlier arithmetic (40 to 104 counts, computed). A launch takes the highest-numbered free one of 10 slots; if none is free, nothing launches and the count stays. A launch makes a fresh random call to pick one of four horizontal positions: 32, 80, 160, or 208. balloon-fight/bonus-spawn-timer

About: Balloon Fight Bonus stage

Value: launches 20 · slots 10 · positions 32, 80, 160, 208 (launches, slots, horizontal positions)

CodeBalloon Fight (USA) · 0x0D6A-0x0DB9 — $CD5A-$CDA9: countdown, reload = ($1B & $3F) + #$28 with no CLC before the ADC; slot search X = 9 down to 0; position = random & 3; count downBalloon Fight (USA) · 0x0EBE-0x0EC1 — $CEAE, four horizontal positionsBalloon Fight (USA) · 0x0F3F-0x0F43 — count loaded with 20Balloon Fight (USA) · 0x31C3-0x31E3 — random routineBalloon Fight (USA) · 0x139C-0x13A6 — $C8 is raised when a phase layout lists no enemiesBalloon Fight (USA) · 0x32AB-0x32B1 — $F29B: a nonzero $C8 branches to the bonus-stage code at $CF13Checked by claude, 2026-11-30 — traced the countdown, the reload arithmetic, the slot search, and the position lookup from the ROM bytes; the upper bound allows for the incoming carry, which no instruction in the range clearsChecked by a second AI model, 2026-11-30.

Cited by: Balloon Fight

Balloon Fight's bonus stage ends only once all 20 launches are used up and all 10 slots are free, and then only on a pass where the one-byte frame counter reads zero. balloon-fight/bonus-exit-frame-lap

About: Balloon Fight Bonus stage

Value: launches 20 · slots 10 (launches, slots)

CodeBalloon Fight (USA) · 0x0F4F-0x0F6C — $CF3F-$CF5C: tests the remaining count, the ten slots, then the frame counter $19Balloon Fight (USA) · 0x0F3F-0x0F43 — count loaded with 20Balloon Fight (USA) · 0x00C2-0x00C3 — the frame interrupt increments $19Checked by claude, 2026-11-30 — disassembled the exit test and the interrupt's increment from the ROM bytesChecked by a second AI model, 2026-11-30.

Cited by: Balloon Fight

While Balloon Fight is paused, its pause loop only waits for each frame and reads controller 1 until Start is newly pressed. It calls no game logic and no random numbers, while the frame counter keeps counting. balloon-fight/pause-freezes-logic

About: Balloon Fight Pause

CodeBalloon Fight (USA) · 0x3480-0x34B4 — $F470-$F4A4: pause check (skipped when $3A is nonzero), sprites off, wait and read loopBalloon Fight (USA) · 0x3475-0x347F — frame waitBalloon Fight (USA) · 0x2778-0x27A5 — controller 1 read, newly pressed buttons; Start is $10Balloon Fight (USA) · 0x00C2-0x00C3 — the frame interrupt increments $19Checked by claude, 2026-11-30 — followed every call made inside the pause loop and checked the interrupt's counter incrementChecked by a second AI model, 2026-11-30.

Cited by: Balloon Fight

After a cleared phase, Balloon Fight waits 150 frames and moves to the next of 16 phase layouts. After the 16th it returns to the 5th, not the 1st. balloon-fight/phase-advance-wait

About: Balloon Fight Level end

Value: wait frames 150 · layouts 16 · returns to 5 (frames; layout numbers counted from 1)

CodeBalloon Fight (USA) · 0x3337-0x3362 — clear conditionBalloon Fight (USA) · 0x3363-0x3375 — $F353-$F365: wait #$96, raise the layout index, 16 becomes 4 (counted from 0)Balloon Fight (USA) · 0x346E-0x347F — wait routine, one pass per frameBalloon Fight (USA) · 0x12B0-0x12BA — the index selects the layout tablesBalloon Fight (USA) · 0x320C-0x3213 — index starts at 0Checked by claude, 2026-11-30 — traced the wait, the index arithmetic, and its use as a table selector from the ROM bytesChecked by a second AI model, 2026-11-30.

Cited by: Balloon Fight