Identify more WRAM labels, and start a <X>_DummyFunction label convention

This commit is contained in:
Rangi
2020-10-28 13:35:39 -04:00
parent 6d333bed5f
commit ea426a8879
42 changed files with 255 additions and 208 deletions

View File

@@ -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:

View File

@@ -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]

View File

@@ -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: