aboutsummaryrefslogtreecommitdiffstats
path: root/engine/rng.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-05-24 11:44:12 -0700
committeryenatch <yenatch@gmail.com>2014-05-24 11:44:12 -0700
commit7911bc130943392a9aa901139c924aa9658e015f (patch)
tree18e8ab49d3c0db0efa487dea1b83c57d9b5e9511 /engine/rng.asm
parentRename random number function and hram labels. (diff)
downloadpokeyellow-7911bc130943392a9aa901139c924aa9658e015f.tar.gz
pokeyellow-7911bc130943392a9aa901139c924aa9658e015f.tar.xz
pokeyellow-7911bc130943392a9aa901139c924aa9658e015f.zip
Rename engine/rng.asm to engine/random.asm.
Diffstat (limited to 'engine/rng.asm')
-rwxr-xr-xengine/rng.asm13
1 files changed, 0 insertions, 13 deletions
diff --git a/engine/rng.asm b/engine/rng.asm
deleted file mode 100755
index 2fc83f6f..00000000
--- a/engine/rng.asm
+++ /dev/null
@@ -1,13 +0,0 @@
-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