summaryrefslogtreecommitdiff
path: root/engine/random.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
committerdannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
commit5647ca687b92954dcf37a6ea6bfbc9a341c32de4 (patch)
treedde1937a1bfdb3a835f4155e1c2eb8f1aaf86f63 /engine/random.asm
parent53fcd05aa24693093d8af1dc8ec4fedd3957decc (diff)
Sync with pokered
Diffstat (limited to 'engine/random.asm')
-rwxr-xr-xengine/random.asm13
1 files changed, 0 insertions, 13 deletions
diff --git a/engine/random.asm b/engine/random.asm
deleted file mode 100755
index 2fc83f6f..00000000
--- a/engine/random.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