summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorsceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-11 09:18:22 -0800
committersceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-11 09:18:22 -0800
commit041c0891d8516a4c6a60652347ce77de996edb1d (patch)
tree4179bbd334339cd89d34a74fca90ab0ee9428f21 /asm
parentb0ef8f839bebb39c1806352cc8f87274927063b6 (diff)
decompile other_random
Diffstat (limited to 'asm')
-rw-r--r--asm/other_random.s48
1 files changed, 0 insertions, 48 deletions
diff --git a/asm/other_random.s b/asm/other_random.s
deleted file mode 100644
index 751fc20..0000000
--- a/asm/other_random.s
+++ /dev/null
@@ -1,48 +0,0 @@
- .include "constants/gba_constants.inc"
- .include "asm/macros.inc"
-
- .syntax unified
-
- .text
-
- thumb_func_start OtherRandom
-OtherRandom:
- ldr r1, _08004514
- ldrh r2, [r1]
- movs r0, 0x6D
- muls r0, r2
- ldr r2, _08004518
- adds r0, r2
- strh r0, [r1]
- ldrh r0, [r1]
- bx lr
- .align 2, 0
-_08004514: .4byte gUnknown_203B070
-_08004518: .4byte 0x000003fd
- thumb_func_end OtherRandom
-
- thumb_func_start OtherRandomCapped
-OtherRandomCapped:
- push {r4,lr}
- adds r4, r0, 0
- bl OtherRandom
- muls r0, r4
- asrs r0, 16
- pop {r4}
- pop {r1}
- bx r1
- thumb_func_end OtherRandomCapped
-
- thumb_func_start OtherRandomRange
-OtherRandomRange:
- push {r4,lr}
- adds r4, r0, 0
- subs r0, r1, r4
- bl OtherRandomCapped
- adds r0, r4
- pop {r4}
- pop {r1}
- bx r1
- thumb_func_end OtherRandomRange
-
- .align 2, 0 @ Don't pad with nop.