data/claims/tennis.yamlTennis (NES ROM)
Game: Tennis.
NES Tennis's random number routine adds 15 to one byte, and 17 plus that addition's carry to a second. It shifts a separate two-byte value right, feeding in the exclusive-or of the two sums' top bits, and returns the first sum. tennis/rng-recurrence
About: Tennis Random number generator
Value: first step 15 · second step 17 (added per call)
CodeTennis (Japan, USA) (En) ·0x0466-0x0487 — $C456-$C477: $0500 += $0F (after CLC), $0501 += $11 + C; ($0501 ^ $0500) bit 7 rotates into $0502, then $0503; returns $0500Checked by claude, 2026-11-30 — disassembled the routine from the ROM matching the source's SHA-1 and traced the carry through both additions and the shiftChecked by a second AI model, 2026-11-30.Cited by: Tennis
NES Tennis keeps calling its random number routine in the loop that waits for the next frame, so the number of calls between frames depends on how much time the frame's work leaves. tennis/idle-loop-rng
About: Tennis Random number generator
CodeTennis (Japan, USA) (En) ·0x007A-0x008C — $C06A-$C07A: while $30 is 0, JSR $C456 and loopTennis (Japan, USA) (En) · 0x00AC-0x00AF — the frame interrupt sets $30Tennis (Japan, USA) (En) · 0x0466-0x0487 — random routineChecked by claude, 2026-11-30 — traced the wait loop and the flag that ends itChecked by a second AI model, 2026-11-30.Cited by: Tennis
NES Tennis counts down 4 timers on every pass of its main loop and 2 more only on every 11th pass (computed), each stopping at 0. tennis/eleven-frame-timers
About: Tennis Simulation tick
Value: fast 4 · slow 2 · slow every 11 (timers; passes)
CodeTennis (Japan, USA) (En) ·0x0385-0x039A — $C375-$C38A: prescaler $20 reloads with 10; X = 3 normally, 5 when it wrapsTennis (Japan, USA) (En) · 0x0070-0x0072 — called from the main loopChecked by claude, 2026-11-30 — counted the indexes each branch coversChecked by a second AI model, 2026-11-30.In NES Tennis, a serve toss that is falling with a height value below 100 goes back to the server before the swing button is even checked, and the reset records no fault or score. The height value is the ball's vertical position divided by 4. tennis/toss-catch
About: Tennis Timing window
Value: height below 100 (height value (vertical position divided by 4))
CodeTennis (Japan, USA) (En) ·0x15DF-0x160F — $D5CF-$D5FF: negative vertical velocity $6C and $6F < #$64 branch to the reset; otherwise the swing button is readTennis (Japan, USA) (En) · 0x1611-0x1630 — $D601-$D620: reset sets serve state $8C = 0 and $B6 = #$11 (the toss start writes #$12), calls $D519, and sets ball position and velocityTennis (Japan, USA) (En) · 0x05C7-0x05DB — $C5B7: $6F = ($6E:$6D) >> 2, clamped to 255Tennis (Japan, USA) (En) · 0x15A0-0x15C6 — $D590-$D5B6: serve states; the toss starts with positive velocity #$13Checked by claude, 2026-11-30 — traced the falling-ball branch and every write the reset makesRevised after a check by a second AI model, 2026-11-30: The evidence note now includes one more value the reset writes.Cited by: Tennis
At the end of a match in NES Tennis, unless the second side is recorded as the winner, the computer's level goes up by one, to at most 4 counting from 0, and the match is counted. The second counted match clears the winner record. tennis/match-win-level-up
About: Tennis Difficulty ramp
Value: max level 4 · matches 2 (level counted from 0; matches)
CodeTennis (Japan, USA) (En) ·0x28BF-0x28D9 — $E8AF-$E8C9: return if $5C = 2; INC $4C unless 4; INC $4D; at 2 clear $5CTennis (Japan, USA) (En) · 0x079C-0x07A6 — level $4C = menu choice, match count zeroedTennis (Japan, USA) (En) · 0x0783-0x078B — menu cursor wraps to 4Tennis (Japan, USA) (En) · 0x281E-0x2848 — $5C identifies the winning side, 1 or 2Tennis (Japan, USA) (En) · 0x27C1-0x27C7 — $5C is set from the sideTennis (Japan, USA) (En) · 0x0A02-0x0A0F — called at match endChecked by claude, 2026-11-30 — traced the level and match counters from menu setup to the end-of-match callChecked by a second AI model, 2026-11-30.Cited by: Tennis