mirror of https://github.com/zeldaret/tmc.git
74 lines
1.1 KiB
PHP
74 lines
1.1 KiB
PHP
.syntax unified
|
|
|
|
.text
|
|
|
|
push {r4, r5, lr}
|
|
adds r5, r0, #0
|
|
cmp r5, #0x46
|
|
bhi _080543A8
|
|
movs r0, #0
|
|
movs r1, #1
|
|
bl sub_0807CAA0
|
|
_080543A8:
|
|
subs r0, r5, #1
|
|
cmp r0, #0x1e
|
|
bhi _08054410
|
|
movs r1, #2
|
|
ldr r2, _080543C0 @ =gSave
|
|
adds r0, r2, #0
|
|
adds r0, #0xb4
|
|
ldrb r0, [r0]
|
|
cmp r0, #0
|
|
bne _080543C4
|
|
movs r1, #0
|
|
b _080543D0
|
|
.align 2, 0
|
|
_080543C0: .4byte gSave
|
|
_080543C4:
|
|
adds r0, r2, #0
|
|
adds r0, #0xb5
|
|
ldrb r0, [r0]
|
|
cmp r0, #0
|
|
bne _080543D0
|
|
movs r1, #1
|
|
_080543D0:
|
|
cmp r1, #2
|
|
bne _0805440A
|
|
ldr r3, _080543F0 @ =gUnk_080FD5B4
|
|
lsls r0, r5, #3
|
|
adds r0, r0, r3
|
|
ldrb r4, [r0]
|
|
adds r0, r2, #0
|
|
adds r0, #0xb4
|
|
ldrb r0, [r0]
|
|
lsls r0, r0, #3
|
|
adds r0, r0, r3
|
|
ldrb r0, [r0]
|
|
cmp r4, r0
|
|
bne _080543F4
|
|
movs r1, #0
|
|
b _08054406
|
|
.align 2, 0
|
|
_080543F0: .4byte gUnk_080FD5B4
|
|
_080543F4:
|
|
adds r0, r2, #0
|
|
adds r0, #0xb5
|
|
ldrb r0, [r0]
|
|
lsls r0, r0, #3
|
|
adds r0, r0, r3
|
|
ldrb r0, [r0]
|
|
cmp r4, r0
|
|
bne _08054406
|
|
movs r1, #1
|
|
_08054406:
|
|
cmp r1, #2
|
|
beq _08054410
|
|
_0805440A:
|
|
adds r0, r5, #0
|
|
bl ForceEquipItem
|
|
_08054410:
|
|
pop {r4, r5, pc}
|
|
.align 2, 0
|
|
|
|
.syntax divided
|