aboutsummaryrefslogtreecommitdiffstats
path: root/yellow/bank3d
diff options
context:
space:
mode:
authorU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2015-06-04 23:15:09 -0500
committerU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2015-06-04 23:15:09 -0500
commitf558d784a87d7b56b2cacfc2f543f63237ad8183 (patch)
tree0708fe686eb1d94d6b94bcba78b05f6d6616b1f9 /yellow/bank3d
parentMore home.asm documentation. (diff)
downloadpokeyellow-f558d784a87d7b56b2cacfc2f543f63237ad8183.tar.gz
pokeyellow-f558d784a87d7b56b2cacfc2f543f63237ad8183.tar.xz
pokeyellow-f558d784a87d7b56b2cacfc2f543f63237ad8183.zip
EOL Windows->UNIX
Diffstat (limited to 'yellow/bank3d')
-rw-r--r--yellow/bank3d/random.asm30
1 files changed, 15 insertions, 15 deletions
diff --git a/yellow/bank3d/random.asm b/yellow/bank3d/random.asm
index c7245c3e..b7fb0edd 100644
--- a/yellow/bank3d/random.asm
+++ b/yellow/bank3d/random.asm
@@ -1,15 +1,15 @@
-SECTION "bank3d",ROMX[$67DC],BANK[$3D]
-
-Random_::
-; Generate a random 16-bit value.
- ld a, [rDIV]
- ld b, a
- ld a, [hRandomAdd]
- adc b
- ld [hRandomAdd], a
- ld a, [rDIV]
- ld b, a
- ld a, [hRandomSub]
- sbc b
- ld [hRandomSub], a
- ret
+SECTION "bank3d",ROMX[$67DC],BANK[$3D]
+
+Random_::
+; Generate a random 16-bit value.
+ ld a, [rDIV]
+ ld b, a
+ ld a, [hRandomAdd]
+ adc b
+ ld [hRandomAdd], a
+ ld a, [rDIV]
+ ld b, a
+ ld a, [hRandomSub]
+ sbc b
+ ld [hRandomSub], a
+ ret