mirror of
https://github.com/zeldaret/tmc
synced 2026-08-14 04:32:40 -04:00
142 lines
2.2 KiB
PHP
142 lines
2.2 KiB
PHP
.syntax unified
|
|
.text
|
|
|
|
push {r4, r5, r6, lr}
|
|
adds r4, r0, #0
|
|
adds r6, r1, #0
|
|
ldrb r0, [r6, #0x18]
|
|
cmp r0, #0
|
|
bne _080629B4
|
|
adds r0, #1
|
|
strb r0, [r6, #0x18]
|
|
bl Random
|
|
movs r1, #0x3f
|
|
ands r0, r1
|
|
adds r0, #0x20
|
|
strh r0, [r6, #0x12]
|
|
bl Random
|
|
adds r1, r0, #0
|
|
movs r0, #0x18
|
|
ands r1, r0
|
|
ldrb r0, [r4, #0x15]
|
|
cmp r0, #8
|
|
beq _08062990
|
|
cmp r0, #8
|
|
bgt _0806297E
|
|
cmp r0, #0
|
|
beq _08062988
|
|
b _080629A6
|
|
_0806297E:
|
|
cmp r0, #0x10
|
|
beq _08062998
|
|
cmp r0, #0x18
|
|
beq _080629A0
|
|
b _080629A6
|
|
_08062988:
|
|
cmp r1, #0x10
|
|
bne _080629A6
|
|
movs r1, #8
|
|
b _080629A6
|
|
_08062990:
|
|
cmp r1, #0x18
|
|
bne _080629A6
|
|
movs r1, #0x10
|
|
b _080629A6
|
|
_08062998:
|
|
cmp r1, #0
|
|
bne _080629A6
|
|
movs r1, #0x18
|
|
b _080629A6
|
|
_080629A0:
|
|
cmp r1, #8
|
|
bne _080629A6
|
|
movs r1, #0
|
|
_080629A6:
|
|
strb r1, [r4, #0x15]
|
|
adds r0, r1, #0
|
|
bl sub_0806F5B0
|
|
strb r0, [r4, #0x14]
|
|
movs r0, #0x80
|
|
strh r0, [r4, #0x24]
|
|
_080629B4:
|
|
ldrb r0, [r4, #0x14]
|
|
lsrs r0, r0, #1
|
|
adds r1, r0, #4
|
|
adds r5, r4, #0
|
|
adds r5, #0x58
|
|
ldrb r0, [r5]
|
|
cmp r1, r0
|
|
beq _080629D2
|
|
adds r0, r4, #0
|
|
bl InitializeAnimation
|
|
ldrb r1, [r5]
|
|
adds r0, r4, #0
|
|
adds r0, #0x80
|
|
strh r1, [r0]
|
|
_080629D2:
|
|
adds r0, r4, #0
|
|
bl ProcessMovement0
|
|
movs r3, #0x2e
|
|
ldrsh r1, [r4, r3]
|
|
adds r2, r4, #0
|
|
adds r2, #0x6c
|
|
movs r5, #0
|
|
ldrsh r0, [r2, r5]
|
|
subs r1, r1, r0
|
|
cmp r1, #0x10
|
|
ble _080629F4
|
|
ldrh r0, [r2]
|
|
adds r0, #0x10
|
|
strh r0, [r4, #0x2e]
|
|
movs r0, #1
|
|
strh r0, [r6, #0x12]
|
|
_080629F4:
|
|
movs r3, #0x10
|
|
rsbs r3, r3, #0
|
|
cmp r1, r3
|
|
bge _08062A06
|
|
ldrh r0, [r2]
|
|
subs r0, #0x10
|
|
strh r0, [r4, #0x2e]
|
|
movs r0, #1
|
|
strh r0, [r6, #0x12]
|
|
_08062A06:
|
|
movs r0, #0x32
|
|
ldrsh r1, [r4, r0]
|
|
adds r2, r4, #0
|
|
adds r2, #0x6e
|
|
movs r5, #0
|
|
ldrsh r0, [r2, r5]
|
|
subs r1, r1, r0
|
|
cmp r1, #0x10
|
|
ble _08062A22
|
|
ldrh r0, [r2]
|
|
adds r0, #0x10
|
|
strh r0, [r4, #0x32]
|
|
movs r0, #1
|
|
strh r0, [r6, #0x12]
|
|
_08062A22:
|
|
cmp r1, r3
|
|
bge _08062A30
|
|
ldrh r0, [r2]
|
|
subs r0, #0x10
|
|
strh r0, [r4, #0x32]
|
|
movs r0, #1
|
|
strh r0, [r6, #0x12]
|
|
_08062A30:
|
|
ldrh r0, [r6, #0x12]
|
|
subs r0, #1
|
|
strh r0, [r6, #0x12]
|
|
lsls r0, r0, #0x10
|
|
cmp r0, #0
|
|
beq _08062A42
|
|
ldr r1, _08062A44 @ =gActiveScriptInfo
|
|
movs r0, #0
|
|
strb r0, [r1, #6]
|
|
_08062A42:
|
|
pop {r4, r5, r6, pc}
|
|
.align 2, 0
|
|
_08062A44: .4byte gActiveScriptInfo
|
|
|
|
.syntax divided
|