data/claims/golf.yamlGolf (NES ROM)
Game: Golf.
NES Golf sets each hole's wind by copying, once as the hole is set up, a one-byte counter that its frame interrupt raises by 1. Four bits of the copy are the strength number printed off the green, 0 to 15 (computed), and three more pick one of eight arrows; at strength 0 no arrow is drawn. golf/wind-from-clock
Value: counter bits 8 · strengths 16 · directions 8 (bits; values)
CodeGolf (USA, Asia) (En) ·0x400A-0x400B — the frame-interrupt vector, $C0A6Golf (USA, Asia) (En) · 0x00B6-0x00D3 — $C0A6-$C0C3: the handler jumps through the pointer at $02; the shared tail at $C0B8 increments $8B and returnsGolf (USA, Asia) (En) · 0x0728-0x072A — $C718: the end of a per-screen handler jumps to $C0B8Golf (USA, Asia) (En) · 0x00F5-0x0133 — $C0E5-$C123, hole setup: runs straight to $C120, which copies $8B to $8CGolf (USA, Asia) (En) · 0x04F8-0x0510 — $C4E8-$C500: advance the hole number and jump back to the setup at $C0E5Golf (USA, Asia) (En) · 0x0E82-0x0ED6 — $CE72-$CEC6: skipped while $49 is nonzero; (byte & $7F) >> 3 is printed as a number, and unless it is 0 the low three bits index the arrow's tile and attributeGolf (USA, Asia) (En) · 0x0A3D-0x0A9A — $CA2D-$CA8A: splits the value in $19 into decimal digits and writes them to the screenChecked by claude, 2026-11-30 — disassembled the interrupt entry, the shared tail, the hole setup, and the wind display from the ROM matching the source's SHA-1; a scan of the program ROM for stores to the wind byte found only the copy at $C122Checked by a second AI model, 2026-11-30.Cited by: Golf
In NES Golf the wind pushes a ball hit off the green with a club other than the putter once the shot's straight opening climb is over. On each later step of the flight the game moves the ball a table step toward one of eight directions, twice as many times as the strength number (computed), and a strength of 0 skips the push whatever the direction bits say. golf/wind-push
Value: directions 8 · steps per strength 2 · max steps 30 (directions; table steps)
CodeGolf (USA, Asia) (En) ·0x1206-0x1238 — $D1F6-$D228: a nonzero $49 leaves for another routine, and club 13 or above (`$0D`) goes to the rolling code; otherwise an opening loop, its length from a per-club table, moves the ball without changing the climb rateGolf (USA, Asia) (En) · 0x1239-0x1254 — $D229-$D244: the second loop lowers the climb rate each step and leaves once the height byte is $F0 or moreGolf (USA, Asia) (En) · 0x127B-0x12DD — $D26B-$D2CD: strength bits (`$78`) of zero branch past; otherwise X = (byte & $78) >> 2 passes each add a table step to both ground coordinates, the second index $40 (a quarter turn) after the first; one frame wait, then the loop repeatsGolf (USA, Asia) (En) · 0x1314-0x131F — $D304-$D30F: the step's sign extensionGolf (USA, Asia) (En) · 0x08C8-0x08CD — $C8B8-$C8BD: five left shifts, so the low three bits become eight angles $20 apart in a 256-unit turnGolf (USA, Asia) (En) · 0x0051-0x007B — $C041-$C06B: startup builds the two 256-entry step tables at $0600 and $0700Golf (USA, Asia) (En) · 0x157F-0x15FF — $D56F-$D5EF: the half wave, from -256 to 256, that the tables are built fromChecked by claude, 2026-11-30 — disassembled the flight loops and the wind loop from the ROM matching the source's SHA-1; looked at each instruction-like match for a read of the wind byte and found only the display and this loop in codeChecked by a second AI model, 2026-11-30.Cited by: Golf
In NES Golf a full shot curves when the swing meter's mark stops outside a per-club zone: on one side or the other, a counter for that side goes up each flight step after the opening climb, and on reaching its limit turns the ball's heading by 1/256 of a circle that side's way and restarts. The limit falls from 10 steps at the zone's edge to 2 at 8 or more meter units beyond it (computed), and the two counters keep their counts from one shot to the next. golf/swing-curve-counters
Value: slowest every 10 · fastest every 2 · heading units 256 (flight steps; heading units per turn)
CodeGolf (USA, Asia) (En) ·0x105A-0x107F — $D04A-$D06F: on the downswing the meter byte rises and is written to the mark's sprite position, $027F, capped at $1FGolf (USA, Asia) (En) · 0x1090-0x10C4 — $D080-$D0B4: the press during the downswing switches to the handler at $D096, which moves the meter on without writing $027F, so the mark holds where it was pressedGolf (USA, Asia) (En) · 0x1198-0x11BE — $D188-$D1AE: $48 = lower bound − stop and $47 = stop − upper bound, by club; a non-negative difference is capped at 8Golf (USA, Asia) (En) · 0x0F8E-0x0FA2 — $CF7E-$CF92: for a swing off the green, the meter's far end $1F is 108 (`$6C`)Golf (USA, Asia) (En) · 0x1658-0x1675 — $D648-$D665: 15 lower bounds, then 15 upper bounds; the positions strictly between them number 3 for the first club and 11 for the twelfth and thirteenth (computed)Golf (USA, Asia) (En) · 0x1206-0x1254 — $D1F6-$D244: only off the green and with a club below 13; the opening loop calls neither counter, and the second loop reaches them while the ball is above the groundGolf (USA, Asia) (En) · 0x1255-0x127A — $D245-$D26A: a negative $47 skips its side; otherwise increment $4B and, at the limit, decrement the heading $45 and clear $4B. $48 does the same with $4C, incrementing the headingGolf (USA, Asia) (En) · 0x164F-0x1657 — $D63F-$D647: limits 10, 9, 8, 7, 6, 5, 4, 3, 2 for differences 0-8Golf (USA, Asia) (En) · 0x143E-0x1458 — $D42E-$D448: the heading $45 indexes the 256-entry step tables that move the ballChecked by claude, 2026-11-30 — disassembled the meter handlers, the bound setup, and the flight loop, and read both bound tables and the limit table from the ROM matching the source's SHA-1; a scan of the program ROM found no instruction other than those in this routine that addresses either counter, so nothing else clears themChecked by a second AI model, 2026-11-30.The zone with no curve widens with the club: 3 meter units strictly between the two bounds for the first club, 11 for the twelfth and thirteenth (computed). The meter's mark also stops by itself at its far end, 108, if no button is pressed.
Cited by: Golf
Off the green, NES Golf steps once per press: Up and Down move through 14 clubs and Left and Right through 16 aim directions 22.5° apart (computed), both wrapping around. On the green the club is locked to a fifteenth entry shown under the putter's name, and holding Left or Right turns the aim by 1/256 of a circle every frame. golf/aim-and-club-wrap
Value: clubs 14 · aim directions 16 · green aim units 256 (clubs; directions; aim units per turn)
CodeGolf (USA, Asia) (En) ·0x05B4-0x061A — $C5A4-$C60A: $30 holds the direction held (Up 3, Down 2, Left 1, Right 0, none `$FF`). With $49 nonzero the club is set to 14 (`$0E`); otherwise Down adds 1, wrapping from 14 to 0, Up subtracts 1, wrapping below 0 to 13, and $18 allows one step per pressGolf (USA, Asia) (En) · 0x0633-0x064E — $C623-$C63E, on the green: with no press-once flag, Right increments the heading $45 and Left decrements it on every passGolf (USA, Asia) (En) · 0x068B-0x06B5 — $C67B-$C6A5, off the green: $45 serves as the press-once flag; Right increments and Left decrements the aim $44, masked to 0-15Golf (USA, Asia) (En) · 0x11DB-0x11E5 — $D1CB-$D1D5: off the green the shot's 256-unit heading is the aim shifted left four timesGolf (USA, Asia) (En) · 0x08C9-0x08CD — $C8B9-$C8BD: the four shifts, then returnGolf (USA, Asia) (En) · 0x0F51-0x0F57 — $CF41-$CF47: install the routine at $C59D as the frame interrupt's handler, so it runs once a frameGolf (USA, Asia) (En) · 0x0728-0x072A — $C718: the handler ends in the shared interrupt tailGolf (USA, Asia) (En) · 0x0195-0x01A9 — $C185-$C199: $49 is 1 when the current player's ball state is 2, else 0Golf (USA, Asia) (En) · 0x0279-0x0286 — $C269-$C276: after a ball stops, the terrain test; its $52 flag (the putting surface) leads to $C302Golf (USA, Asia) (En) · 0x085A-0x0870 — $C84A-$C860: draws the club's two-tile name at $234A from the word table at $C788Golf (USA, Asia) (En) · 0x0798-0x07B5 — $C788-$C7A5: 15 two-tile club names (1W through SW, then PT twice; letters from `$0A`)Golf (USA, Asia) (En) · 0x0878-0x088B — $C868-$C87B: draws a 10-tile string at $2304 through the offset table at $C7A6Golf (USA, Asia) (En) · 0x07B6-0x07C4 — $C7A6-$C7B4: 15 offsets into the 10-tile strings at $C7B5; the fourteenth and fifteenth are the sameGolf (USA, Asia) (En) · 0x0312-0x034E — $C302-$C33E: a ball that comes to rest on the putting surface away from the cup is given state 2Checked by claude, 2026-11-30 — disassembled the club, aim, and heading code from the ROM matching the source's SHA-1 and traced the green flag to the ball stateRevised after a check by a second AI model, 2026-11-30: Cited the table that draws the club's name.Cited by: Golf