Claim set · data/claims/puzznic.yaml

Puzznic (USA) (the ROM, read in a private disassembly)

Game: Puzznic.

Puzznic wraps stage selection modulo 160 stages in Puzznic mode and modulo 80 stages in Gravnic mode, whereas clearing stage 160 in Puzznic mode or stage 80 in Gravnic mode branches to the ending sequence instead of advancing further. The stage loader reads each stage's 4-byte entry from one table, 160 entries long in Puzznic mode and 80 in Gravnic mode, and unpacks the stage into a 120-cell playfield grid arranged as 12 rows of 10 columns. puzznic/stage-tables-and-playfield

Value: puzznic stages 160 · gravnic stages 80 · cols 10 · rows 12 · cells 120

CodePuzznic (USA) · 0x15AE-0x15BD — fixed ROM $959E-$95AD: increments stage index $0509 after Puzznic-mode clear and branches to ending sequence $942D when $0509 reaches #$A0 (160), otherwise jumping to $9499Puzznic (USA) · 0x142C-0x143C — fixed ROM $941C-$942C: increments stage index $0509 after Gravnic-mode clear and branches to ending sequence $942D when $0509 reaches #$50 (80), otherwise looping to $92CFPuzznic (USA) · 0x1FD9-0x2000 — fixed ROM $9FC9-$9FF0: wraps stage selection modulo #$A0 (160) in Puzznic mode ($06E8 != 1) and modulo #$50 (80) in Gravnic mode ($06E8 == 1)Puzznic (USA) · 0x1A89-0x1ACC — fixed ROM $9A79-$9ABC: picks a 256-byte window by $0509 >> 6 from $9AAD ($AB76, $AC76, $AD76, $AE76) or, in Gravnic mode, $9AB5 ($C60C-$C90C), then reads the 2-byte pointer at (stage × 4) mod 256; stages 0-159 use only the first three windowsPuzznic (USA) · 0x2E02-0x2E09 — fixed ROM $ADF2-$ADF9: the last Puzznic entry (stage 160), then packed stage data from $ADF6, where entry 0 points; the fourth window base $AE76 lies inside that dataPuzznic (USA) · 0x1BAE-0x1BCD — fixed ROM $9B9E-$9BBD: divides linear cell index by 10 (#$0A) to compute 10-column by 12-row screen coordinatesPuzznic (USA) · 0x20DF-0x2192 — fixed ROM $A0CF-$A182: unpacks 120 cells (#$78) into grid RAM $0559-$05D0Checked by researcher, 2026-11-25 — read stage clear progression ($959E, $941C), stage selection ($9FC9), sub_00_9A79, sub_00_9B9E, and sub_00_A0CF in bank 0 of a private disassemblyRevised after a check by a second AI model, 2026-11-30: One table of 160 entries, not four of 64; the fourth window base points into stage data.

Playfield cells live at $0559-$05D0 ($78 = 120 bytes) in row-major order, 10 columns wide. The Puzznic table runs $AB76-$ADF5 (160 × 4 bytes) and the Gravnic one $C60C-$C74B (80 × 4); stage data follows each. The fourth window bases ($AE76, $C90C) point into stage data and are never used. Stage selection wraps $0509 modulo 160 or 80 ($9FC9-$9FF0), whereas stage completion branches to the ending at $942D upon clearing stage 160 ($959E-$95AD) in Puzznic mode or stage 80 ($941C-$942C) in Gravnic mode.

Cited by: Puzznic

Controller polling extracts rising-edge button presses separately from held buttons each frame. A fresh directional press clears the repeat counter to 0 for immediate cursor motion or block pushing, while holding a direction repeats once every 8 frames. puzznic/input-repeat-cooldown

Value: fresh delay 0 · held period 8

CodePuzznic (USA) · 0x0FEC-0x0FFC — fixed ROM $8FDC-$8FEC: stores rising-edge inputs in $00F5-$00F6 and held inputs in $00F7-$00F8Puzznic (USA) · 0x07FE-0x08AF — fixed ROM $87EE-$889F: clears repeat counter $0661 to 0 when $00F5 & #$03 is non-zero; when held ($00F7 & #$03), repeats only when $0661 & #$07 == 0Puzznic (USA) · 0x098D-0x09F4 — fixed ROM $897D-$89E4: applies the same $00F5 reset and $0661 & #$07 == 0 repeat check to 4-way cursor movementChecked by researcher, 2026-11-25 — read L8FDC, L87EE, and L897D in bank 0 of a private disassemblyChecked by a second AI model, 2026-11-30.

Releasing and tapping a direction triggers $00F5, resetting $0661 to 0 without waiting out the 8-frame repeat period.

Cited by: Puzznic

Moving entities select a signed per-frame displacement table from bits 5 and 6 of their slot flag byte and a direction from the low nibble: falling blocks move at 2 pixels per frame along the active gravity direction (initialized downward in Puzznic mode), while elevators and blocks riding them move at 1 pixel per frame. puzznic/gravity-vs-elevator-speeds

Value: gravity px per frame 2 · elevator px per frame 1

CodePuzznic (USA) · 0x0B43-0x0B9B — fixed ROM $8B33-$8B8B: masks $05D1,X with #$60 and right-shifts 4 bits to select a table pointer from L8C34 and add dx/dy to $05D8,X and $05D5,XPuzznic (USA) · 0x0C44-0x0C89 — fixed ROM $8C34-$8C79: L8C34 pointer table targeting $8C3A (+/-1 px/f for %10), $8C5A (+/-2 px/f for %01), and $8C7A (%00)Puzznic (USA) · 0x1478-0x147C — fixed ROM $9468-$946C: initializes gravity direction $06E6 = #$04 (downward) on Puzznic mode entryPuzznic (USA) · 0x26D7-0x26EE — fixed ROM $A6C7-$A6DE: sets bits 5-6 to #$20 (%01) on unsupported blocks and copies active gravity $06E6 into low nibble of $05D2,XPuzznic (USA) · 0x1C41-0x1C78 — fixed ROM $9C31-$9C68: spawn table sets #$C0 (bits 5-6 = %10) on elevator types 4 and 5Puzznic (USA) · 0x2886-0x28B8 — fixed ROM $A876-$A8A8: copies the elevator's $05D1,X velocity bits onto riding block slotsChecked by researcher, 2026-11-25 — read sub_00_8B33, L8C34, sub_00_9468, L9C31, LA6C7, and sub_00_A876 in bank 0 of a private disassemblyRevised after a check by a second AI model, 2026-11-30: Dropped an evidence note's step size for a table past the cited range.

Free cursor jumps (%00) select $8C7A (±16 pixels in one step), falling blocks (%01) select $8C5A (2 px/frame along $06E6 — fixed to #$04 down in Puzznic mode, or rotatable across all four cardinal directions in Gravnic mode), and elevators plus riding blocks (%10) select $8C3A (1 px/frame).

Cited by: Puzznic

When blocks match, the destruction routine runs a 23-step animation whose base cadence is 2 frames per step (exceeded whenever a step incurs two or more mid-step PPU-buffer yields), followed in Puzznic mode by 2 score/counter HUD frames and 9 color-counter and attribute redraw frames for a 57-frame baseline, whereas Gravnic mode skips both post-animation updates for a 46-frame baseline. puzznic/match-destruction-cadence

Value: anim steps 23 · base frames per step 2 · base anim frames 46 · puzznic score hud frames 2 · puzznic attr hud frames 9 · puzznic base frames 57 · gravnic base frames 46

CodePuzznic (USA) · 0x22F6-0x24D0 — fixed ROM $A2E6-$A4C0: steps $06B7 = 0..22 until $FE (taking 2 frames per step when mid-step yield counter $06CF <= 1, or $06CF + 1 frames when >= 2), then in Puzznic mode ($06E8 != 1) calls $D7B5 and $D361 (Gravnic skips both)Puzznic (USA) · 0x24D1-0x24E8 — fixed ROM $A4C1-$A4D8 (LA4C1): 23 animation frames ($FF/$10 x 8, then $11,$11,$12,$12,$13,$13,$00) ending with $FEPuzznic (USA) · 0x57C5-0x586D — fixed ROM $D7B5-$D85D: Puzznic-mode post-match update calls $D70A and yields 1 frame at $D80BPuzznic (USA) · 0x571A-0x5760 — fixed ROM $D70A-$D750: queues score tiles and yields 1 frame at $D735 in Puzznic mode (total 2 frames inside $D7B5)Puzznic (USA) · 0x5371-0x54B0 — fixed ROM $D361-$D4A0: yields once per color with blocks left, then once per remaining slot (8 in all), then queues the $23C0 attributes and yields once (9 frames)Checked by researcher, 2026-11-25 — read sub_00_A2E6, sub_00_A3A2, LA4C1, sub_00_D7B5, sub_00_D70A, and sub_00_D361 in bank 0 of a private disassemblyRevised after a check by a second AI model, 2026-11-30: Corrected an evidence note on how the color-counter redraw spends its frames.

In Puzznic mode ($06E8 != 1), 46 base animation frames plus 2 frames in sub_00_D7B5 and 9 frames in sub_00_D361 total 57 base frames inside sub_00_A2E6 (more if any step overflows `$0301 >=

Cited by: Puzznic

In Puzznic mode, clearing at least 4 blocks in one match or any chain match reaches score weight 4 or higher, spawning a 4-sprite score popup with a 48-frame countdown timer. Each frame decrements the timer by 1 (leaving 47 frames after the clearing tick), and stage exit stalls 1 frame per remaining tick until the timer reaches 0. puzznic/score-popup-exit-stall

Value: min blocks no chain 4 · initial frames 48 · clear tick remaining 47

CodePuzznic (USA) · 0x57C5-0x586D — fixed ROM $D7B5-$D85D: indexes score-popup table LD837 by ($06D2 * 8) + min(cleared - 2, 6); non-chain 3-block clear reads LD837[1] = 2 (< 4), while 4+ blocks or chain >= 1 reads >= 4Puzznic (USA) · 0x586E-0x58CC — fixed ROM $D85E-$D8BC: exits early if popup weight $06D4 < #$04 (cmp #$04; bcc), otherwise allocates 4 OAM spritesPuzznic (USA) · 0x58CD-0x5930 — fixed ROM $D8BD-$D920: writes #$30 (48) to $06D7 when weight >= 4; sub_00_D8F4 decrements $06D7 and moves the 4 popup sprites upward 1 px per tickPuzznic (USA) · 0x2478-0x24C0 — fixed ROM $A468-$A4B0: Gravnic mode ($06E8 == 1) skips calling sub_00_D7B5, setting no popup timerPuzznic (USA) · 0x1547-0x15A3 — fixed ROM $9537-$9593: Puzznic main loop calls match handler sub_00_A2E6 ($9537), calls sub_00_D8F4 once on the clearing tick ($9557) before stage-clear check sub_00_9685 ($9566), then stalls 1 frame per tick at $9572-$9583 via $D0D9 and $D8F4 until $06D7 == 0 (starting from 47 remaining ticks)Checked by researcher, 2026-11-25 — read sub_00_D7B5, LD837, sub_00_D85E, sub_00_D8BD, sub_00_D8F4, LA468, and main loop $9537-$9593 in bank 0 of a private disassemblyChecked by a second AI model, 2026-11-30.

Finishing a stage with a non-chain 2- or 3-block match (LD837[0] = 0, LD837[1] = 2 < 4), or in Gravnic mode ($06E8 == 1), leaves $06D7 = 0 and exits without the 47-frame popup drain.

Cited by: Puzznic

When entity spawns, block landings, or destruction redraws push queued nametable bytes to 48 or more in the NMI transfer buffer, the engine yields 1 frame so NMI can drain the buffer before continuing. puzznic/ppu-buffer-yield-threshold

Value: 48

CodePuzznic (USA) · 0x1252-0x1264 — fixed ROM $9242-$9254: advances PPU queue length $0301 and guards against exceeding buffer limit $0300Puzznic (USA) · 0x1BCE-0x1C40 — fixed ROM $9BBE-$9C30: entity spawn updates nametable and yields 1 frame via $D0D9 if $0301 >= #$30 (48)Puzznic (USA) · 0x1E50-0x1ECD — fixed ROM $9E40-$9EBD: block landing queues tiles and yields 1 frame via $D0D9 if $0301 >= #$30 (48)Puzznic (USA) · 0x234A-0x23B1 — fixed ROM $A33A-$A3A1: match-destruction loop queues tile/attribute clears ($9CF7/$9D25) and yields 1 frame via $D0D9 when $0301 >= #$30, incrementing $06CFPuzznic (USA) · 0x0F58-0x0FB1 — fixed ROM $8F48-$8FA1: NMI transfer routine drains queued packets from $0302 and resets queue length $0301 to #$00Checked by researcher, 2026-11-25 — read sub_00_8F48, sub_00_9242, sub_00_9BBE, sub_00_9E40, and LA33A in bank 0 of a private disassemblyChecked by a second AI model, 2026-11-30.

The same `cmp

Cited by: Puzznic

Puzznic calls a stage cleared when its counts of remaining blocks add up to zero, summing eight block types in Puzznic mode and the first four in Gravnic mode. It recounts them from its list of blocks after destroying a match. puzznic/clear-test

About: Puzznic Level end

CodePuzznic (USA) · 0x1695-0x16B8 — $9685-$96A8: sums 8 counters from $0511, or 4 when $06E8 is 1, and sets carry only for a zero sumPuzznic (USA) · 0x1575-0x1581 — $9565-$9571: the in-stage loop calls the test, and a set carry takes the stage-clear path at $9572Puzznic (USA) · 0x1F38-0x1F64 — $9F28-$9F54: zeroes the 8 counters, then counts each listed block by typePuzznic (USA) · 0x24A7-0x24B6 — $A497-$A4A6: after destruction, ends the shortened block list and recountsPuzznic (USA) · 0x1FD9-0x2000 — $9FC9-$9FF0: $06E8 = 1 selects the 80-stage Gravnic wrap, otherwise the 160-stage Puzznic oneChecked by claude, 2026-11-30 — Disassembled the sum, its caller, the recount, the end of the destruction routine and the mode test from the USA ROM.Checked by a second AI model, 2026-11-30.

Cited by: Puzznic

Puzznic matches blocks of the same type that touch side to side or top to bottom; diagonal neighbors don't count. The test takes a block that sits squarely on a cell and isn't falling, and looks left, right, above, and below it. It marks for removal each resting block of that type in the next cell, and each moving one of that type that isn't falling, lines up with it, and is at most 16 pixels away; finding at least one marks the first block too. Puzznic mode tests a falling block as it lands, and a block that the cursor or an elevator is carrying whenever it sits squarely on a cell. Gravnic mode tests its blocks once none is moving, and only its first four block types can match. puzznic/match-neighbors

Value: sides 4 · moving reach px 16 · gravnic match types 4 (sides; pixels; block types)

CodePuzznic (USA) · 0x0088-0x00A0 — $8078-$8090: sets $76-$7D to the single-bit masks $01-$80, so $79 = $08, $7B = $20, $7C = $40, and $7D = $80Puzznic (USA) · 0x1AF4-0x1B26 — $9AE4-$9B16: lists every grid cell holding a value of 8 or more (a block) as a type byte and its cell indexPuzznic (USA) · 0x1532-0x154C — $9522-$953C: the Puzznic in-stage loop runs the falling and landing updates, then the moving-block test $A50A, then the removal $A2E6Puzznic (USA) · 0x251A-0x2546 — $A50A-$A536: tests each block slot from $10 that is active (bit 7), not falling (bit 5), and at a multiple of 16 pixels on both axesPuzznic (USA) · 0x2547-0x25AE — $A537-$A59E: a grid cell equal to the tested type counts and has its list entry marked with bit 6; in Gravnic mode ($06E8 = 1) types $0C and up are never marked; the moving-block entry is matched by slot and marked the same wayPuzznic (USA) · 0x25AF-0x2653 — $A59F-$A643: checks the cells at offsets -10, -1, +1, and +10; then each other active, non-falling slot of the same type that shares one coordinate and differs by at most 16 in the other; marks the tested block only if the count $33 is nonzeroPuzznic (USA) · 0x2657-0x2736 — $A647-$A726: a falling block with support stops; outside Gravnic mode it runs the test $A59F at $A70E, then returns to the grid through $9E40Puzznic (USA) · 0x1ECE-0x1F0C — $9EBE-$9EFC: while slot $08 (the elevator) is active, takes each block stacked in the cells above it (10 apart) out of the grid into a free block slot through $9BBE and sets that slot's flag bit 3 ($08), which the falling update $A647 skips and the moving-block test $A50A doesn't testPuzznic (USA) · 0x13E1-0x140E — $93D1-$93FE: the Gravnic in-stage loop repeats the falling updates while a block slot is active, then calls $A9D7 and the removal $A2E6Puzznic (USA) · 0x1611-0x1626 — $9601-$9616: sets carry if any block slot from $10 is activePuzznic (USA) · 0x29E7-0x2A1C — $A9D7-$AA0C: for every listed block, checks the cells at offsets -10, -1, +1, and +10 for its typePuzznic (USA) · 0x234A-0x2357 — $A33A-$A347: the removal loop acts only on list entries with bit 6 setChecked by claude, 2026-11-30 — Disassembled the block list, both in-stage loops, the landing update, and the neighbor tests from the USA ROM matching the source's SHA-1.Checked by a second AI model, 2026-11-30.

Cited by: Puzznic