mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Miscellaneous fixes:
- `hSecondsBackup` -> `hUnusedBackup` - `ld bc, hBGMapAddress + 1` -> `bccoord -1, -2, 0` - Identify some `.asm_XXX` labels
This commit is contained in:
parent
3cdfac7994
commit
79184bc718
@ -110,13 +110,13 @@ _ResetWRAM:
|
||||
call ByteFill
|
||||
|
||||
ldh a, [rLY]
|
||||
ldh [hSecondsBackup], a
|
||||
ldh [hUnusedBackup], a
|
||||
call DelayFrame
|
||||
ldh a, [hRandomSub]
|
||||
ld [wPlayerID], a
|
||||
|
||||
ldh a, [rLY]
|
||||
ldh [hSecondsBackup], a
|
||||
ldh [hUnusedBackup], a
|
||||
call DelayFrame
|
||||
ldh a, [hRandomAdd]
|
||||
ld [wPlayerID + 1], a
|
||||
|
@ -244,16 +244,16 @@ InitScrollingMenuCursor:
|
||||
ld a, [wScrollingMenuListSize]
|
||||
inc a
|
||||
cp b
|
||||
jr c, .asm_2475a
|
||||
jr nc, .asm_24763
|
||||
jr c, .wrap
|
||||
jr nc, .done
|
||||
|
||||
.asm_2475a
|
||||
.wrap
|
||||
xor a
|
||||
ld [wMenuScrollPosition], a
|
||||
ld a, $1
|
||||
ld [wMenuCursorBuffer], a
|
||||
|
||||
.asm_24763
|
||||
.done
|
||||
ret
|
||||
|
||||
ScrollingMenu_InitFlags:
|
||||
|
@ -1128,7 +1128,7 @@ PokegearPhoneContactSubmenu:
|
||||
ld h, a
|
||||
inc de
|
||||
push hl
|
||||
ld bc, hBGMapAddress + 1
|
||||
bccoord -1, -2, 0
|
||||
add hl, bc
|
||||
ld a, [de]
|
||||
inc de
|
||||
|
@ -140,7 +140,7 @@ VBlank0::
|
||||
rst Bankswitch
|
||||
|
||||
ldh a, [hSeconds]
|
||||
ldh [hSecondsBackup], a
|
||||
ldh [hUnusedBackup], a
|
||||
|
||||
ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user