data/claims/wrecking-crew.yamlWrecking Crew (World) mechanics read in the ROM
Game: Wrecking Crew.
A four-byte pseudo-random state advances in a spin loop on every frame wait between NMIs, returning its low byte. Across the entire 32 KB program ROM, however, only the triangle-channel sound effect routine reads that register outside the shifter itself, using it to pick triangle pitch bytes, so stage gameplay has zero randomness. wrecking-crew/zero-gameplay-rng-audio-only
About: Wrecking Crew Random number generator
Value: 0 gameplay reads
CodeWrecking Crew (World) ·0x1B93-0x1BA6 — $9B83-$9B96 (WaitFrameAndAdvanceRandom): spins JSR AdvanceRandom ($9F30) until NMI sets $0030, then increments AudioState ($0027)Wrecking Crew (World) · 0x1F40-0x1F5D — $9F30-$9F4D (AdvanceRandom): adds #$0F and #$11 with Carry through $0700-$0701, XORs, RORs into $0702-$0703, and returns $0700Wrecking Crew (World) · 0x7855-0x7882 — $F845-$F872 (UpdateTriangleSoundEffects): only instruction outside $9F30 referencing $0700-$0703 in PRG ($F861 LDA $0700) writes APU TRI_LO/TRI_HIChecked by claude, 2026-11-26 — disassembled $9B83, $9F30, and $F845 and scanned all 32 KB PRG bytes of Wrecking Crew (World).nes for $0700-$0703 referencesSpawning a hidden bonus item requires at least three bombs in the 128-cell playfield, which selects one target bomb cell and enters state 1. Detonating two non-target bombs first advances the state to 3, after which detonating the target bomb starts a 96-frame delay; hitting the target bomb early resets the sequence. A hit counter initialized to the current phase index increments by 1 on every tile hit by player 1, and when the 96-frame wait ends the item rises one pixel every four frames with an item index read from an eight-entry table (3, 2, 1, 0, 2, 1, 0, 1) by the counter modulo 8, yielding the Golden Hammer (index 3) only when the counter is a multiple of 8. wrecking-crew/golden-hammer-deterministic-spawn
Value: 96 frames
CodeWrecking Crew (World) ·0x22C7-0x22E1 — $A2B7-$A2D1 (InitStagePlayScreen): initializes P1 hit counter $005D from current phase index $0092,XWrecking Crew (World) · 0x30A4-0x30BC — $B094-$B0AC (MarkTileHit): increments $005D on every player 1 (X == 0) tile hitWrecking Crew (World) · 0x55D4-0x5629 — $D5C4-$D619 (ScanTileMapForMatches): counts $B1 bomb cells; if >= 3 picks target bomb index into $0441 and sets $0440 = 1Wrecking Crew (World) · 0x562A-0x56AA — $D61A-$D69A (HandleSpecialTileEvent + SpecialTileScoreTable): advances $0440 1->2->3 on other bombs, loads $0021 = #$60 (96 frames) and $0440 = 4 on target bomb at state 3, and at $0440 == $19 awards $32,$08,$16,$32 BCD and sets StageFlag ($005C) = 1 if ($0443 & $7F) == 3Wrecking Crew (World) · 0x5763-0x584A — $D753-$D83A (UpdateEnemySpriteStateB + EnemyFrameOffsetTable): when $0021 == 0, sets $0443 = table[$005D & 7] ($03,$02,$01,$00,$02,$01,$00,$01) and rises $0440 from $10 to $19 every 4 frames (AudioState & 3 == 0)Checked by claude, 2026-11-26 — disassembled $A2B7, $B094, $D5C4-$D69A, and $D753-$D83A in Wrecking Crew (World).nesAn active Golden Hammer persists across cleared phases until the player restarts mode state or is struck by an enemy hazard, and alters four mechanics simultaneously. First, it zeroes the hammer-swing step delay from 2 to 0, stepping the swing animation three times faster. Second, it rewrites any multi-hit target wall to a single remaining hit so two-hit and three-hit walls break immediately. Third, it arms mid-air float-walk counter $030B to #$FF on the swing script's $FC impact frame and to 5 when stepping into fall state 5 aligned to a 16-pixel row; while $030B is nonzero in state 5 and held d-pad direction matches facing, each newly pressed A or B button ($0308 & $C0) adds 8 to unsigned $030B (wrapping #$FF + 8 to 7 modulo 256) before decrementing by 1 and stepping horizontally by 1 pixel on every odd frame (0.5 pixels per frame average), while turning or releasing direction zeroes $030B. Fourth, whenever $030B remains #$FF (until grounded walking clears it or float-walk alters it), any enemy sharing the player's tile cell reports blocked and drops into a fall. wrecking-crew/golden-hammer-effects
0x21B1-0x21E6 — $A1A1-$A1D6 (InitStageState): initializes StageFlag ($005C) = 0 on stage-mode entry (InitStagePlayScreen preserves it across phases)Wrecking Crew (World) · 0x428A-0x42BB — $C27A-$C2AB (TriggerActorHitState): clears $005C = 0 when hit flag $0305 != 0Wrecking Crew (World) · 0x4581-0x45D4 — $C571-$C5C4 (CheckActorStartFall): sets swing state 4 via $C94B[$28] (delay 2 = 3 frames/step) and zeroes $0301/$0302 = 0 (1 frame/step) when $005C != 0Wrecking Crew (World) · 0x495B-0x4984 — $C94B-$C974 (ActorAnimParamTable): swing entry at offset $28 has frame $22 and delay 2Wrecking Crew (World) · 0x49AF-0x49FD — $C99F-$C9ED (AdvanceActorAnimScript): holds each step for $0301 + 1 frames and dispatches control byte $FC to $C9FBWrecking Crew (World) · 0x6DAC-0x6DB5 — $ED9C-$EDA5: swing script steps in ActorAnimParamTableBank1 ($15,$16,$17,$17,$18,$FC,$19,$FE,$00)Wrecking Crew (World) · 0x30A4-0x312B — $B094-$B11B (MarkTileHit + HandleTileHitResult): when $005C != 0 and tile bit 7 set, rewrites tile to (tile & $F8) + 1 so SBC #1 / AND #7 equals 0 immediatelyWrecking Crew (World) · 0x1E40-0x1E71 — $9E30-$9E61 (ReadJoypadWithRepeat): records held buttons in $0018 and edge-pressed buttons in $001AWrecking Crew (World) · 0x3B23-0x3B58 — $BB13-$BB48 (UpdatePlayerActor): packs held d-pad ($0018 & $0F) and edge-pressed buttons ($001A & $F0) into ActorDirFlags ($0308)Wrecking Crew (World) · 0x4A0B-0x4A1F — $C9FB-$CA0F: sets $030B = #$FF when $005C != 0 on swing impact frame $FCWrecking Crew (World) · 0x450D-0x4536 — $C4FD-$C526 (SetActorState5AndAnim): sets $030B = 5 on Y-aligned fall entry ($0315 & $0F == 0) when $005C != 0, else 0Wrecking Crew (World) · 0x3B88-0x3B99 — $BB78-$BB89 (ActorWalkHandler): clears $030B = 0 during grounded walk state 0Wrecking Crew (World) · 0x4F9F-0x4FB7 — $CF8F-$CFA7 (ActorWalkStep): clears $030B = 0 if ($030B & $F0) == #$F0Wrecking Crew (World) · 0x3E18-0x3EC6 — $BE08-$BEB6 (ActorPushJumpHandler): while $030B != 0 and held direction matches facing, edge-pressed A/B ($0308 & $C0) adds 8 mod 256 to $030B before DEC $030B and moves X by +-1 on odd AudioState ($0027 & 1); mismatched direction zeroes $030BWrecking Crew (World) · 0x4804-0x4816 — $C7F4-$C806 (CheckActorTileBlocked_00_C7F4): for enemies (X != 0), if $030B == #$FF and enemy tile == player tile, returns Carry set, triggering fall state $0AChecked by claude, 2026-11-26 — disassembled $9E30-$9E61, $A1A1, $B094-$B11B, $BB13-$BB89, $BE08-$BEB6, $C27A, $C4FD-$C5C4, $C7F4, $C94B-$CA0F, $CF8F-$CFA7, and $ED9C in the ROMBroken walls do not clear immediately: standard walls write a five-step crumble state with a 1-frame initial timer followed by four 8-frame reloads (33 frames total to reach state 0, keeping the stage-clear readiness flag zero until the following scan sees zero). Chain reactions run on fixed frame intervals: breakable ladders step vertically by one row upward on timer 0 and downward on timer 1 while reloading an 8-frame counter, and exploding bombs step horizontally across adjacent columns on an 11-frame cycle (decrementing 10 down to 1 before stepping right at timer 1, writing 0, and stepping left while reloading 10 at timer 0). wrecking-crew/chain-reactions-and-crumble-timer
Value: wall crumble frames 33 · ladder chain frames 8 · bomb chain frames 11 (frames)
CodeWrecking Crew (World) ·0x3101-0x31A3 — $B0F1-$B193 (SetTileCellBroken, bomb queue, and QueueBreakEffectSlot): writes #$05 low nibble and $0580,Y = 1 for broken walls; sets bomb chain timer $04D4 = #$0A (10) and ladder slot timer $0483 = #$08 (8)Wrecking Crew (World) · 0x2B7F-0x2C4F — $AB6F-$AC3F (UpdateBreakableTileTimers): keeps DelayLengthFlag ($004C) = 0 while any tile is unbroken or mid-crumble; decrements $0580,X, reloads #$08 (or #$05 for bombs) and decrements low nibble 5..0Wrecking Crew (World) · 0x2FB4-0x302B — $AFA4-$B01B (UpdateBreakEffectSlots): decrements $0483 timer, reloads #$08 at 0 (stepping row -$10 on $D1), and steps row +$10 at timer == 1 (8-frame cycle)Wrecking Crew (World) · 0x2C58-0x2D65 — $AC48-$AD55 (UpdateTileBreakAnimSlots + LAD47): tests $04D4 before decrementing; steps right (+1) and sets 0 at timer == 1, reloads #$0A (10) and steps left (-1) at timer == 0, and decrements >= 2 (11 frames per cycle)Checked by claude, 2026-11-26 — disassembled $AB6F-$AD55, $AFA4-$B01B, and $B0F1-$B193 in the ROMBonus stages hide a coin behind one row-5 wall chosen from the low four bits of the global frame counter minus 1 (mapping raw 0 to column 1 and raw 1 to column 2, across columns 1 through 14) and start a BCD bonus counter at 50. Breaking a wall sets bit 3 in the cleared tile when a non-player actor broke it. If the player uncovers the coin, the tally ticks the bonus counter down by 1 every four frames (taking up to 200 frames plus stage-clear points); if the rival foreman breaks the coin's wall, bit 3 causes the tally to zero the bonus counter immediately and skip the end-of-bonus point awards. wrecking-crew/bonus-stage-coin-and-spike-skip
Value: 50 BCD units
CodeWrecking Crew (World) ·0x255A-0x2599 — $A54A-$A589 (InitBonusScreen): sets BonusCounterBcd ($004E) = #$50 and spawns bonus actorsWrecking Crew (World) · 0x5A1B-0x5A72 — $DA0B-$DA62 (InitActor40Spawn): masks AudioState ($0027) & $0F, decrements by 1 (mapping 0->1 and 1->2), ORs #$50 into $034FWrecking Crew (World) · 0x3101-0x312B — $B0F1-$B11B (SetTileCellBroken): ORs #$08 into broken tile when ActorScratchE ($000E) != 0 (non-player break)Wrecking Crew (World) · 0x5A85-0x5AA5 — $DA75-$DA95 (CheckActor40TileTrigger): when wall at $034F loses bit 7, copies tile & #$08 into ClearActorFlag ($0344)Wrecking Crew (World) · 0x25DA-0x2618 — $A5CA-$A608 (TickBonusCountdown): when $0344 != 0 zeroes $004E immediately; otherwise decrements $004E once every 4 frames (AudioState & 3 == 0)Wrecking Crew (World) · 0x5AA6-0x5B0D — $DA96-$DAFD (StageClearBonusUpdate): when $0344 != 0 skips PPU bonus text and both AddStageBonusScore(#$50) callsChecked by claude, 2026-11-26 — disassembled $A54A-$A608, $B0F1-$B11B, and $DA0B-$DAFD in the ROMClearing a stage increments that player's zero-based phase index by 1. On reaching 100, the stage-clear handler wraps the phase index back to 0 and sets the player's second-loop flag to 1, selecting the tighter Fireball timer and script indices from the hazard tables on all subsequent phases. wrecking-crew/hundred-phase-loop-progression
Value: 100 phases
CodeWrecking Crew (World) ·0x23AF-0x23D7 — $A39F-$A3C7 (UpdateStageClearCounters): when DelayLengthFlag != 0, increments $0092,X; at #$64 (100) resets $0092,X = 0 and sets $0094,X = 1Wrecking Crew (World) · 0x21B1-0x21E6 — $A1A1-$A1D6 (InitStageState): initializes Loop 2 flag $0094 = 0 on new game/stage-select startWrecking Crew (World) · 0x545C-0x545F — $D44C-$D44F: Fireball timer/script tables LD44C ($60,$20) and LD44E ($FF,$40) indexed by $0094,XWrecking Crew (World) · 0x5497-0x54B0 — $D487-$D4A0 (InitStageScriptState): loads LD44E[$0094,X] into Fireball counter/index $03DD at stage startWrecking Crew (World) · 0x53C8-0x53DF — $D3B8-$D3CF (LD3B8): reloads LD44C[$0094,X] into $03DD when Fireball timer expiresChecked by claude, 2026-11-26 — disassembled $A1A1-$A1D6, $A39F-$A3C7, and $D3B8-$D4A0 in the ROM