summaryrefslogtreecommitdiff
path: root/src/engine/home.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2016-01-25 23:17:22 +0100
committerxCrystal <rgr.crystal@gmail.com>2016-01-25 23:17:22 +0100
commit3519c3b611cb31bf81a1d25a9a4409b6152e0d10 (patch)
treea0e7cfe959d1650f778878a5620b9f556ebd4c62 /src/engine/home.asm
parent40351ed316cc22e4304f7bf15bd303d38729255e (diff)
duel related labels/documentation 3
also timer counters and rng sources
Diffstat (limited to 'src/engine/home.asm')
-rwxr-xr-xsrc/engine/home.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm
index 8d64870..ae34ded 100755
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -129,7 +129,7 @@ TimerHandler: ; 01e6 (0:01e6)
and $3
jr nz, .done
; increment the 60-60-60-255-255 counter
- call IncrementCounter
+ call IncrementPlayTimeCounter
; check in-timer flag
ld hl, wReentrancyFlag
bit 1, [hl]
@@ -153,11 +153,11 @@ TimerHandler: ; 01e6 (0:01e6)
reti
; increment timer counter by a tick
-IncrementCounter: ; 021c (0:021c)
- ld a, [wCounterEnable]
+IncrementPlayTimeCounter: ; 021c (0:021c)
+ ld a, [wPlayTimeCounterEnable]
or a
ret z
- ld hl, wCounter
+ ld hl, wPlayTimeCounter
inc [hl]
ld a, [hl]
cp 60
@@ -1221,10 +1221,10 @@ HtimesL: ; 0879 (0:0879)
INCBIN "baserom.gbc",$088f,$089b - $088f
-Func_089b: ; 089b (0:089b)
+UpdateRNGSources: ; 089b (0:089b)
push hl
push de
- ld hl, $caca
+ ld hl, wRNG1
ld a, [hli]
ld d, [hl]
inc hl
@@ -3557,7 +3557,7 @@ Duel_LoadDecks: ; 2b78 (0:2b78)
ld a, PRACTICE_PLAYER_DECK
call LoadDeck
call GetOpposingTurnDuelistVariable_SwapTurn
- ld hl, $caca
+ ld hl, wRNG1
ld a, $57
ld [hli], a
ld [hli], a
@@ -4517,14 +4517,14 @@ Func_380e: ; 380e (0:380e)
ld a, BANK(Func_804d8)
call BankswitchHome
call Func_804d8
- call Func_089b
+ call UpdateRNGSources
pop af
call BankswitchHome
ret
Func_383d: ; 383d (0:383d)
ld a, $1
- ld [wCounterEnable], a
+ ld [wPlayTimeCounterEnable], a
ld a, [hBankROM]
push af
.asm_3845