diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-06-05 09:53:59 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-06-05 09:53:59 -0400 |
commit | d9d306d8fe4ad210bd4f2c0c6cde9549c262d4c1 (patch) | |
tree | a6f488302bb79081ceba583ce3502c539c2f1a38 /home/random.asm | |
parent | 979546810baaccf17772e32fd7a2c45a87a89d24 (diff) |
Disassemble BattleRandom
Diffstat (limited to 'home/random.asm')
-rw-r--r-- | home/random.asm | 12 |
1 files changed, 12 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 |