From 041c0891d8516a4c6a60652347ce77de996edb1d Mon Sep 17 00:00:00 2001 From: sceptillion <33798691+sceptillion@users.noreply.github.com> Date: Mon, 11 Dec 2017 09:18:22 -0800 Subject: decompile other_random --- asm/other_random.s | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 asm/other_random.s (limited to 'asm') 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. -- cgit v1.2.3