You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-12-11 05:02:16 -08:00
Remove some more raw addresses
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user