summaryrefslogtreecommitdiff
path: root/engine/rtc.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2018-02-03 17:15:20 -0500
committerGitHub <noreply@github.com>2018-02-03 17:15:20 -0500
commitb35eb72290b964b98844afbe741bb7ede34b9ef3 (patch)
tree2cf2652bc9c3e69ae5f7b2a2632c02a12498615f /engine/rtc.asm
parent7547ad839cf1c8141b931d08ef16a894e7db68c9 (diff)
parent32ade4ac9bf113d630d904aab51f2c49c91bf8c2 (diff)
Merge pull request #480 from luckytyphlosion/master
[Ready to merge] Prefix wram labels with w.
Diffstat (limited to 'engine/rtc.asm')
-rwxr-xr-xengine/rtc.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/rtc.asm b/engine/rtc.asm
index 571de9284..37e24c1ed 100755
--- a/engine/rtc.asm
+++ b/engine/rtc.asm
@@ -44,7 +44,7 @@ GetTimeOfDay:: ; 14032
; get time of day
inc hl
ld a, [hl]
- ld [TimeOfDay], a
+ ld [wTimeOfDay], a
ret
; 14044
@@ -68,7 +68,7 @@ Unreferenced_1404e:
StageRTCTimeForSave: ; 14056
call UpdateTime
ld hl, wRTC
- ld a, [CurDay]
+ ld a, [wCurDay]
ld [hli], a
ld a, [hHours]
ld [hli], a
@@ -138,7 +138,7 @@ Function140ae: ; 140ae
call UpdateTime
ld a, [wRTC + 0]
ld b, a
- ld a, [CurDay]
+ ld a, [wCurDay]
cp b
jr c, .dont_update
@@ -166,9 +166,9 @@ _InitTime:: ; 140ed
call GetClock
call FixDays
ld hl, hRTCSeconds
- ld de, StartSecond
+ ld de, wStartSecond
- ld a, [StringBuffer2 + 3]
+ ld a, [wStringBuffer2 + 3]
sub [hl]
dec hl
jr nc, .okay_secs
@@ -177,7 +177,7 @@ _InitTime:: ; 140ed
ld [de], a
dec de
- ld a, [StringBuffer2 + 2]
+ ld a, [wStringBuffer2 + 2]
sbc [hl]
dec hl
jr nc, .okay_mins
@@ -186,7 +186,7 @@ _InitTime:: ; 140ed
ld [de], a
dec de
- ld a, [StringBuffer2 + 1]
+ ld a, [wStringBuffer2 + 1]
sbc [hl]
dec hl
jr nc, .okay_hrs
@@ -195,7 +195,7 @@ _InitTime:: ; 140ed
ld [de], a
dec de
- ld a, [StringBuffer2]
+ ld a, [wStringBuffer2]
sbc [hl]
dec hl
jr nc, .okay_days