diff options
Diffstat (limited to 'arm9/asm/RUNTIME_ll_sll.s')
-rw-r--r-- | arm9/asm/RUNTIME_ll_sll.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arm9/asm/RUNTIME_ll_sll.s b/arm9/asm/RUNTIME_ll_sll.s new file mode 100644 index 00000000..c4f37ead --- /dev/null +++ b/arm9/asm/RUNTIME_ll_sll.s @@ -0,0 +1,20 @@ + .include "asm/macros.inc"
+ .include "global.inc"
+
+ .text
+
+ arm_func_start _ll_shl
+_ll_shl: ; 0x020EBC50
+ ands r2, r2, #0x3f
+ bxeq lr
+ subs r3, r2, #0x20
+ bge _020EBC74
+ rsb r3, r2, #0x20
+ mov r1, r1, lsl r2
+ orr r1, r1, r0, lsr r3
+ mov r0, r0, lsl r2
+ bx lr
+_020EBC74:
+ mov r1, r0, lsl r3
+ mov r0, #0x0
+ bx lr
|