Use BANK for hardcoded WRAM banks preceding FarCopyWRAM/GetFarWRAMByte calls.

This commit is contained in:
Adelaide Walter
2018-01-04 14:53:50 -05:00
parent 5fd3bfa832
commit fb422e8d9c
6 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
CheckBattleScene: ; 4ea44
; Return carry if battle scene is turned off.
ld a, 0
ld a, BANK(wLinkMode)
ld hl, wLinkMode
call GetFarWRAMByte
cp LINK_MOBILE
@@ -33,7 +33,7 @@ CheckBattleScene: ; 4ea44
ret
.from_wram
ld a, $5
ld a, BANK(w5_dc00)
ld hl, w5_dc00
call GetFarWRAMByte
bit 0, a