tmc/asm/objectB5.s

30 lines
542 B
ArmAsm

.include "asm/macros.inc"
.include "constants/constants.inc"
.syntax unified
.text
thumb_func_start sub_080A0E28
sub_080A0E28: @ 0x080A0E28
push {lr}
adds r1, r0, #0
ldrb r0, [r1, #0xc]
cmp r0, #0
bne _080A0E36
movs r0, #1
strb r0, [r1, #0xc]
_080A0E36:
ldr r0, _080A0E48 @ =gRoomControls
str r1, [r0, #0x30]
ldr r0, _080A0E4C @ =gLinkEntity
ldr r3, _080A0E50 @ =0xFFD80000
movs r2, #0
bl PositionRelative
pop {pc}
.align 2, 0
_080A0E48: .4byte gRoomControls
_080A0E4C: .4byte gLinkEntity
_080A0E50: .4byte 0xFFD80000