Claim set · data/claims/excitebike.yaml

Excitebike (Japan, USA) mechanics read in the ROM

Game: Excitebike.

On every unpaused frame, the global timer routine decrements a sub-divider from 10 through 0, underflowing on the eleventh unpaused frame to reload 10. Fifteen fast timer slots decrement on every unpaused frame, whereas the fourteen slow timer slots, including the overheat stall countdown at $003C, decrement only on unpaused frames when the sub-divider underflows. excitebike/eleven-frame-timer-divider

About: Excitebike Simulation tick

Value: 11 frames

CodeExcitebike (Japan, USA) · 0x0272-0x027E — $C262-$C26E (NMI handler): checks PauseFlag ($03B1) | PauseDebounce ($03B2) == 0, increments NmiFrameFlag ($003F), and calls TickDecrementTimers ($D310)Excitebike (Japan, USA) · 0x1320-0x1335 — $D310-$D325 (TickDecrementTimers): decrements $0020 (10..0); while >= 0 scans X = $0E..0 ($0021-$002F), and on underflow reloads #$0A (10) and scans X = $1C..0 ($0021-$003D)Excitebike (Japan, USA) · 0x2369-0x2403 — $E359-$E3F3 (UpdateEngineHeatMeter): latches overheat slow timer $003C = #$20 (32) when heat reaches 32Excitebike (Japan, USA) · 0x1D9D-0x1DE0 — $DD8D-$DDD0 (UpdateHeatMeterSprites): polls slow timer $003C and clears overheat latch $03E0 once $003C == #$08Checked by claude, 2026-11-26 — disassembled NMI $C262-$C26E, TickDecrementTimers ($D310-$D325), $DD8D-$DDD0, and $E359-$E3F3 in the Japan/USA ROMChecked by a second AI model, 2026-11-30.

A four-frame entity scheduler restricts player speed updates (acceleration, deceleration, and drag) to 1 of every 4 frames. During normal racing on those update frames, holding the normal throttle accelerates by 24/256 of a pixel per step up to 3.125 pixels per frame, taking priority even when turbo is also held; holding turbo alone accelerates by 63/256 up to 3.25 pixels per frame. When a grounded, uncrashed, non-stalled bike on clear track already exceeds its speed cap, holding normal throttle bleeds 12/256 per step, whereas holding turbo alone selects a zero-drag table entry and preserves overspeed across speed-update steps while those conditions hold (until leaving clear ground, crashing, or hitting heat 32 so the overheat latch clears throttle input). excitebike/one-in-four-throttle-and-turbo-caps

Value: normal cap 3.125 · turbo cap 3.25 · update period frames 4 (px/frame)

CodeExcitebike (Japan, USA) · 0x115E-0x117C — $D14E-$D16C (RaceStartScrollSplit): stores NmiFrameFlag ($003F) & #$03 into ActiveEntityIndex ($004C)Excitebike (Japan, USA) · 0x00CC-0x00E3 — $C0BC-$C0D3: SpeedAddTable ($18,$3F,$28,...), drag table LC0C1 ($38,$0C,$00,...), and EntitySpeedLimitLo/Hi ($0320, $0340, $017F)Excitebike (Japan, USA) · 0x0D69-0x0DFD — $CD59-$CDED (UpdateEntitySpeed): tests A ($80) before B ($40) to pick Y=0 or Y=1 when $0052 == 0; when over cap jumps to $CDB9 (iny before DecelerateEntitySpeedChecked), reading LC0C1[1]=$0C for A and LC0C1[2]=$00 for BExcitebike (Japan, USA) · 0x0E39-0x0E67 — $CE29-$CE57 (AddSpeedToEntityPos): begins with CPX $004C / BNE RTS, gating acceleration to frames where ActiveEntityIndex == 0Excitebike (Japan, USA) · 0x0E68-0x0E92 — $CE58-$CE82 (DecelerateEntitySpeedChecked): begins with CPX $004C / BNE RTS, gating deceleration and drag to $004C == 0Excitebike (Japan, USA) · 0x0D2F-0x0D4F — $CD1F-$CD3F (UpdateEntitySpeedsAndEdgeSound): zeroes $005C,X throttle input whenever overheat latch $03E0,X != 0, crash $0098,X != 0, or $009C,X is not 0 or 5Excitebike (Japan, USA) · 0x2369-0x2403 — $E359-$E3F3 (UpdateEngineHeatMeter): holding B alone heats $03B6 toward #$20 (32), latching $03E0Checked by claude, 2026-11-26 — disassembled $C0BC-$C0D3, $CD1F-$CD3F, $CD59-$CE82, $D14E-$D16C, and $E359-$E3F3 in the ROMChecked by a second AI model, 2026-11-30.

During active racing (when demo or auto-control is inactive and overheating is unlatched), engine temperature updates on every frame rather than every fourth frame, integrating a fractional meter toward an input-selected target: 8 when coasting (+63/256 if below), 17 when holding normal throttle (or any throttle before race launch, +7/256), and 32 when holding turbo alone during a race (+15/256); above target it cools by 11/256 per frame. Turbo warning audio sounds while temperature is 26 or more while holding turbo alone without normal throttle, and reaching 32 triggers an overheat latch that cuts throttle input until an 11-frame slow timer counts down 24 ticks from 32 to 8 (up to 264 unpaused frames). excitebike/engine-heat-and-overheat-stall

About: Excitebike Overheat

Value: 32 heat units

CodeExcitebike (Japan, USA) · 0x1907-0x190E — $D8F7-$D8FE: HeatRateDeltaTable ($3F,$0F,$07,$07) and HeatTargetTable ($08,$20,$11,$11)Excitebike (Japan, USA) · 0x2369-0x2403 — $E359-$E3F3 (UpdateEngineHeatMeter + DrawHeatMeterSprites): runs unconditionally per frame, cools $03B6 by #$0B when above target, warns with $B0 at $03B6 >= #$1A only when y == 1 (B held without A during active racing), and latches $03E0 = $003C = $03B6 at >= #$20Excitebike (Japan, USA) · 0x1D9D-0x1DE0 — $DD8D-$DDD0 (UpdateHeatMeterSprites): runs while slow timer $003C > #$08; at $003C == #$08 clears $03E0 = 0 and sets $03B6, $009C, and $0374 to 5Excitebike (Japan, USA) · 0x0D2F-0x0D4F — $CD1F-$CD3F (UpdateEntitySpeedsAndEdgeSound): zeroes $005C,X throttle input whenever overheat latch $03E0,X != 0Excitebike (Japan, USA) · 0x1320-0x1335 — $D310-$D325 (TickDecrementTimers): slow timer $003C decrements once every 11 frames when $0020 underflowsChecked by claude, 2026-11-26 — disassembled $D310-$D325, $D8F7-$D8FE, $DD8D-$DDD0, and $E359-$E3F3 in the ROMRevised after a check by a second AI model, 2026-11-30: The latch cuts throttle rather than stopping the bike, with the citation added; the warning sounds while heat is 26 or more.

Track script commands implement cooling strips and turbo arrows directly on grounded bikes: a cool strip resets integer engine temperature to 8 only for the player (X == 0) when grounded ($00B0 == 0), unlatched from overheating ($03E0 == 0), and with slow timer $003C at zero, while a boost arrow increments the high byte of horizontal speed by 1 full pixel per frame on any uncrashed grounded rider. Bike tilt also enforces two crash limits: tilting back past pitch index 12 on the ground while holding throttle crashes the rider into an over-wheelie fall, and landing from a jump during normal racing outside pitch bounds set by slope and speed crashes the rider immediately unless a landing exemption flag is set. excitebike/boost-arrow-cool-zone-and-pitch-crash

CodeExcitebike (Japan, USA) · 0x26C7-0x26F0 — $E6B7-$E6E0 (EntityCommandPtrs): script pointer table dispatching command 18 to $E8D3 and command 19 to $E8E7Excitebike (Japan, USA) · 0x28E3-0x28F2 — $E8D3-$E8E2: cool command resets $03B6 = #$08 when player (X == 0), grounded ($00B0 == 0), unlatched ($03E0 == 0), and $003C == 0Excitebike (Japan, USA) · 0x28F7-0x28FD — $E8E7-$E8ED: boost command checks grounded ($00B0,X == 0) and jumps to $DCFEExcitebike (Japan, USA) · 0x1D0A-0x1D17 — $DCFA-$DD07: entry $DCFE checks uncrashed ($0098,X == 0) and executes INC $0094,X (+1.00 px/frame)Excitebike (Japan, USA) · 0x0E93-0x0EDF — $CE83-$CECF (StepEntityAccelState): grounded tilt above cap while $005C & $C0 != 0 increments pitch $00AC,X and sets crash $0098,X = 1 when $00AC,X >= #$0DExcitebike (Japan, USA) · 0x187C-0x189B — $D86C-$D88B (LaneLimitLowTable and LaneLimitHighTable): 16 lower and upper landing pitch bounds indexed by slope ($00D4,X) and speed tierExcitebike (Japan, USA) · 0x1C49-0x1C7D — $DC39-$DC6D (CheckEntityTerrainContact landing check): when $0052 == 0, sets $0098,X = #$FF if pitch $00AC,X < LaneLimitLowTable[Y] or >= LaneLimitHighTable[Y]Checked by claude, 2026-11-26 — disassembled $CE83-$CECF, $D86C-$D88B, $DC39-$DC6D, $DCFA-$DD07, $E6B7-$E6E0, $E8D3-$E8ED in the ROMRevised after a check by a second AI model, 2026-11-30: Landing bounds depend on slope and speed, and an exemption flag skips the check.

Track scrolling runs through a 64-column ring buffer whose decoder writes at most one 8-pixel column per frame whenever the player's column head reaches the decoder's next column. Each frame the scrolling accumulator subtracts the bike's integer pixel speed and, on zero or underflow, adds 8 and advances the ring head by one column modulo 64, so speeds above 8 pixels per frame drive the signed pixel offset negative. When the decoder finishes track segment 9, it decrements the remaining lap count and sets a flag once the count reaches zero. excitebike/track-ring-buffer-8px-scroll

Value: 8 px/frame

CodeExcitebike (Japan, USA) · 0x271B-0x2742 — $E70B-$E732 (UpdateEntityTimers): subtracts integer BikeSpeed ($0060,X) from $0064,X; on <= 0 adds #$08 and increments $00E0,X mod $40Excitebike (Japan, USA) · 0x350F-0x365D — $F4FF-$F64D (UpdateTrackColumnScroll): runs at most one column decode per frame when the head $00E0 reaches cursor $00EB, wraps cursor $00E8 and $00EB mod $40, and decrements laps $0057 at segment 9 until setting $03BC = 1Checked by claude, 2026-11-26 — disassembled UpdateEntityTimers ($E70B-$E732) and UpdateTrackColumnScroll ($F4FF-$F64D) in the ROMRevised after a check by a second AI model, 2026-11-30: The column head reaches the decoder, not the reverse; the lap decrement is tied to segment 9 as the code shows.

Reset seeds an eight-byte shift register with 6 in its first byte and continuously runs an idle-loop LFSR between vertical blanks, XORing bit 1 of the first two bytes and rotating all 64 bits right on every iteration. Opponent spawning, lane changes, and AI animation states read these bytes, among other readers. excitebike/idle-loop-64bit-prng

About: Excitebike Random number generator

Value: 8 bytes

CodeExcitebike (Japan, USA) · 0x01D6-0x01F4 — $C1C6-$C1E4 (Reset): sets $0018 = #$06 and spins JSR ShiftRandomSeed ($D326) while waiting in idle loopExcitebike (Japan, USA) · 0x1336-0x1356 — $D326-$D346 (ShiftRandomSeed): XORs ($18 & $02) and ($19 & $02) into Carry and RORs $0018-$001FExcitebike (Japan, USA) · 0x1AAF-0x1AF2 — $DA9F-$DAE2 (SpawnEntitiesAheadOfPlayer): scans opponent slots X = 3..1 using $0018,X for spawn threshold and lane selectionExcitebike (Japan, USA) · 0x0F1C-0x0F73 — $CF0C-$CF63 (CheckEntityTerrainContact): opponent loop X >= 1 reads $0018,X and $0019,X for lane changesExcitebike (Japan, USA) · 0x1010-0x1027 — $D000-$D017 (UpdateEntityAnimSelect): opponent branch reads $001A,X before jumping to SelectEntityAnimationState ($DB50)Excitebike (Japan, USA) · 0x1B60-0x1B7B — $DB50-$DB6B (SelectEntityAnimationState): reads $001B,X & #$0F into EntityStateLookupTable for non-player AI statesChecked by claude, 2026-11-26 — disassembled Reset ($C1C6), ShiftRandomSeed ($D326), and AI readers ($CF0C, $D000, $DA9F, $DB50) in the ROMRevised after a check by a second AI model, 2026-11-30: Dropped the claim that only opponent logic reads the register.