sovereignx/asm/battle_dome_cards.s

35 lines
506 B
ArmAsm
Raw Normal View History

2017-09-03 17:58:40 +01:00
.include "asm/macros.inc"
.include "constants/constants.inc"
.syntax unified
.text
thumb_func_start sub_818D97C
sub_818D97C: @ 818D97C
push {lr}
lsls r0, 24
lsrs r0, 24
lsls r1, 24
lsrs r1, 24
cmp r1, 0x1
bne _0818D9A2
cmp r0, 0
beq _0818D99C
2017-09-12 14:05:40 +01:00
ldr r0, =gUnknown_0831F578
2017-09-03 17:58:40 +01:00
adds r0, 0x3F
ldrb r0, [r0]
b _0818D9A2
.pool
_0818D99C:
2017-09-12 14:05:40 +01:00
ldr r0, =gUnknown_0831F578
2017-09-03 17:58:40 +01:00
adds r0, 0x3C
ldrb r0, [r0]
_0818D9A2:
pop {r1}
bx r1
.pool
thumb_func_end sub_818D97C
2017-09-19 13:53:31 +01:00
2017-09-06 16:19:08 +01:00
.align 2, 0 @ Don't pad with nop.