summaryrefslogtreecommitdiff
path: root/asm/random.s
diff options
context:
space:
mode:
authorsceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-16 23:54:22 -0800
committersceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-16 23:54:22 -0800
commit670fef77ac4d9116d5fdc28c0da40622919a062b (patch)
tree61c0e925f059404473826ac775305ba5e2706ab1 /asm/random.s
first commit
Diffstat (limited to 'asm/random.s')
-rw-r--r--asm/random.s36
1 files changed, 36 insertions, 0 deletions
diff --git a/asm/random.s b/asm/random.s
new file mode 100644
index 000000000..9ac3e043c
--- /dev/null
+++ b/asm/random.s
@@ -0,0 +1,36 @@
+ .include "asm/macros.inc"
+ .include "constants/constants.inc"
+
+ .syntax unified
+
+ .text
+
+ thumb_func_start sub_8044EC8
+sub_8044EC8: @ 8044EC8
+ ldr r2, _08044EDC @ =gUnknown_3005000
+ ldr r1, [r2]
+ ldr r0, _08044EE0 @ =0x41c64e6d
+ muls r0, r1
+ ldr r1, _08044EE4 @ =0x00006073
+ adds r0, r1
+ str r0, [r2]
+ lsrs r0, 16
+ bx lr
+ .align 2, 0
+_08044EDC: .4byte gUnknown_3005000
+_08044EE0: .4byte 0x41c64e6d
+_08044EE4: .4byte 0x00006073
+ thumb_func_end sub_8044EC8
+
+ thumb_func_start sub_8044EE8
+sub_8044EE8: @ 8044EE8
+ lsls r0, 16
+ lsrs r0, 16
+ ldr r1, _08044EF4 @ =gUnknown_3005000
+ str r0, [r1]
+ bx lr
+ .align 2, 0
+_08044EF4: .4byte gUnknown_3005000
+ thumb_func_end sub_8044EE8
+
+ .align 2, 0 @ Don't pad with nop.