You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Identify more WRAM labels, and start a <X>_DummyFunction label convention
This commit is contained in:
@@ -20,18 +20,18 @@ OpenSRAMBank4:
|
||||
ret
|
||||
|
||||
Function89168:
|
||||
ld hl, wGameTimerPause
|
||||
set GAMETIMERPAUSE_MOBILE_7_F, [hl]
|
||||
ld hl, wGameTimerPaused
|
||||
set GAME_TIMER_MOBILE_F, [hl]
|
||||
ret
|
||||
|
||||
Function8916e:
|
||||
ld hl, wGameTimerPause
|
||||
res GAMETIMERPAUSE_MOBILE_7_F, [hl]
|
||||
ld hl, wGameTimerPaused
|
||||
res GAME_TIMER_MOBILE_F, [hl]
|
||||
ret
|
||||
|
||||
Function89174:
|
||||
ld hl, wGameTimerPause
|
||||
bit GAMETIMERPAUSE_MOBILE_7_F, [hl]
|
||||
ld hl, wGameTimerPaused
|
||||
bit GAME_TIMER_MOBILE_F, [hl]
|
||||
ret
|
||||
|
||||
Function8917a:
|
||||
|
@@ -2660,8 +2660,8 @@ Function1011f1:
|
||||
call CloseSRAM
|
||||
ld hl, wdc41
|
||||
res 4, [hl]
|
||||
ld hl, wGameTimerPause
|
||||
bit GAMETIMERPAUSE_MOBILE_7_F, [hl]
|
||||
ld hl, wGameTimerPaused
|
||||
bit GAME_TIMER_MOBILE_F, [hl]
|
||||
jr z, .skip
|
||||
ld hl, wdc41
|
||||
set 4, [hl]
|
||||
@@ -4425,15 +4425,15 @@ Function101e98:
|
||||
call ClearSprites
|
||||
farcall Function8adb3
|
||||
ret c
|
||||
ld hl, wGameTimerPause
|
||||
set GAMETIMERPAUSE_MOBILE_7_F, [hl]
|
||||
ld hl, wGameTimerPaused
|
||||
set GAME_TIMER_MOBILE_F, [hl]
|
||||
ld hl, wdc41
|
||||
set 4, [hl]
|
||||
ret
|
||||
|
||||
Function101ead:
|
||||
ld hl, wGameTimerPause
|
||||
bit GAMETIMERPAUSE_MOBILE_7_F, [hl]
|
||||
ld hl, wGameTimerPaused
|
||||
bit GAME_TIMER_MOBILE_F, [hl]
|
||||
jr nz, .asm_101ec8
|
||||
ld hl, wdc41
|
||||
bit 2, [hl]
|
||||
|
@@ -7,11 +7,11 @@ Function16c000: ; unreferenced
|
||||
ldh a, [hSystemBooted]
|
||||
and a
|
||||
ret z
|
||||
; Set some flag, preserving the old state
|
||||
ld a, [wcfbe]
|
||||
; Disable the joypad during mobile setup
|
||||
ld a, [wJoypadDisable]
|
||||
push af
|
||||
set 7, a
|
||||
ld [wcfbe], a
|
||||
set JOYPAD_DISABLE_SGB_TRANSFER_F, a
|
||||
ld [wJoypadDisable], a
|
||||
; Do stuff
|
||||
call MobileSystemSplashScreen_InitGFX ; Load GFX
|
||||
farcall SetRAMStateForMobile
|
||||
@@ -24,7 +24,7 @@ Function16c000: ; unreferenced
|
||||
ldh [hSystemBooted], a
|
||||
; Restore the flag state
|
||||
pop af
|
||||
ld [wcfbe], a
|
||||
ld [wJoypadDisable], a
|
||||
ret
|
||||
|
||||
.RunJumptable:
|
||||
|
Reference in New Issue
Block a user