structures.h

This commit is contained in:
theo3
2020-07-22 23:05:12 -07:00
parent cb24f8f9b1
commit 67da19b92c
10 changed files with 188 additions and 303 deletions
-151
View File
@@ -5,157 +5,6 @@
.text
thumb_func_start sub_08050038
sub_08050038: @ 0x08050038
push {lr}
adds r3, r0, #0
ldr r2, _0805004C @ =gUnk_03000FD0
ldrh r1, [r2, #8]
movs r0, #1
ands r0, r1
cmp r0, #0
beq _08050050
strh r3, [r2, #0xe]
b _08050052
.align 2, 0
_0805004C: .4byte gUnk_03000FD0
_08050050:
strh r3, [r2, #0xc]
_08050052:
pop {pc}
thumb_func_start DoFade
DoFade: @ 0x08050054
push {r4, r5, lr}
adds r5, r0, #0
ldr r2, _08050078 @ =gUnk_03000FD0
movs r3, #0
strh r1, [r2, #0xa]
strh r5, [r2, #8]
movs r0, #1
strb r0, [r2]
adds r0, #0xff
strh r0, [r2, #0xc]
strh r3, [r2, #0xe]
movs r0, #2
ands r0, r5
adds r4, r2, #0
cmp r0, #0
beq _0805007C
movs r0, #0xf8
b _0805007E
.align 2, 0
_08050078: .4byte gUnk_03000FD0
_0805007C:
movs r0, #0
_0805007E:
strb r0, [r4, #2]
movs r0, #8
ands r0, r5
cmp r0, #0
beq _080500A4
ldr r1, _080500E4 @ =gUnk_03000000
movs r0, #1
strb r0, [r1, #2]
ldr r2, _080500E8 @ =gScreen
ldrh r0, [r2, #0x14]
movs r1, #0x40
orrs r0, r1
strh r0, [r2, #0x14]
ldrh r0, [r2, #0x20]
orrs r0, r1
strh r0, [r2, #0x20]
ldrh r0, [r2, #0x2c]
orrs r1, r0
strh r1, [r2, #0x2c]
_080500A4:
movs r0, #0x10
ands r0, r5
cmp r0, #0
beq _080500E0
ldrh r0, [r4, #0x16]
ldrh r1, [r4, #0x18]
bl sub_0801E1B8
movs r1, #0x12
ldrsh r0, [r4, r1]
movs r2, #0x14
ldrsh r1, [r4, r2]
movs r3, #0x10
ldrsh r2, [r4, r3]
bl sub_0801E1EC
movs r0, #1
ands r0, r5
cmp r0, #0
bne _080500E0
ldrh r1, [r4, #8]
ldr r0, _080500EC @ =0x0000FFFB
ands r0, r1
strh r0, [r4, #8]
bl sub_08050008
ldr r1, _080500F0 @ =gUnk_0200B644
movs r0, #1
rsbs r0, r0, #0
str r0, [r1]
_080500E0:
pop {r4, r5, pc}
.align 2, 0
_080500E4: .4byte gUnk_03000000
_080500E8: .4byte gScreen
_080500EC: .4byte 0x0000FFFB
_080500F0: .4byte gUnk_0200B644
thumb_func_start sub_080500F4
sub_080500F4: @ 0x080500F4
ldr r1, _0805010C @ =gUnk_03000FD0
strh r0, [r1, #0xa]
ldrh r0, [r1, #8]
movs r2, #1
eors r0, r2
strh r0, [r1, #8]
strb r2, [r1]
movs r0, #0x80
lsls r0, r0, #1
strh r0, [r1, #0xc]
bx lr
.align 2, 0
_0805010C: .4byte gUnk_03000FD0
thumb_func_start sub_08050110
sub_08050110: @ 0x08050110
push {r4, r5, r6, lr}
adds r5, r0, #0
adds r6, r1, #0
adds r4, r2, #0
movs r1, #1
ands r1, r4
cmp r1, #0
beq _08050130
ldr r1, _0805012C @ =gUnk_03000FD0
movs r0, #0x96
strh r0, [r1, #0x10]
adds r2, r1, #0
b _08050136
.align 2, 0
_0805012C: .4byte gUnk_03000FD0
_08050130:
ldr r0, _0805014C @ =gUnk_03000FD0
strh r1, [r0, #0x10]
adds r2, r0, #0
_08050136:
movs r1, #0
strh r5, [r2, #0x12]
strh r6, [r2, #0x14]
ldr r0, _08050150 @ =0x00003F3F
strh r0, [r2, #0x16]
strh r1, [r2, #0x18]
adds r0, r4, #0
adds r1, r3, #0
bl DoFade
pop {r4, r5, r6, pc}
.align 2, 0
_0805014C: .4byte gUnk_03000FD0
_08050150: .4byte 0x00003F3F
thumb_func_start sub_08050154
sub_08050154: @ 0x08050154
push {r4, r5, r6, lr}
-37
View File
@@ -1,37 +0,0 @@
.include "asm/macros.inc"
.include "constants/constants.inc"
.syntax unified
.text
thumb_func_start sub_080A3B84
sub_080A3B84: @ 0x080A3B84
push {r4, r5, lr}
ldr r4, _080A3BC4 @ =gUnk_030010A0
adds r4, #0x2c
movs r5, #0
movs r0, #2
strb r0, [r4]
bl sub_080AD90C
ldr r1, _080A3BC8 @ =gUnk_081280C4
ldr r0, _080A3BCC @ =gMenu
ldrb r0, [r0, #5]
lsls r0, r0, #2
adds r0, r0, r1
ldr r0, [r0]
bl _call_via_r0
bl sub_080A3B74
bl sub_080A4054
bl sub_0801C1D4
bl sub_0801C208
bl sub_0805E5C0
bl sub_080AD9B0
bl sub_080AD918
strb r5, [r4]
pop {r4, r5, pc}
.align 2, 0
_080A3BC4: .4byte gUnk_030010A0
_080A3BC8: .4byte gUnk_081280C4
_080A3BCC: .4byte gMenu
-69
View File
@@ -1,69 +0,0 @@
.include "asm/macros.inc"
.include "constants/constants.inc"
.syntax unified
.text
thumb_func_start PalaceArchway
PalaceArchway: @ 0x0809F288
push {lr}
ldr r2, _0809F29C @ =gUnk_081246EC
ldrb r1, [r0, #0xc]
lsls r1, r1, #2
adds r1, r1, r2
ldr r1, [r1]
bl _call_via_r1
pop {pc}
.align 2, 0
_0809F29C: .4byte gUnk_081246EC
thumb_func_start sub_0809F2A0
sub_0809F2A0: @ 0x0809F2A0
push {r4, r5, r6, lr}
movs r1, #1
strb r1, [r0, #0xc]
ldrb r1, [r0, #0xb]
strb r1, [r0, #0x1e]
ldrb r1, [r0, #0x19]
movs r2, #0xc0
orrs r1, r2
strb r1, [r0, #0x19]
adds r3, r0, #0
adds r3, #0x29
ldrb r1, [r3]
movs r2, #7
orrs r1, r2
strb r1, [r3]
ldr r5, _0809F2EC @ =0x00004069
movs r2, #0x2e
ldrsh r1, [r0, r2]
ldr r3, _0809F2F0 @ =gRoomControls
ldrh r2, [r3, #6]
subs r1, r1, r2
asrs r1, r1, #4
movs r4, #0x3f
ands r1, r4
movs r6, #0x32
ldrsh r2, [r0, r6]
ldrh r3, [r3, #8]
subs r2, r2, r3
asrs r2, r2, #4
ands r2, r4
lsls r2, r2, #6
orrs r1, r2
adds r0, #0x38
ldrb r2, [r0]
adds r0, r5, #0
bl SetTile
pop {r4, r5, r6, pc}
.align 2, 0
_0809F2EC: .4byte 0x00004069
_0809F2F0: .4byte gRoomControls
thumb_func_start nullsub_537
nullsub_537: @ 0x0809F2F4
bx lr
.align 2, 0