summaryrefslogtreecommitdiff
path: root/src/home/random.asm
diff options
context:
space:
mode:
authorElectroDeoxys <ElectroDeoxys@gmail.com>2021-09-09 08:54:29 +0100
committerElectroDeoxys <ElectroDeoxys@gmail.com>2021-09-09 08:54:29 +0100
commit0017fc2d171c87d7bab4c9be90e1069ae95a8071 (patch)
treec5a7b840c9b86c193b22f3de5317ff55c0a2a5aa /src/home/random.asm
parent32b02147925566bac93bf71b002860335583574c (diff)
Remove home bank address comments
Diffstat (limited to 'src/home/random.asm')
-rw-r--r--src/home/random.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/home/random.asm b/src/home/random.asm
index e1f09b9..d731b12 100644
--- a/src/home/random.asm
+++ b/src/home/random.asm
@@ -1,5 +1,5 @@
; returns h * l in hl
-HtimesL: ; 0879 (0:0879)
+HtimesL:
push de
ld a, h
ld e, l
@@ -20,7 +20,7 @@ HtimesL: ; 0879 (0:0879)
ret
; return a random number between 0 and a (exclusive) in a
-Random: ; 088f (0:088f)
+Random:
push hl
ld h, a
call UpdateRNGSources
@@ -31,7 +31,7 @@ Random: ; 088f (0:088f)
ret
; get the next random numbers of the wRNG1 and wRNG2 sequences
-UpdateRNGSources: ; 089b (0:089b)
+UpdateRNGSources:
push hl
push de
ld hl, wRNG1