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

@@ -138,13 +138,13 @@ DrawEntrances:
LDA.b $06 : PHA
LDX.w DungeonID
LDA.l DungeonMapRoomPointers, X
STA.b $0C
JSL LoadDungeonMapRoomPointer
STA.b $72
SEP #$20
LDA.l DungeonMapFloorCountData, X
AND.b #$0F
CLC : ADC.w $020E
CLC : ADC.w DungeonMapCurrentFloor
REP #$20
AND.w #$00FF
@@ -182,7 +182,7 @@ DrawSingleFloorEntrances:
.next_room
REP #$20
LDA.b ($0C), Y ; get room id
LDA.b [$72], Y ; get room id
AND.w #$00FF
CMP.w #$000F ; $0F = empty room