Read map data from bank $B9 in custom map mode

This commit is contained in:
2026-01-07 05:12:07 -06:00
parent 72e126a1b6
commit d5917afb64
11 changed files with 177 additions and 99 deletions

View File

@@ -160,10 +160,10 @@ DrawDungeonLabel:
RTL
StartCurrentRoomSearch:
LDA.w $8AF5E9, X ; dungeon map floor count data
LDA.w DungeonMapFloorCountData, X
LSR A : LSR A : LSR A : LSR A
STA.b $00
LDA.w $8AF5E9, X
LDA.w DungeonMapFloorCountData, X
AND.b #$0F
CLC : ADC.b $00
ASL A
@@ -190,7 +190,7 @@ FindCurrentRoom:
CPY.b $0C
BCS .not_found
LDA.b ($04), Y
LDA.b [$72], Y
INY
CMP.b $0E
BEQ .found