Remove some more raw addresses

This commit is contained in:
Rangi
2020-06-21 12:21:47 -04:00
parent 9433b5a752
commit 98af69691d
9 changed files with 35 additions and 28 deletions

View File

@@ -8050,11 +8050,11 @@ BattleIntro:
ld b, SCGB_BATTLE_GRAYSCALE
call GetSGBLayout
ld hl, rLCDC
res rLCDC_WINDOW_TILEMAP, [hl] ; select 9800-9BFF
res rLCDC_WINDOW_TILEMAP, [hl] ; select vBGMap0/vBGMap2
call InitBattleDisplay
call BattleStartMessage
ld hl, rLCDC
set rLCDC_WINDOW_TILEMAP, [hl] ; select 9C00-9FFF
set rLCDC_WINDOW_TILEMAP, [hl] ; select vBGMap1/vBGMap3
xor a
ldh [hBGMapMode], a
call EmptyBattleTextbox

View File

@@ -68,7 +68,7 @@ Function170114:
ret
Function170139:
; Convert the 4-digit decimal number at 5:aa41 into binary
; Convert the 4-digit decimal number at s5_aa41 into binary
ld a, BANK(s5_aa41)
call OpenSRAM
ld de, s5_aa41

View File

@@ -826,7 +826,7 @@ _SaveData:
call CopyBytes
; This block originally had some mobile functionality, but since we're still in
; BANK(sCrystalData), it instead overwrites the sixteen wEventFlags starting at 1:a603 with
; BANK(sCrystalData), it instead overwrites the sixteen wEventFlags starting at 1:s4_a60e with
; garbage from wd479. This isn't an issue, since ErasePreviousSave is followed by a regular
; save that unwrites the garbage.

View File

@@ -506,7 +506,7 @@ Printer_RestartMapMusic:
CheckPrinterStatus:
; Check for printer errors
; If [ca88] == -1, we're disconnected
; If [wPrinterHandshake] == -1, we're disconnected
ld a, [wPrinterHandshake]
cp -1
jr nz, .printer_connected