data/claims/duck-hunt.yamlDuck Hunt (NES ROM)
Game: Duck Hunt.
Duck Hunt's random routine shifts a four-byte register right one bit per call, feeding in the exclusive-or of one bit from each of its first two bytes, and returns the first byte. duck-hunt/duck-hunt-rng-32bit
About: Duck Hunt Random number generator
CodeDuck Hunt (World) ·0x598-0x5B9 — $C588-$C5A9: bit 1 of $05EC XOR bit 1 of $05ED goes into the carry, four RORs over $05EC-$05EF, returns $05ECChecked by claude-agent, 2026-11-30 — read the whole routineChecked by a second AI model, 2026-11-30.Cited by: Duck Hunt
Duck Hunt accepts a change on the Zapper's trigger line only on the second matching read: an accepted change to a set bit arms the shot, and the following accepted change back to clear fires it. duck-hunt/duck-hunt-trigger-two-frames
About: Duck Hunt Controller reading
CodeDuck Hunt (World) ·0x1141-0x116F — $D131-$D15F: bit 4 of $4017; a change restarts the count at $B8; a set bit arms $B6, and a clear bit with $B6 armed clears it and sets the shot flag $B5Checked by claude-agent, 2026-11-30 — followed every branch of the trigger routine for the change, set, and clear casesChecked by a second AI model, 2026-11-30.Cited by: Duck Hunt
Duck Hunt's boot code keeps the first byte of its random register through the memory clear, replacing a zero with a fixed value, while the register's other three bytes are cleared. duck-hunt/duck-hunt-rng-survives-boot
About: Duck Hunt Random number generator
CodeDuck Hunt (World) ·0x21-0x3E — $C011-$C02E: saves $05EC, clears $0000-$06FF, restores it, and writes $5F if it is zeroChecked by claude-agent, 2026-11-30 — read the save, the clear loop's bounds, and the restoreChecked by a second AI model, 2026-11-30.Cited by: Duck Hunt
In Duck Hunt's two-duck game, bringing a duck into play starts a random countdown of 1 to 64 that must run out before the other waiting duck can appear. duck-hunt/duck-hunt-second-duck-delay
About: Duck Hunt Enemy spawning
CodeDuck Hunt (World) ·0x942-0x949 — $C932-$C939: the spawn state goes on only when $B9 is nonzero and $A6 is zeroDuck Hunt (World) · 0x976-0x97E — $C966-$C96E: $A6 = (random AND $3F) + 1Duck Hunt (World) · 0x90B-0x911 — $C8FB-$C901: $A6 counts downDuck Hunt (World) · 0x8A0-0x8C3 — $C890-$C8B3: the two duck objects at $0300 and $0350 each run the state machineDuck Hunt (World) · 0xDBA-0xDD1 — $CDAA-$CDC1: the setup taken when $1F is nonzero sets two ducks to spawn ($BC) and activates both objectsChecked by claude-agent, 2026-11-30 — read the spawn gate, the countdown's store and decrement, the two-object loop, and the two-duck setupChecked by a second AI model, 2026-11-30.Cited by: Duck Hunt
Duck Hunt picks each flight pattern at random from a set of 16, with a different set for the one-duck game, and if the pick equals the previous one it takes the next in the set instead. duck-hunt/duck-hunt-flight-no-repeat
About: Duck Hunt Random number generator
CodeDuck Hunt (World) ·0x94A-0x969 — $C93A-$C959: random AND $0F, plus $10 when $1F is zero; a match with $9C advances by one within the same 16Duck Hunt (World) · 0x12D4-0x12D7 — $D2C4-$D2C7: initialization sets $9C to $FF, which matches no patternDuck Hunt (World) · 0x83B-0x83F — $C82B-$C82F: $1F is taken from the game choice at $05FEChecked by claude-agent, 2026-11-30 — read the pick, the wrap on a repeat, the initial previous value, and where $1F comes fromChecked by a second AI model, 2026-11-30.Cited by: Duck Hunt