summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-10-23 17:12:49 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-10-23 17:12:49 -0400
commit16ab70a12c3b9106a7a74d6cea97f26986c7efd8 (patch)
treecd1464ca790ab990769d54812f4a4ac583351615 /asm
parentf33f58eff7b9daa6bc89fb2ba764f5e1ac3a1640 (diff)
through sub_80CBB28
Diffstat (limited to 'asm')
-rw-r--r--asm/field_specials.s500
1 files changed, 0 insertions, 500 deletions
diff --git a/asm/field_specials.s b/asm/field_specials.s
index 5e17271e6..79f66d386 100644
--- a/asm/field_specials.s
+++ b/asm/field_specials.s
@@ -5,506 +5,6 @@
.text
- thumb_func_start sub_80CB7C4
-sub_80CB7C4: @ 80CB7C4
- push {r4,r5,lr}
- ldr r0, _080CB808 @ =sub_809D6D4
- bl sub_81119D4
- lsls r0, 24
- lsrs r0, 24
- cmp r0, 0x1
- bne _080CB7D6
- b _080CB8F8
-_080CB7D6:
- ldr r0, _080CB80C @ =sub_80CB904
- movs r1, 0x8
- bl CreateTask
- lsls r0, 24
- lsrs r5, r0, 24
- lsls r0, r5, 2
- adds r0, r5
- lsls r0, 3
- ldr r1, _080CB810 @ =gTasks
- adds r3, r0, r1
- ldr r0, _080CB814 @ =gSpecialVar_0x8004
- ldrh r4, [r0]
- cmp r4, 0x3
- beq _080CB886
- cmp r4, 0x3
- bgt _080CB818
- cmp r4, 0x1
- beq _080CB842
- cmp r4, 0x1
- bgt _080CB870
- cmp r4, 0
- beq _080CB82A
- b _080CB8EC
- .align 2, 0
-_080CB808: .4byte sub_809D6D4
-_080CB80C: .4byte sub_80CB904
-_080CB810: .4byte gTasks
-_080CB814: .4byte gSpecialVar_0x8004
-_080CB818:
- cmp r4, 0x5
- beq _080CB8B4
- cmp r4, 0x5
- blt _080CB89E
- cmp r4, 0x6
- beq _080CB8D2
- cmp r4, 0x63
- beq _080CB8F8
- b _080CB8EC
-_080CB82A:
- movs r0, 0x4
- strh r0, [r3, 0x8]
- movs r0, 0x9
- strh r0, [r3, 0xA]
- movs r1, 0x1
- strh r1, [r3, 0xC]
- strh r1, [r3, 0xE]
- movs r0, 0xC
- strh r0, [r3, 0x10]
- movs r0, 0x7
- strh r0, [r3, 0x12]
- b _080CB8E6
-_080CB842:
- movs r2, 0
- movs r0, 0x7
- strh r0, [r3, 0x8]
- movs r1, 0xC
- strh r1, [r3, 0xA]
- strh r4, [r3, 0xC]
- strh r4, [r3, 0xE]
- movs r0, 0x8
- strh r0, [r3, 0x10]
- strh r1, [r3, 0x12]
- strh r2, [r3, 0x14]
- strh r5, [r3, 0x26]
- ldr r0, _080CB868 @ =sElevatorScroll
- ldrh r0, [r0]
- strh r0, [r3, 0x16]
- ldr r0, _080CB86C @ =sElevatorCursorPos
- ldrh r0, [r0]
- strh r0, [r3, 0x18]
- b _080CB8F8
- .align 2, 0
-_080CB868: .4byte sElevatorScroll
-_080CB86C: .4byte sElevatorCursorPos
-_080CB870:
- movs r1, 0
- movs r0, 0x4
- strh r0, [r3, 0x8]
- strh r0, [r3, 0xA]
- movs r0, 0x1
- strh r0, [r3, 0xC]
- strh r0, [r3, 0xE]
- movs r0, 0x8
- strh r0, [r3, 0x10]
- strh r0, [r3, 0x12]
- b _080CB8E6
-_080CB886:
- movs r1, 0
- movs r0, 0x4
- strh r0, [r3, 0x8]
- movs r0, 0x6
- strh r0, [r3, 0xA]
- movs r0, 0x1
- strh r0, [r3, 0xC]
- strh r0, [r3, 0xE]
- movs r0, 0x8
- strh r0, [r3, 0x10]
- strh r0, [r3, 0x12]
- b _080CB8E6
-_080CB89E:
- movs r0, 0x4
- strh r0, [r3, 0x8]
- strh r0, [r3, 0xA]
- movs r1, 0x1
- strh r1, [r3, 0xC]
- strh r1, [r3, 0xE]
- movs r0, 0x11
- strh r0, [r3, 0x10]
- movs r0, 0x8
- strh r0, [r3, 0x12]
- b _080CB8E6
-_080CB8B4:
- movs r2, 0
- movs r0, 0x7
- strh r0, [r3, 0x8]
- movs r1, 0xC
- strh r1, [r3, 0xA]
- movs r0, 0x10
- strh r0, [r3, 0xC]
- movs r0, 0x1
- strh r0, [r3, 0xE]
- movs r0, 0x11
- strh r0, [r3, 0x10]
- strh r1, [r3, 0x12]
- strh r2, [r3, 0x14]
- strh r5, [r3, 0x26]
- b _080CB8F8
-_080CB8D2:
- movs r1, 0
- movs r0, 0x3
- strh r0, [r3, 0x8]
- strh r0, [r3, 0xA]
- movs r0, 0x1
- strh r0, [r3, 0xC]
- strh r0, [r3, 0xE]
- movs r0, 0x8
- strh r0, [r3, 0x10]
- strh r4, [r3, 0x12]
-_080CB8E6:
- strh r1, [r3, 0x14]
- strh r5, [r3, 0x26]
- b _080CB8F8
-_080CB8EC:
- ldr r1, _080CB900 @ =gSpecialVar_Result
- movs r0, 0x7F
- strh r0, [r1]
- adds r0, r5, 0
- bl DestroyTask
-_080CB8F8:
- pop {r4,r5}
- pop {r0}
- bx r0
- .align 2, 0
-_080CB900: .4byte gSpecialVar_Result
- thumb_func_end sub_80CB7C4
-
- thumb_func_start sub_80CB904
-sub_80CB904: @ 80CB904
- push {r4-r7,lr}
- mov r7, r10
- mov r6, r9
- mov r5, r8
- push {r5-r7}
- sub sp, 0x20
- lsls r0, 24
- lsrs r7, r0, 24
- lsls r0, r7, 2
- adds r0, r7
- lsls r0, 3
- ldr r1, _080CB934 @ =gTasks
- adds r5, r0, r1
- bl ScriptContext2_Enable
- ldr r0, _080CB938 @ =gSpecialVar_0x8004
- ldrh r0, [r0]
- cmp r0, 0x1
- bne _080CB944
- ldr r0, _080CB93C @ =gUnknown_2039A18
- ldr r1, _080CB940 @ =sElevatorScroll
- ldrh r1, [r1]
- strh r1, [r0]
- b _080CB94A
- .align 2, 0
-_080CB934: .4byte gTasks
-_080CB938: .4byte gSpecialVar_0x8004
-_080CB93C: .4byte gUnknown_2039A18
-_080CB940: .4byte sElevatorScroll
-_080CB944:
- ldr r1, _080CBA60 @ =gUnknown_2039A18
- movs r0, 0
- strh r0, [r1]
-_080CB94A:
- ldr r4, _080CBA64 @ =gUnknown_2039A14
- movs r1, 0xA
- ldrsh r0, [r5, r1]
- lsls r0, 3
- bl AllocZeroed
- str r0, [r4]
- bl sub_80CBA7C
- movs r6, 0
- movs r4, 0
- movs r2, 0xA
- ldrsh r0, [r5, r2]
- lsls r3, r7, 2
- mov r10, r3
- add r1, sp, 0x18
- mov r9, r1
- cmp r6, r0
- bge _080CB9AE
- ldr r2, _080CBA68 @ =gUnknown_83F5BCC
- mov r8, r2
-_080CB974:
- ldr r0, _080CBA64 @ =gUnknown_2039A14
- ldr r0, [r0]
- lsls r3, r4, 3
- adds r3, r0
- lsls r2, r4, 2
- ldr r0, _080CBA6C @ =gSpecialVar_0x8004
- ldrh r1, [r0]
- lsls r0, r1, 1
- adds r0, r1
- lsls r0, 4
- adds r2, r0
- add r2, r8
- ldr r1, [r2]
- str r1, [r3]
- str r4, [r3, 0x4]
- movs r0, 0x2
- movs r2, 0
- bl GetStringWidth
- cmp r0, r6
- ble _080CB9A0
- adds r6, r0, 0
-_080CB9A0:
- adds r0, r4, 0x1
- lsls r0, 24
- lsrs r4, r0, 24
- movs r3, 0xA
- ldrsh r0, [r5, r3]
- cmp r4, r0
- blt _080CB974
-_080CB9AE:
- adds r0, r6, 0
- adds r0, 0x9
- cmp r0, 0
- bge _080CB9B8
- adds r0, 0x7
-_080CB9B8:
- asrs r0, 3
- adds r2, r0, 0x1
- strh r2, [r5, 0x10]
- movs r1, 0xC
- ldrsh r0, [r5, r1]
- movs r3, 0x10
- ldrsh r1, [r5, r3]
- adds r0, r1
- cmp r0, 0x1D
- ble _080CB9D2
- movs r0, 0x1D
- subs r0, r2
- strh r0, [r5, 0xC]
-_080CB9D2:
- ldrb r2, [r5, 0xC]
- ldrb r3, [r5, 0xE]
- ldrb r0, [r5, 0x10]
- str r0, [sp]
- ldrb r0, [r5, 0x12]
- str r0, [sp, 0x4]
- movs r0, 0xF
- str r0, [sp, 0x8]
- movs r0, 0x38
- str r0, [sp, 0xC]
- add r0, sp, 0x10
- movs r1, 0
- bl SetWindowTemplateFields
- ldr r0, [sp, 0x10]
- ldr r1, [sp, 0x14]
- str r0, [sp, 0x18]
- str r1, [sp, 0x1C]
- mov r0, r9
- bl AddWindow
- lsls r0, 24
- lsrs r0, 24
- strh r0, [r5, 0x22]
- movs r1, 0
- bl SetStdWindowBorderStyle
- ldr r4, _080CBA70 @ =gUnknown_3005360
- ldrh r0, [r5, 0xA]
- strh r0, [r4, 0xC]
- ldrh r0, [r5, 0x8]
- strh r0, [r4, 0xE]
- ldrh r0, [r5, 0x22]
- strb r0, [r4, 0x10]
- adds r0, r7, 0
- bl sub_80CBCC0
- ldrh r1, [r5, 0x16]
- ldrh r2, [r5, 0x18]
- adds r0, r4, 0
- bl ListMenuInit
- lsls r0, 24
- lsrs r0, 24
- strh r0, [r5, 0x24]
- ldrh r0, [r5, 0x22]
- lsls r0, 24
- lsrs r0, 24
- bl PutWindowTilemap
- ldrh r0, [r5, 0x22]
- lsls r0, 24
- lsrs r0, 24
- movs r1, 0x3
- bl CopyWindowToVram
- ldr r1, _080CBA74 @ =gTasks
- mov r2, r10
- adds r0, r2, r7
- lsls r0, 3
- adds r0, r1
- ldr r1, _080CBA78 @ =sub_80CBB28
- str r1, [r0]
- add sp, 0x20
- pop {r3-r5}
- mov r8, r3
- mov r9, r4
- mov r10, r5
- pop {r4-r7}
- pop {r0}
- bx r0
- .align 2, 0
-_080CBA60: .4byte gUnknown_2039A18
-_080CBA64: .4byte gUnknown_2039A14
-_080CBA68: .4byte gUnknown_83F5BCC
-_080CBA6C: .4byte gSpecialVar_0x8004
-_080CBA70: .4byte gUnknown_3005360
-_080CBA74: .4byte gTasks
-_080CBA78: .4byte sub_80CBB28
- thumb_func_end sub_80CB904
-
- thumb_func_start sub_80CBA7C
-sub_80CBA7C: @ 80CBA7C
- ldr r2, _080CBAD0 @ =gUnknown_3005360
- ldr r0, _080CBAD4 @ =gUnknown_2039A14
- ldr r0, [r0]
- str r0, [r2]
- ldr r0, _080CBAD8 @ =sub_80CBADC
- str r0, [r2, 0x4]
- movs r0, 0
- str r0, [r2, 0x8]
- movs r1, 0
- movs r0, 0x1
- strh r0, [r2, 0xC]
- strh r0, [r2, 0xE]
- strb r1, [r2, 0x10]
- strb r1, [r2, 0x11]
- movs r0, 0x8
- strb r0, [r2, 0x12]
- strb r1, [r2, 0x13]
- movs r0, 0x20
- strb r0, [r2, 0x14]
- movs r3, 0x1
- movs r0, 0x31
- strb r0, [r2, 0x15]
- ldrb r1, [r2, 0x16]
- subs r0, 0x39
- ands r0, r1
- orrs r0, r3
- movs r1, 0x39
- negs r1, r1
- ands r0, r1
- movs r3, 0x3F
- ands r0, r3
- strb r0, [r2, 0x16]
- ldrb r1, [r2, 0x17]
- movs r0, 0x40
- negs r0, r0
- ands r0, r1
- movs r1, 0x2
- orrs r0, r1
- ands r0, r3
- strb r0, [r2, 0x17]
- bx lr
- .align 2, 0
-_080CBAD0: .4byte gUnknown_3005360
-_080CBAD4: .4byte gUnknown_2039A14
-_080CBAD8: .4byte sub_80CBADC
- thumb_func_end sub_80CBA7C
-
- thumb_func_start sub_80CBADC
-sub_80CBADC: @ 80CBADC
- push {r4,lr}
- movs r0, 0x5
- bl PlaySE
- ldr r0, _080CBB18 @ =sub_80CBB28
- bl FindTaskIdByFunc
- lsls r0, 24
- lsrs r1, r0, 24
- cmp r1, 0xFF
- beq _080CBB12
- lsls r0, r1, 2
- adds r0, r1
- lsls r0, 3
- ldr r1, _080CBB1C @ =gTasks
- adds r0, r1
- ldrh r0, [r0, 0x24]
- lsls r0, 24
- lsrs r0, 24
- ldr r4, _080CBB20 @ =gUnknown_3005378
- adds r1, r4, 0
- movs r2, 0
- bl ListMenuGetScrollAndRow
- ldr r1, _080CBB24 @ =gUnknown_2039A18
- ldrh r0, [r4]
- strh r0, [r1]
-_080CBB12:
- pop {r4}
- pop {r0}
- bx r0
- .align 2, 0
-_080CBB18: .4byte sub_80CBB28
-_080CBB1C: .4byte gTasks
-_080CBB20: .4byte gUnknown_3005378
-_080CBB24: .4byte gUnknown_2039A18
- thumb_func_end sub_80CBADC
-
- thumb_func_start sub_80CBB28
-sub_80CBB28: @ 80CBB28
- push {r4-r6,lr}
- lsls r0, 24
- lsrs r5, r0, 24
- lsls r0, r5, 2
- adds r0, r5
- lsls r0, 3
- ldr r1, _080CBB54 @ =gTasks
- adds r6, r0, r1
- ldrh r0, [r6, 0x24]
- lsls r0, 24
- lsrs r0, 24
- bl ListMenu_ProcessInput
- adds r4, r0, 0
- movs r0, 0x2
- negs r0, r0
- cmp r4, r0
- beq _080CBB58
- adds r0, 0x1
- cmp r4, r0
- bne _080CBB6C
- b _080CBBA2
- .align 2, 0
-_080CBB54: .4byte gTasks
-_080CBB58:
- ldr r1, _080CBB68 @ =gSpecialVar_Result
- movs r0, 0x7F
- strh r0, [r1]
- movs r0, 0x5
- bl PlaySE
- b _080CBB88
- .align 2, 0
-_080CBB68: .4byte gSpecialVar_Result
-_080CBB6C:
- ldr r0, _080CBB90 @ =gSpecialVar_Result
- strh r4, [r0]
- movs r0, 0x5
- bl PlaySE
- movs r1, 0x14
- ldrsh r0, [r6, r1]
- cmp r0, 0
- beq _080CBB88
- movs r1, 0xA
- ldrsh r0, [r6, r1]
- subs r0, 0x1
- cmp r4, r0
- bne _080CBB94
-_080CBB88:
- adds r0, r5, 0
- bl sub_80CBBAC
- b _080CBBA2
- .align 2, 0
-_080CBB90: .4byte gSpecialVar_Result
-_080CBB94:
- adds r0, r5, 0
- bl sub_80CBD50
- ldr r0, _080CBBA8 @ =sub_80CBC2C
- str r0, [r6]
- bl EnableBothScriptContexts
-_080CBBA2:
- pop {r4-r6}
- pop {r0}
- bx r0
- .align 2, 0
-_080CBBA8: .4byte sub_80CBC2C
- thumb_func_end sub_80CBB28
-
thumb_func_start sub_80CBBAC
sub_80CBBAC: @ 80CBBAC
push {r4,r5,lr}