summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-06-05 09:53:59 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-06-05 09:53:59 -0400
commitd9d306d8fe4ad210bd4f2c0c6cde9549c262d4c1 (patch)
treea6f488302bb79081ceba583ce3502c539c2f1a38
parent979546810baaccf17772e32fd7a2c45a87a89d24 (diff)
Disassemble BattleRandom
-rw-r--r--home/random.asm12
-rw-r--r--shim.sym1
2 files changed, 13 insertions, 0 deletions
diff --git a/home/random.asm b/home/random.asm
index e150312..80938d0 100644
--- a/home/random.asm
+++ b/home/random.asm
@@ -30,3 +30,15 @@ Random::
ldh [hRandomSub], a
pop bc
ret
+
+BattleRandom::
+ ldh a, [hROMBank]
+ push af
+ ld a, BANK(_BattleRandom)
+ call Bankswitch
+ call _BattleRandom
+ ld [wPredefHL + 1], a
+ pop af
+ call Bankswitch
+ ld a, [wPredefHL + 1]
+ ret
diff --git a/shim.sym b/shim.sym
index ac185f2..9c0c63e 100644
--- a/shim.sym
+++ b/shim.sym
@@ -133,6 +133,7 @@
0F:55CE Function_3d5ce
0F:567C Function_3d67c
0F:61A4 Function_3e1a4
+0F:63DA _BattleRandom
0F:6874 Function_3e874
0F:691E Function_3e91e
0F:6963 Function_3e963