Skip to content

Dungeon Mechanics

soulflyman edited this page Nov 30, 2026 · 14 revisions

Dungeon Mechanics

The tile-class dispatcher

After every player move, Call_000_2ef1 (bank 0) resolves the tile ahead into a "tile class" ($c241 and $7f), and a dispatcher in the movement-execution code (around $3698, bank 0) sets the main state machine ($c126) based on it:

Tile class Result Mechanic Confidence
$08 Calls $5d40 (quest-type table), then transitions state Stairs Confirmed (reuses the already-verified floor-depth routine)
$0a Jumps into the item-pickup code Item/chest pickup Confirmed (see Item System and chest flow below)
$0b Calls $408a Warp (see below) Plausible, not dynamically tested
$07 Sets state 3 Unidentified Open
anything else Sets state 4 Normal walkable floor —

Chest/item pickup flow

Live play (Beaten Dying Moon emulator) described a three-step interaction for chests (walk adjacent, press direction again to select - shown as blinking corner markers -, A to open, then walk onto the dropped item and press A again to collect it), structurally similar to the attack-targeting flow in Combat System. Tracing one specific instance in the disassembly, confirmed dynamically (see Building the ROM for the method, Open Questions for what's still unresolved), told a more nuanced story:

The $d500 array doubles as both "chest/item overlay" and the bit that actually distinguishes an unopened chest from an exposed item - and that bit's meaning was initially misread backwards before a real closed-chest savestate (two Orb tiles, not gold/traps, provided by the user) made it possible to confirm it properly:

  • Bit 7 set on a $d500 cell = a still-closed chest at that position. Walking adjacent to it and then pressing the direction again (same blinking-corner target selection as picking a monster in combat, $c125 state 6, Call_000_3c4f_TrySelectDirection / Call_000_35ef_CheckClosedChestAhead) selects it as the target. Pressing A then runs Jump_001_4f3d_OpenChestRevealItem, which clears bit 7 on the cell (e.g. $87 → $07) and redraws the tile graphic - this does not add anything to the inventory, it only reveals the item lying on the tile.
  • Bit 7 clear = an item now lying exposed and walkable (tile class $0a). This tile does not block movement - you can walk right onto it. Pressing A while standing on it calls jr_000_36e0, which for "normal" item type IDs adds the item straight to the inventory (compacts the inventory, finds a free slot, copies the item byte, clears the cell). For item type IDs $10/$11 specifically, it instead branches to jr_000_371a → Call_001_50df_RollGoldAmount (rolls an amount into $c515, scaled by current floor for $10, by Lucky otherwise) → Jump_000_351a_EnterGoldPickupPopup → Jump_001_5003_ShowGoldPickup, which opens a popup window and adds that amount straight to $c128 (wGoldCollected) instead of the inventory - i.e. $10/$11 are loose gold piles that skip the "closed chest" state entirely and are found already exposed.

Confirmed dynamically end-to-end on a real chest: before interacting, $d500 cell = $87 (item type 7 = Orb, bit 7 set). After selecting + opening (one A press), cell = $07, inventory unchanged. After walking onto the tile and pressing A again, the item lands in a free inventory slot and the cell clears to 0. This exactly matches the two-phase open-then-collect flow described from live play - the earlier conclusion on this page (that $d500/jr_000_36e0 was a single-A-press mechanism with no two-phase chest) only held for the gold-pile item types, which really do skip the closed-chest step.

No real "dungeon seed" exists, but the RNG state is directly reproducible

While investigating this, it turned out the game has no dedicated "dungeon generation seed" value a player could note down. All randomness flows through one 16-bit LCG state ($c011/$c012, see Combat System for the formula) that is never explicitly seeded with real entropy anywhere in the ROM (no boot-time write found in any bank) - its drift comes entirely from how many times it's been called by the time you enter a dungeon, which in practice means "how the player navigated the menus."

The useful consequence: since it's just two bytes, poking $c011/$c012 directly in a scripted session before entering a dungeon reproduces a run deterministically, without needing a real player-captured savestate. Tested by forcing a Gold quest ($c101=2) on top of an existing item-loadout savestate and sweeping many seed values: every seed produced an item at the same $d500 offset, with only the spawn position varying - suggesting level 1 has a single fixed room template for this quest type (item placement fixed, only spawn point randomized), though this hasn't been checked across other quest/level combinations.

Warp

Tile class $0b leads into Call_001_408a_WarpToOtherRoom, which reads an address pair, $c427/$c428 — the two room-index endpoints of a warp pair ($c500 is the current room index within the floor, a separate concept from $c503/$c504, the in-room tile row/column). It compares the current room index against $c427, and picks $c428 as the destination if they match, $c427 otherwise ("teleport to whichever end isn't the current one") - resolving that destination room via a word-table lookup at $206b and staging new in-room coordinates into $c50b/$c50c. Jump_001_40de_FinalizeWarp then actually commits the staged room index + coordinates into $c500-$c504 and redraws the view.

Confirmed live on a real warp tile (stand on it, press A - exactly as described from play): $c427/$c428 were (1, 2); starting in room 1, the code picked room 2, and the player's position jumped instantly from (5,7) to (1,2), landing in a visually distinct, separately-dark room with its own warp tile - while the floor number ($c104) stayed the same throughout. Matches the description exactly: warps always stay on the same floor but move between rooms.

Warp landing tiles are themselves warp tiles. Incidental finding (gearboy-mcp session): after warping room 1→2, the player lands standing exactly on a raw $20 cell in room 2 (not next to one) - pressing A again immediately warped straight back to room 1, same coordinates as the original departure point. Consistent with the mechanism always just flipping between $c427/$c428 regardless of which cell within the linked pair you're standing on, but worth flagging explicitly: every warp arrival point doubles as a return trip one A press away - easy to trigger by accident while probing the arrival room.

The raw terrain byte for a warp tile is $20 - independently reproduced in a live gearboy-mcp session (quest 1/level 1, floor B2F): the room's only "exit" was a raw $20 cell sitting at the position a stairs tile ($10) would normally occupy in the same room template seen on floor B1F. Standing on it and pressing A triggered exactly this warp path ($c500 1→2, position (5,7)→(6,8), $c104 unchanged at 2) - resolving the long-open "what is raw tile $20" question from Open Questions and also the "quest 1/level 1 room has no stairs" mystery: this room's floor-transition point is a warp, not a staircase.

Floor warning icons

The StrategyWiki describes three floor-hazard indicators that appear above the player:

"!!" above the character — the ground is cracking and will break next turn "?" above the character next to a wall — that wall (or a nearby one) can be broken a jumping-person icon facing a hole — you can jump across without falling

Three structurally similar routines were found that match this description closely:

Routine Trigger Icon tile Hypothesis
Call_000_2f3f → Jump_000_3323 Random check (Call_000_3e08) + tile ID match ($1d/$23) $5a "!!" floor crack warning
Call_000_2f48 → Jump_000_3327 Random check + tile ID match ($09), scanned across all 4 directions $42 Hypothesized as the "?" secret wall warning - not confirmed; the real reveal mechanism is a completely different routine, see below
Call_000_3772 → Jump_000_332b Deterministic tile check (== $0f), no randomness $56 Hypothesized as a hole-jump icon - not confirmed, likely wrong (see below)

All three converge on shared drawing code (jr_000_332d) that writes a small 2-tile sprite to the OAM shadow buffer above the player.

The hole/crack-jump mechanic, confirmed live (a savestate standing right next to a crack tile, described from play as "a hole you can jump across by double-tapping the direction you're facing"): the Call_000_3772/$0f hypothesis turned out to be a dead end

  • an exhaustive scan of the entire reachable room (decoded properly, see the room-layout address formula below) found zero cells with raw value $0f. The tile the player was standing next to instead had raw value $1d (29) - the same raw tile ID that Call_000_2f3f/Jump_000_3323 checks for (the "!!" floor crack warning). Standing on it normally is completely harmless (confirmed over 100+ idle frames, no HP loss, no delayed effect) - the hazard described by the community as "a hole" and the game's "!!" crack warning are the same tile.

The jump itself: a slow single press onto this tile just walks onto it normally (one tile of movement). A fast double-press of the same direction (press, ~4 frames, release, ~2 frames, press again, ~4 frames, release) instead moves the player two tiles in one go, completely skipping the crack tile and landing safely beyond it - exactly as described. HP unaffected either way in testing. The exact code path that detects the fast repeat-press and triggers the 2-tile jump (as opposed to the normal 1-tile movement commit) wasn't isolated in this session - a RAM diff between the slow and fast sequences didn't surface an obviously distinct "double-tap counter" address.

Decoding the room layout (useful for any future tile-geometry work)

Room data lives in a WRAM buffer, resolved via a word-table lookup at ROM address $2047 (mirroring Call_000_2dfe/jr_000_2e0a, called from Call_000_2ef1):

RoomBase = word[$2047 + 2 * $c500]     ; $c500 = current room index
addr     = RoomBase + 2*swap_nibble(row) + col

where row/col are $c503/$c504. Verified against a live sample: for $c500=2 (RoomBase=$c80a), player at (row 4, col 1) resolved to exactly $c88b, matching the address independently observed via a Call_000_3772 register hook. This lets the entire current room be reconstructed as a clean grid directly from a savestate.

Two more structurally identical "scan all 4 directions for a matching tile ID" routines exist in the item-effect code (Call_000_2f48 used from $53a2, Call_000_2f4c used from $572c) — plausibly the "Ganseki" (fill hole/rock barrier) and "Oriru" (place stairs on adjacent tile) item effects, which both need to find a qualifying adjacent tile. Not individually confirmed from code, but the official English instruction booklet (temp/cave-noire-instruction-booklet/CaveNoire_InstructionBooklet_djvu.txt) independently describes exactly these two effects: "When placed on top of a hole or lava, it creates a tile. When placed on a tile, it creates an obstacle." (Ganseki) and "If there are no obstacles, creates stairs leading to the next level." (Oriru) — text confirmation, not a code-level one, but it matches the "find a qualifying adjacent tile" shape closely enough to raise confidence on both.

A separate booklet hint worth tracking: "What at first sight looks like a hole, may actually be an 'invisible tile' that can be walked upon. If a Centipede or Tarantula walks above the hole, it could be an invisible tile." This implies a disguised-floor tile class visually identical to a real hole but walkable - distinct from both the confirmed $1d crack tile and genuine holes, and not yet identified in the tile-class table below.

Bit 7 of the raw tile byte means "this is an item/chest, not terrain" - see tools/tile_grid.py (the live grid-overlay tool) for the full $d500 overlay indirection this implies, confirmed by cross-checking its output live against real play across several savestates.

Known raw terrain tile IDs (bit 7 clear)

Built up from room dumps across many savestates/sessions, cross-checked against the auto-generated Sprite Glossary (one cropped image per raw ID - handy for spotting these by eye). The wall/corner set ($01-$0d) was identified in one batch by the user from the glossary images directly - orientation naming convention: for a corner tile, the direction is which way the corner's point/convex edge faces (e.g. "outer corner NW" points away from the room, towards the top-left).

Raw value Meaning Confidence
$00 Open floor Confirmed (ubiquitous, matches walkable areas)
$01 Stone wall, outer corner NW Confirmed (user-reported)
$02 Stone wall, outer corner NE Confirmed (user-reported)
$03 Stone wall, outer corner SW Confirmed (user-reported)
$04 Stone wall, outer corner SE Confirmed (user-reported)
$05 Stone wall, north-facing Confirmed (user-reported)
$06 Stone wall, west-facing Confirmed (user-reported)
$07 Stone wall, south-facing Confirmed (user-reported)
$08 Stone wall, east-facing - plain, not a stairs-trigger tile (see the note right after this table - don't confuse with the resolved tile class $08 the movement dispatcher above uses, that's a different number space) Confirmed (user-reported)
$09 Wall (border) - but see the collision caveat below Confirmed as common, exact collision rule open
$0a Stone wall, inner corner SE Confirmed (user-reported)
$0b Stone wall, inner corner NE Confirmed (user-reported)
$0c Stone wall, inner corner SW Confirmed (user-reported)
$0d Stone wall, inner corner NW Confirmed (user-reported)
$0e Hole - falling in drops the player to the next floor down with real fall damage (gearboy-mcp session: stepping onto one on B1F landed on B2F at 4 HP down, 10→6, in an entirely new room layout - not harmless, and not an instant-kill like lava either). The variant used when the tile directly above it is a different floor tile - renders with foliage/vegetation visually hanging down into the hole from above Confirmed live
$10 Stairs down Confirmed live (save_002.state, user-identified in the grid tool at F3)
$1d Floor crack ("!!" warning) - see the hole-jump section above Confirmed
$1b Bridge pillar/pier - the support structure poking up out of the lava that a walkable bridge deck tile sits on top of; always directly below a deck tile, never itself walkable Confirmed live (user-clarified the role; the movement test's instant-HP-wipe is consistent: stepping where the pillar is means missing the deck and falling in)
$11 Dungeon exit (Door) - see "Dungeon exit" below Confirmed (user-reported, independently corroborated)
$24 Secret-passage opening - the tile revealed once a hidden wall has been bumped and the ~64-tick delay elapses (see "The secret-passage mechanic" below) Confirmed (user-reported)
$25 Ruled out as a secret-passage transition tile - letting the countdown run to completion against the savestate where it was found, $c125 returned to idle (1) but the cell never changed from $25, and $c20f was 0 the entire time (no passage was actually pending in that room). $c125=23 was apparently entered for some other/degenerate reason here. Meaning still unidentified Open - the "?" bubble seen on screen in that savestate is now unexplained too
$1a Same dense wavy texture field as the confirmed Lava/pillar room ($1b/$15/$16/$19) - another tile in that same cluster Plausible, same room family as the confirmed Lava, untested individually
$15, $16 User-reported as part of the lava-crossing bridge alongside $1b - possibly a reusable "crossing" tile set also used for other hazard types (water, chasm) if it isn't a multi-layer composite Reported; which of these is the actual walkable deck (vs. more pillar/support art) isn't individually live-tested yet
$19 Lava field (same texture as $1b) Plausible, untested individually
$17 Visually distinct double-tile strip breaking up the $15/$19/$1b wavy texture - candidate Bridge deck (manual: "you can walk across it normally") Unconfirmed - every direct approach path from the one tested savestate's spawn point crosses the lethal $1b first, so this couldn't be reached without dying; needs a different savestate/approach angle
$18, $1e A paired column/pillar decoration ($18 cap, $1e body) seen forming two vertical architectural strips in an autowalker.py-found room Test inconclusive - an adjacent monster's attack-targeting state ($c125=22, see below) corrupted the player-position reading mid-test; needs a retest without a monster nearby
$20 Warp tile - see "Warp" below for the live confirmation (raw byte, not just the resolved tile-class $0b) Confirmed live
$23 Sits inside a small alcove, approached by walking across several $09-valued cells before bumping into a wall ($c125=7) one cell short of it Secret-passage mechanism ruled out directly ($c20f=0 for this room - nothing to discover) - see the collision caveat right below the table for why this block is actually more interesting than $23 itself

A naming-space note on $08: don't confuse this raw terrain byte (plain east wall, per the table above) with the resolved tile class $08 referenced in the tile-class dispatcher table near the top of this page (which triggers the stairs-type lookup) - those are two different, unrelated number spaces (raw room byte vs. the class Call_000_2ef1 resolves it to), exactly the translation gap the Sprite Glossary's intro callout warns about. The coincidence that both happen to be $08 is just that - a coincidence.

Reconciled (user-clarified): the user identified $15/$16/$1b together as part of a bridge crossing the lava, based on the Sprite Glossary images - which initially sat awkwardly next to the hard movement-test result above (stepping onto $1b zeroed HP instantly, reproduced twice). Resolved: $1b is the bridge pillar/pier graphic - the part of the support structure poking up out of the lava that the actual walkable bridge deck sits on top of - so it's always directly below a walkable bridge tile, not something the bridge deck itself occupies. Stepping where a pillar is (rather than the deck resting on it) means missing the bridge and falling into the lava, which is exactly consistent with the confirmed-lethal movement test - both reports were correct, just describing different parts of the same structure. The room's actual walkable deck tiles are still unconfirmed - $16/ $17 are the leading candidates (a visually distinct strip breaking up the $1b/$15/$19 wavy texture), but every direct path to them from the one tested savestate's spawn point crosses $1b first. Needs either a different savestate/approach angle, or a deliberate test standing one tile further back and single-stepping onto $16/$17 specifically without touching $1b on the way.

A collision caveat: $09 is not reliably "wall" on its own

While testing $23 above, the player walked freely across four consecutive $09-valued cells (2,1) through (2,4) (same room as the $23 test, raw bytes read directly from WRAM: $c841-$c844, all $09), then bumped ($c125=7, the permanent "wall" state) trying to step from (2,4) onto (2,5) - also raw value $09, byte-for-byte identical to the four cells just walked across (confirmed by reading the raw addresses directly, not just the grid tool's labels, to rule out a decode bug). So collision can't simply be "is this raw tile value in the wall set {$06,$07,$08,$09}" the way the terrain-ID table above assumes - two cells with the exact same byte, one walkable and one not, a few tiles apart in the same row.

This means the terrain-ID tables on this page describe what's visually/byte-wise present, not necessarily what's mechanically "wall" vs "floor" - worth keeping in mind for any future tile-identification work.

Movement collision, partially traced

Followed the actual move-commit code (bank 0, the unlabeled function starting around $3406 that stages a move, then - before checking anything - copies the staged position straight into $c500-$c504) to find what decides whether a step actually succeeds or produces the permanent "bump" state ($c125=7, see the secret-passage section below for where that state was first observed):

... (position already committed to $c500-$c504 at this point)
call Call_000_3d8f    ; the real gate - see below
ret nc                ; success: move stays committed
ld a, $07
ld [$c125], a         ; failure: enter the permanent bump state

Call_000_3d8f (bank 0, $3d8f) turned out to be a monster/object-occupancy check, not a generic terrain-wall check: it tries up to three of the four cardinal neighbor cells (in a priority order selected by the player's current facing direction, $c510), each via:

  1. Call_000_3e08 (bank 0) - a hardcoded room-bounds check: fails (treated as blocked) if the candidate row is >=8 or column is >=10 - this is the real origin of the 8x10 viewport dimensions tools/tile_grid.py already uses for rendering (previously inferred from screen/OAM geometry, now confirmed from the actual bounds-check code: the addressable room data is 16x16, but only an 8-row x 10-column window is ever reachable by movement).
  2. $57bb/Call_001_57db (bank 1) - scans the $c5c0 monster array for an occupant at that candidate cell. Empty = pass. Occupied = blocked, except two specific classes are special-cased as non-blocking (see Monster System "Non-monster entries" for what this implies about classes 18/19).

This fully explains the bounds-check origin, but not the actual $23-approach wall-bump from the collision caveat above - that block happened at a cell well inside the 8x10 bounds with no monster-array occupant nearby in that savestate, so some other, still-unlocated check must also be feeding into this same $c125=7 bump path (or a different one was taken through the move-commit function that wasn't traced here). The generic "is this raw terrain tile solid" check - if one exists as a single, dedicated piece of code at all - is still not found; it may be folded into the tile-class dispatcher already documented at the top of this page rather than being a separate gate.

The secret-passage ("?") mechanic, confirmed live

Tested on a savestate standing one tile north of a hidden south-side passage, with a "?" speech bubble shown above the player's head (and, per the description, also shown one tile further left/right along the same wall segment - the warning is three tiles wide, the real passage is the middle one).

The original Call_000_2f48/$09 hypothesis above turned out to be another dead end here, same lesson as the hole-jump investigation: that routine was never called during the entire test (hooked, zero hits), even though the "?" bubble was visibly on-screen and the passage genuinely opened.

What actually happens, found via direct behavioral A/B testing plus a full trace of the real code path: walking into a genuine solid wall (tested: north) blocks the player forever ($c125 state 7, "bump" state, never resolves no matter how long you hold the direction). Correction/addition (live gearboy-mcp session): "never resolves" only applies to further directional input - the state does clear, instantly, on the next A or B press (confirmed live: $c125 dropped from 7 back to 1 the moment B was pressed, with no movement having occurred). So the bump state isn't a true softlock, it just stops listening to the d-pad until a button-type press clears it - worth knowing before assuming a stuck session needs a reset.

Two more live reproductions of the unexplained generic block (see "Movement collision, partially traced" below for why this is still an open mystery, not just monster-occupancy): both in quest 1/level 1 rooms with the pillar-cage layout (rows 1-2/5-6 open chambers, rows 3-4 a dividing wall with a 2-cell gap), a step from one specific interior cell to the cardinal-adjacent one produced the $c125=7 bump even though both cells read raw $09 and neither was monster-occupied at the blocked destination (checked against the live $c5c0 array both times). Walking into the gap itself (one cell further/around) worked fine. Same shape as the original $23 case: a real, reproducible block with no terrain-byte or monster-occupancy explanation yet.

Walking into the described secret passage (south) instead puts the player into $c125 state 23 for a fixed ~64-tick delay, after which the wall is simply gone and the player walks straight through - this is the "open it by just walking into it" behavior described from play.

State 23's handler ($3e89, the $c125 jump table's 24th entry, renamed Jump_000_3e89_SecretPassageDispatch) is the real reveal routine:

  • $c263 is reloaded with $10 and counted down each pass - this is the short pause the player feels before the wall actually opens.
  • $c20f is a per-room bitmask, one bit per cardinal direction, marking which wall face(s) still have an undiscovered secret passage. Confirmed live: bumping the south wall set bit 2 ($c20f = 0b0100).
  • Depending on which bit is set, the dispatcher jumps to one of four per-direction handlers (renamed Jump_000_3eae_SecretPassageDir0 .. Jump_000_3f2d_SecretPassageDir3, for bits 0-3). Confirmed live: bit 2 → Jump_000_3ed9_SecretPassageDir2.
  • Each handler permanently clears its bit in $c20f, looks up the linked neighbor room through the same $206b room-link word table the warp mechanic uses, and sets the mirrored bit in that neighbor room's own header - so the passage is now open from both sides and never needs re-discovering. The matching helpers were renamed Call_000_3f56_FinalizeSecretPassageDir0 / ..Dir1 (Call_000_3fa3) / ..Dir2 (Call_000_3f7c) / ..Dir3 (Call_000_3fc9).
  • If no bit is set (nothing left to discover that way), it falls back to the normal state 0/1 idle handling.
  • The opening left behind once the wall is gone: user-reported as raw terrain $24 (see the terrain-ID table above) - not independently re-derived from this specific code path, but consistent with the tile appearing only after a secret passage opens.

Live value trace for the south test: $c20f 0b0100 → (after the ~64-tick delay) 0, scratch room-index register $c262 → 2 (the destination room), then $c125 returns to 0/1 and $c500 (current room) flips from 1 to 2 as the player walks through. Matches the description exactly: appears as a solid wall with a warning icon, then simply opens after walking into it.

Not tracked down: the exact render routine for the three-tile-wide "?" warning bubble itself, and how/when $c20f's bits get set in the first place (room init data vs. some other precondition).

Darkness / torch visibility

The StrategyWiki describes rooms where darkness covers the floor beyond 1-2 tiles of the player, monsters show only as a pair of eyes until approached, and the Akari item (or defeating a Flame Eye) removes it.

The Flame-Eye part is now confirmed from live play too, not just the StrategyWiki claim: in a dark room with a hidden monster shown only as the eye-pair sprite (OAM tile 140), defeating it made the whole room light up immediately, the same effect as using Akari. Matches the community description exactly.

Confirmed, using a real savestate from floor B4F (deep enough to have darkness active, provided by the user):

  • A full-screen render shows the scene correctly (a single-tile render returned solid black instead - a rendering-API quirk noted earlier in this project, not a game behavior). The screenshot matches the StrategyWiki description and the earlier reference screenshot exactly: a dense dither pattern covers almost the entire visible area, with only a small patch of real room art around the player, and the monster rendered as a plain white eye-pair sprite (OAM tile 140, two sprites placed side by side).
  • The dark placeholder tile's raw VRAM value is $5f (95) - read directly from the $9800-based background tilemap (LCDC bit 4 set, so $8000 addressing applies directly).
  • It's a real, dynamic fog-of-war, not static room art. Before moving one step, two tilemap rows at the edge of the revealed patch were solid $5f. After a single down press (one tile of movement), those exact two rows were overwritten with real floor/wall tile IDs, while the previously-revealed area stayed visible and unchanged - i.e. revealed tiles are remembered, not just shown within a fixed radius of the player's current position.

The official instruction booklet adds one behavioral detail not yet verified live: "Check a monster's HP using the Select Button. If a monster is in fog, however, their HP cannot be checked" - i.e. the Select-button HP display and the eye-pair fog-of-war rendering are meant to be linked (can't inspect what you can't see clearly), not independent systems. Not confirmed against code or a savestate yet.

Still open: the exact routine that performs this per-move "reveal nearby tiles" redraw hasn't been located yet - a search for $5f used as an immediate comparison constant in banks 0/1 came up empty, suggesting the redraw doesn't check "is this tile still dark" but unconditionally redraws a small area around the new position every move (in both dark and normal rooms alike), with the darkness-specific part only being that affected rooms pre-fill their unexplored tiles with $5f at load time rather than the real tile.

The Akari item, live-tested (item type $0d, item-screen name アカリ confirmed) despite the savestate's critically low HP (3/10) - risk accepted and nothing went wrong: using it from the item screen clears its inventory slot (consumed, one-shot) and immediately reveals a large chunk of the dark tilemap in one go (dark $5f tile count dropped from 204 to 136 in a single use) - a "light up more of this room now" burst, not a lasting radius buff. Screenshots before/after confirm a visibly much larger room revealed. Interestingly, the monster that was in the newly-lit area was still rendered only as the eye-pair sprite afterwards - so the "reveal nearby tiles" system (room geometry) and the "reveal a monster's real sprite" system are independent; Akari only affects the former.

Fairy Cage, confirmed live end to end

Raw terrain tile $22, already statically linked to Kagi's "scan 4 adjacent tiles for class $22" item effect (see Item System $14). Fully confirmed live in a gearboy-mcp session (quest 4/Fairy, level 1), walking through the sequence described by a user familiar with the game: stand on a tile adjacent to the cage, open the item menu, select Kagi, confirm. This enters $c125=21 - the same generic "targeted effect" state Fire ($03) uses - and the fairy sprite visibly flies out and off-screen before control returns to the player, taking a genuine several-second real-time animation (not instant; repeated inputs during it were simply ignored until it finished). Kagi is consumed on use - one key opens exactly one cage, confirmed by its inventory slot being empty afterward; a fresh key is needed for any further cage. The moment the animation ends, the quest progress counter for Fairy ($c16f) increments and the dungeon exit door ($11) appears simultaneously - same door-spawn mechanic as Dungeon exit below, confirming it's generic to "quest objective met," not specific to the Monster quest type.

Dungeon exit ("Door")

Confirmed live on a savestate standing next to the exit tile (visually a distinct icon, quest already at 3/3 monsters killed): walking adjacent to it and pressing A sets the main game-state dispatcher ($c100) to 12, entered via the handler at bank 0 $0bd4 (not yet named - reached through the top-level $c100 state machine, a separate, larger dispatch table from the $c125/$c126 ones already mapped for movement/combat/chests). This plays a palette-fade transition, then a scrolling "running down a corridor" animation, and finally a results screen:

コナミ タロウ は、3 ひきモンスターをたおしました。おめでとう!! ("Konami Tarou defeated 3 monsters. Congratulations!!")

The summary text is quest-type-specific, confirmed with a Fairy-quest completion in a different session: コナミ タロウ は、フェアリーを 1ぴきたすけました。おめでとう!! ("Konami Tarou rescued 1 fairy. Congratulations!!") - same template, different objective/count substituted in, and (since there's nothing to list) it skips straight to the Level-cleared screen below instead of looping a kill list.

For the Monster quest specifically, this is followed by a looping list of the individual kills, each showing a monster icon, a running kill index, its name, and a weight/height stat line, e.g. 1 ミノタウルス 180kg 2.7m (Minotaurus) and 2 タランチュラ 94kg 2.4m (Tarantula) - the same named monster can show slightly different weight/height between individual kills (180kg/2.7m vs 184kg/2.9m for two different Minotaurus kills), suggesting each monster instance gets small randomized "flavor" stats independent of its combat stats. This is a promising lead for identifying monster type IDs by name in the future, but wasn't cross-referenced against the struct data in this session.

The screen loops this list indefinitely - resolved (gearboy-mcp session, Fairy quest this time, so no per-kill list to loop through, just the summary line): a single A press does dismiss it after all - it advances to a second screen, "コナミ タロウ は、レベル1 をクリアしました。" ("Konami Tarou cleared Level 1"), with a つづける (Continue) / おわる (End) choice. Pressing A again (on the default-highlighted つづける) returns straight to the Guild menu. Earlier attempts in a different session apparently pressed A too early/inconsistently to catch this transition, or got stuck re-triggering the first screen's own fade-in; not re-tested here whether おわる behaves differently.

The exact tile class/trigger condition for approaching the exit (as opposed to the $c100 state transition once A is pressed) wasn't isolated in this test - the resolved tile class read as a plain $80-with-bit-7-set value indistinguishable from an ordinary wall, suggesting the exit may be a hardcoded coordinate check rather than a tile-class entry like stairs/chests/warps.

Raw tile $11 identified as the door, from a different angle — the bit-7 vs. plain ambiguity is now resolved. User-reported, and independently corroborated against an autowalker.py-found savestate (terrain_id_11_0036.state) that happened to contain a plain (bit-7-clear) $11 cell - checking that savestate's quest progress found $c16a=3/$c16b=3 (Monster quest, 3/3 already killed), exactly the condition the manual says makes the door appear. This conflicted with the bit-7-set reading from the test above, suspected to be an off-by-one-tile sampling mistake.

Confirmed definitively in a later gearboy-mcp session: watched a fresh $11 cell appear live, at the exact moment $c16a ticked from 2 to 3 (killing the quest's third monster) - it rendered right next to the floor's stairs tile, in a cell that read $00 (plain open floor) the entire time beforehand. Read directly via tools/gearboy_live.py (which decodes the raw room-grid byte the same way the game does, bit 7 and all): the new cell was a plain, bit-7-clear $11 - not an item/chest overlay. So the door is a straightforward terrain-ID swap written into the room's tile grid the instant the quest objective is met, not a hardcoded coordinate check after all - the earlier "$80-with-bit-7" reading really was a one-tile sampling error, exactly as suspected.

A second, separate per-floor "bonus feature" roll (structure found, purpose unconfirmed)

Besides the already-documented 9-slot $c300 object-placement table (monsters/items), there's a second, independent floor-setup step (Call_001_7446/Call_001_747b, bank 1 $7446) that runs over the same 9 room slots but writes into a different, smaller 9-byte array ($c272-$c27a, reset to $ff = "none"):

  1. For each of the 9 rooms, Call_000_12eb (bank 0 $12eb) switches to bank 3 and reads one byte from a per-quest/floor template at bank 3 $5655 - indexed by $c202 using the exact same 4-byte-header-then-index scheme already confirmed for the monster type→class encounter data at bank 3 $6a75 (see Monster System "Type -> class resolution"). A room whose byte reads $ff is excluded.
  2. $c271 ends up holding a count of how many of the 9 rooms qualified.
  3. If at least one room qualified, Call_001_747b rolls one random byte (Call_000_0456), scales it by the current floor depth (Call_000_03a4), then calls Call_000_1267_LookupQuestLevelNibbleStat (bank 0 $1267) - a quest+level lookup against a third new table, bank 2 $6da6 (right after the item-pool weight templates), which packs two 4-bit values per byte (selected by bit 0 of the per-level pointer) and returns one nibble (0-15).
  4. If that nibble is nonzero, it's used as an index into a 16-entry address table at bank 1 $74a5 to pick one of the (up to 9) $c272-$c27a slots, and the random roll from step 3 is written there.

Net effect: a quest+level-dependent chance, gated by a per-room eligibility byte from yet another bank 3 template, of stamping a random value into one specific room's slot in this second array. Nothing in bank 0/1 reads $c272-$c27a back via a literal address (it must happen through another computed/indirect lookup, not yet located), so what this actually controls in-game is still unconfirmed - plausible candidates given the shape of the system (quest+level-scaled, per-room gated, floor-depth-scaled magnitude): which room gets a chest vs. a bare item pile, an Orb/Fairy-cage placement roll, or a secret-passage/trap count. Needs a savestate at the moment a new floor is generated, with $c271-$c27a and the bank 3 $5655 template dumped, to pin down the actual effect.

A few more $c125 movement-substates identified

autowalker.py's random exploration surfaced several $c125 values outside the previously-documented set, three of which were identifiable immediately from their screenshot:

$c125 Screen shown Meaning
2 Item-screen popup (つかう/すてる/やめる - use/toss/cancel) Item-use menu open
5 "どくけし をひろった。" ("Picked up Dokukeshi.") Item-pickup confirmation popup
14 Character sheet (name, HP, こうげき/ラッキー/ぼうぎょ/たいちょう - attack/lucky/defense/condition) Camp stats screen (Start button, see the official manual's "Getting Started")
8 Dungeon view with a free-moving corner-bracket cursor overlay Fire's targeting cursor (gearboy-mcp session) - see Item System $03 and Open Questions for the full confirmation

Another $c125=14 entry path, and a real stuck state (live gearboy-mcp session): pressing A right after Select (while the monster-HP popup from Select is still showing) also lands on $c125=14, but unlike the Camp-menu path this one does not respond to A, B, Start, or any d-pad direction - the screen stays frozen on the dungeon view (not even the Camp menu renders) with the CPU still running normally (PC advancing). The only thing that clears it is pressing Select again, which pops it straight back to idle (1). Worth checking first if a session ever looks hung in this exact way before assuming a reset is needed.

A third "looks frozen, isn't" value: $c125=0. Seen after backing out of the in-dungeon Start/Camp menu (see Controls and Menus) with B - the dungeon view looked completely normal and the CPU was running, but no d-pad or A press did anything (position, HP, and the monster array all stayed frozen) until a B press specifically dropped it back to idle (1). Same family as the 7/14 cases above: the dispatcher isn't actually stuck, it's just sitting in a state that only listens for one specific button.

States 13, 18, 22, 10, 24 were also flagged but their screenshots just showed ordinary mid-movement dungeon frames with no obvious distinguishing UI - likely fine-grained animation sub-steps of the walk/monster-turn cycle rather than separate mechanics, but not individually confirmed. State 22 specifically showed up repeatedly alongside a visible, adjacent monster sprite during the tile movement tests below, including one case where it corrupted the player-position read entirely (the viewport-grid code reads $c503/$c504 assuming those are always the player's own row/col, but while this state is active the values read back implied a multi-room "teleport" that never actually happened on screen) - tentatively, an attack-targeting/monster-turn exchange state that temporarily repurposes the position variables for the monster's cell, not a distinct player-movement mechanic.

Holes ($0e) - confirmed live: falling through drops you a floor, with fall damage

Previously documented only as "a hole" with no confirmed consequence of stepping in one. Confirmed live in a gearboy-mcp session (quest 4/Fairy, level 1): walking onto a raw $0e cell on B1F immediately dropped the player to B2F - a brand new room, not the same one redrawn - taking real fall damage in the process (wPlayerHP 10→6, i.e. 4 HP). The transition went through the same main-dispatcher state cluster as the stairs/corridor-run sequence ($c100=10 briefly, then $c100=4 through a longer blank-screen animation before settling back to 1/idle on the new floor) - mechanically "falling down a hole" looks like a variant of the normal floor-descent transition rather than a wholly separate code path. Distinct from Lava ($1b, below): a hole costs HP but isn't instant death, and it skips straight to the next floor like stairs would, rather than failing the quest. Only one data point on the damage amount so far - not yet confirmed whether 4 is fixed or variable/scaled by anything (depth, Lucky, etc).

Lava - confirmed live: raw tile $1b is a bridge pillar standing in it

The official English instruction booklet is explicit and slightly more specific than the StrategyWiki summary: "If you fall into it, your HP will be reduced to zero, and you will fail your quest." This is a hard instant-death trap, distinct from a Hole (same booklet: "If you fall down a hole, you will take damage, reducing your HP, and sending you to below" - damage + floor drop, survivable).

Confirmed live via a movement test against an autowalker.py-found savestate (floor 2, a room with a dense wavy-texture tile field the bot had flagged as unidentified): stepping the player one tile onto raw value $1b zeroed wPlayerHP ($c120) instantly in the same input step (6 → 0, then separately 16 → ... → 0 on a second, independent run from a fresh reload of the same savestate) and immediately transitioned the main dispatcher ($c100) to 9 - part of the same floor-transition/death cluster already documented for Game Over trigger #3 ($c100=11, see Player Death and Game Over). Reproduced twice independently. This is a full HP wipe in a single step, not a gradual poison/combat tick (which deals 1-4 points per turn in every confirmed combat log so far) - matching the booklet's "reduced to zero" wording exactly rather than ordinary damage.

User-clarified what $1b actually depicts: it's the bridge pillar/pier graphic - the support poking up out of the lava that a walkable bridge deck tile sits on top of, always directly below a deck tile rather than being part of the deck itself. Stepping where the pillar is (missing the deck) falls into the lava, which is exactly what the movement test above shows - both the "part of a bridge" and "confirmed lethal" readings are correct at once, describing different parts of the same structure.

The same room has two other raw values ($15, $19) sharing the identical wavy texture; $19 is still presumed to be the open lava surface itself, while $15 is also user-reported as part of the bridge (role not yet pinned down individually). A short, visually distinct double-tile strip ($16/$17) looks like the actual safe walkable deck - see the terrain-ID table above for what's still open about those.

Not located at all

  • Fairy Cage — unlockable with a key item (booklet: "A box in which fairies have been locked. Use a key to open it" - matches the already-confirmed Kagi/$14 item code, see Item System), not investigated live.

See Open Questions for the full savestate wishlist.

Clone this wiki locally