shithub: pokecrystal

Download patch

ref: b1c85486283274fbd1dd9072116ab1bb034e7756
parent: 80cf859cd31c3882f8c42dd19e56fcde02b8955c
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Fri Jan 31 15:59:48 EST 2020

Clean up comments in home/time.asm

--- a/home/time.asm
+++ b/home/time.asm
@@ -76,11 +76,11 @@
 	jr z, .daylo
 ; reset dh (bit 8)
 	res 0, a
-	ldh [hRTCDayHi], a ; DH
+	ldh [hRTCDayHi], a
 
 ; mod 140
 ; mod twice since bit 8 (DH) was set
-	ldh a, [hRTCDayLo] ; DL
+	ldh a, [hRTCDayLo]
 .modh
 	sub 140
 	jr nc, .modh
@@ -90,7 +90,7 @@
 	add 140
 
 ; update dl
-	ldh [hRTCDayLo], a ; DL
+	ldh [hRTCDayLo], a
 
 ; flag for sRTCStatusFlags
 	ld a, %01000000
@@ -98,7 +98,7 @@
 
 .daylo
 ; quit if fewer than 140 days have passed
-	ldh a, [hRTCDayLo] ; DL
+	ldh a, [hRTCDayLo]
 	cp 140
 	jr c, .quit
 
@@ -109,7 +109,7 @@
 	add 140
 
 ; update dl
-	ldh [hRTCDayLo], a ; DL
+	ldh [hRTCDayLo], a
 
 ; flag for sRTCStatusFlags
 	ld a, %00100000
@@ -128,11 +128,10 @@
 
 FixTime::
 ; add ingame time (set at newgame) to current time
-;				  day     hr    min    sec
 ; store time in wCurDay, hHours, hMinutes, hSeconds
 
 ; second
-	ldh a, [hRTCSeconds] ; S
+	ldh a, [hRTCSeconds]
 	ld c, a
 	ld a, [wStartSecond]
 	add c
@@ -144,7 +143,7 @@
 
 ; minute
 	ccf ; carry is set, so turn it off
-	ldh a, [hRTCMinutes] ; M
+	ldh a, [hRTCMinutes]
 	ld c, a
 	ld a, [wStartMinute]
 	adc c
@@ -156,7 +155,7 @@
 
 ; hour
 	ccf ; carry is set, so turn it off
-	ldh a, [hRTCHours] ; H
+	ldh a, [hRTCHours]
 	ld c, a
 	ld a, [wStartHour]
 	adc c
@@ -168,7 +167,7 @@
 
 ; day
 	ccf ; carry is set, so turn it off
-	ldh a, [hRTCDayLo] ; DL
+	ldh a, [hRTCDayLo]
 	ld c, a
 	ld a, [wStartDay]
 	adc c
@@ -178,7 +177,7 @@
 InitTimeOfDay::
 	xor a
 	ld [wStringBuffer2], a
-	ld a, $0 ; useless
+	ld a, 0 ; useless
 	ld [wStringBuffer2 + 3], a
 	jr InitTime
 
--