data/claims/abadox.yamlAbadox (NES ROM)
Game: Abadox.
Abadox's hit test for a moving shot checks only six of its 12 object slots on each call, the even-numbered or the odd-numbered ones according to a counter that the main loop advances, and it returns at the first hit, except that destroying one type of target lets the scan go on. abadox/abadox-nes-half-slot-hits
About: Abadox Object slots
CodeAbadox - The Deadly Inner War (USA) ·0x1F15D-0x1F180 — bank 7 $F14D-$F170: bit 0 of $18 picks the first slot; six slots, stride $2A (two $15-byte slots); a hit leaves the loop for $F171Abadox - The Deadly Inner War (USA) · 0x1F27F-0x1F296 — bank 7 $F26F-$F286: reached from $F22E when a target whose $03D4,X is $20 dies; marks the slot and jumps back into the scan at $F166Abadox - The Deadly Inner War (USA) · 0x1DEF6-0x1DF4C — bank 7 $DEE6-$DF3C: the caller's loop over five entries at $03A0Abadox - The Deadly Inner War (USA) · 0x1C764-0x1C769 — bank 7 $C754-$C759: the main loop's increment of $18Checked by claude-agent, 2026-11-30 — read the scan routine, the hit body's exits including the branch back into the scan, its caller's loop, and the counter's increment; compared the stride with the 12-slot loop at $F319Revised after a check by a second AI model, 2026-11-30: One kind of destroyed target lets the scan go on past the first hit.Cited by: Abadox
In Abadox, a hit that does damage takes an amount from a short table (1, 1, 3, 2, or 2, by the player's weapon type) off the target's health, and the target dies only if the subtraction goes below zero, so one left at exactly 0 survives. abadox/abadox-nes-damage-table
About: Abadox Hit points
CodeAbadox - The Deadly Inner War (USA) ·0x1F21D-0x1F234 — bank 7 $F20D-$F224: no damage when bit 7 of $03D4,X is set; subtract $F950,Y (Y = $8C) from $03DE,X; carry clear branches to the death dispatchAbadox - The Deadly Inner War (USA) · 0x1F960-0x1F964 — bank 7 $F950-$F954: the table, 01 01 03 02 02Checked by claude-agent, 2026-11-30 — read the subtraction, its borrow branch, and the table bytesRevised after a check by a second AI model, 2026-11-30: The table is indexed by the player's weapon type.Cited by: Abadox
Each time Abadox builds its sprite list, it starts writing 15 sprites further along sprite memory than the time before, wrapping around, so the order of sprites keeps changing; a special entry in one object list sends the start back to the beginning. abadox/abadox-nes-sprite-rotation
About: Abadox Sprite flicker
CodeAbadox - The Deadly Inner War (USA) ·0x1D410-0x1D42D — bank 7 $D400-$D41D: $45 += $3C (15 four-byte entries), copied to $46, then moved past one entry or past six fixed status spritesAbadox - The Deadly Inner War (USA) · 0x1D483-0x1D4A8 — bank 7 $D473-$D498: a $0610-list entry of $FF resets $45 = 0 and $46 = 4Abadox - The Deadly Inner War (USA) · 0x1D50B-0x1D50E — bank 7 $D4FB: the writer stops when its position comes back round to $45Abadox - The Deadly Inner War (USA) · 0x1C58F-0x1C591 — bank 7 $C57F: the vblank handler calls the sprite routineChecked by claude-agent, 2026-11-30 — read the start-offset step, the reset branch, the stop test, and the call from the vblank handlerChecked by a second AI model, 2026-11-30.Cited by: Abadox
Abadox reads both controllers again and again until two reads in a row agree, and only then works out the buttons its game code acts on. abadox/abadox-nes-pad-double-read
About: Abadox Controller reading
CodeAbadox - The Deadly Inner War (USA) ·0x1C5F1-0x1C61E — bank 7 $C5E1-$C60E: repeat until $13 and $14 match the previous read; $15,X keeps the raw state, and $13,X drops buttons in mask $17 that were already heldAbadox - The Deadly Inner War (USA) · 0x1C61F-0x1C64C — bank 7 $C60F-$C63C: one strobe and eight reads of $4016 and $4017, with the second data bit ORed inChecked by claude-agent, 2026-11-30 — read the compare loop, the new-press arithmetic, and the read routine it callsChecked by a second AI model, 2026-11-30.Cited by: Abadox
Abadox seeds a four-byte random register with the same four values at boot; each roll shifts it right one bit, feeding in the exclusive-or of two bits from its first two bytes, then adds one to the first byte and returns it. abadox/abadox-nes-boot-register
About: Abadox Random number generator
CodeAbadox - The Deadly Inner War (USA) ·0x1C446-0x1C48A — bank 7 $C436-$C47A: seeds $1C-$1F with $01 $0A $64 $6F; $C464 shifts with feedback bit 1 of $1C XOR bit 1 of $1D; $C450 steps, increments $1C, and returns itAbadox - The Deadly Inner War (USA) · 0x1C3F6-0x1C3F8 — bank 7 $C3E6: the boot path calls the seeding routineChecked by claude-agent, 2026-11-30 — read the seed, step, and wrapper routines and the boot callChecked by a second AI model, 2026-11-30.Cited by: Abadox