finish event data

This commit is contained in:
DizzyEggg 2017-09-02 22:31:37 +02:00
parent a4cc67008e
commit b5fea95a46
60 changed files with 1265 additions and 1587 deletions

View File

@ -1344,7 +1344,7 @@ sub_80B1158: @ 80B1158
sub sp, 0x8
ldr r0, =0x00004023
bl GetVarPointer
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldrh r1, [r2]
strh r1, [r0]
ldrh r0, [r2]
@ -1669,7 +1669,7 @@ battle_80801F0: @ 80B13F8
ldrh r1, [r0]
cmp r1, 0
beq _080B141A
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
strh r1, [r0]
lsls r0, r1, 24
lsrs r0, 24
@ -1793,7 +1793,7 @@ _080B153C:
adds r1, r5, 0
bl TrainerBattleLoadArgs
bl battle_80801F0
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
bl sub_81A9AA8
ldr r1, =gUnknown_02038BCA
@ -1803,7 +1803,7 @@ _080B156C:
ldr r0, =gUnknown_08550014
adds r1, r5, 0
bl TrainerBattleLoadArgs
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
bl sub_81A9AA8
_080B157C:
@ -1833,7 +1833,7 @@ _080B15A8:
adds r1, r5, 0
bl TrainerBattleLoadArgs
bl battle_80801F0
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
bl battle_init
ldr r1, =gUnknown_02038BCA
@ -1843,7 +1843,7 @@ _080B15D8:
ldr r0, =gUnknown_08550014
adds r1, r5, 0
bl TrainerBattleLoadArgs
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
bl battle_init
b _080B157C
@ -1882,7 +1882,7 @@ SingleTrainerWantsBattle: @ 80B162C
lsrs r0, 24
ldr r2, =gUnknown_03005DF0
strb r0, [r2]
ldr r4, =gUnknown_020375F2
ldr r4, =gScriptLastTalked
ldr r3, =gUnknown_02037350
lsls r2, r0, 3
adds r2, r0
@ -1910,7 +1910,7 @@ TwoTrainersWantBattle: @ 80B1670
lsrs r0, 24
ldr r2, =gUnknown_03005DF0
strb r0, [r2]
ldr r4, =gUnknown_020375F2
ldr r4, =gScriptLastTalked
ldr r3, =gUnknown_02037350
lsls r2, r0, 3
adds r2, r0
@ -2332,7 +2332,7 @@ sub_80B1A14: @ 80B1A14
ldrb r0, [r0]
cmp r0, 0x1
bhi _080B1A44
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
bl sub_81A9AA8
lsls r0, 16
@ -2370,7 +2370,7 @@ _080B1A7C:
ldrb r0, [r0]
cmp r0, 0x1
bhi _080B1AAC
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
bl battle_init
adds r1, r0, 0
@ -3484,7 +3484,7 @@ CheckIfMultipleTrainersWantBattle: @ 80B22D8
ldr r1, =gUnknown_02038BF8
movs r0, 0x1
strb r0, [r1]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _080B230A
.pool
@ -3492,7 +3492,7 @@ _080B2300:
ldr r1, =gUnknown_02038BF8
movs r0, 0
strb r0, [r1]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
_080B230A:
strh r0, [r1]

View File

@ -836,7 +836,7 @@ FieldObjectInteractionGetBerryTreeData: @ 80E1B94
lsrs r6, r0, 24
adds r0, r5, 0
bl ResetBerryTreeSparkleFlag
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
ldr r1, =gSaveBlock1Ptr
ldr r2, [r1]
@ -846,26 +846,26 @@ FieldObjectInteractionGetBerryTreeData: @ 80E1B94
lsls r0, 24
cmp r0, 0
beq _080E1BE0
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0xFF
strh r0, [r1]
b _080E1BEE
.pool
_080E1BE0:
ldr r4, =gUnknown_020375E0
ldr r4, =gSpecialVar_0x8004
adds r0, r5, 0
bl GetStageByBerryTreeId
lsls r0, 24
lsrs r0, 24
strh r0, [r4]
_080E1BEE:
ldr r4, =gUnknown_020375E2
ldr r4, =gSpecialVar_0x8005
adds r0, r5, 0
bl GetNumStagesWateredByBerryTreeId
lsls r0, 24
lsrs r0, 24
strh r0, [r4]
ldr r4, =gUnknown_020375E4
ldr r4, =gSpecialVar_0x8006
adds r0, r5, 0
bl GetBerryCountByBerryTreeId
lsls r0, 24
@ -980,7 +980,7 @@ FieldObjectInteractionPickBerryTree: @ 80E1CDC
bl GetBerryTypeByBerryTreeId
lsls r0, 24
lsrs r0, 24
ldr r6, =gUnknown_020375E0
ldr r6, =gSpecialVar_0x8004
bl BerryTypeToItemId
adds r4, r0, 0
lsls r4, 16
@ -1011,7 +1011,7 @@ FieldObjectInteractionRemoveBerryTree: @ 80E1D28
lsls r0, 24
lsrs r0, 24
bl RemoveBerryTree
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
ldr r1, =gSaveBlock1Ptr
ldr r2, [r1]

View File

@ -370,7 +370,7 @@ _0807FA94:
ldr r0, [r4]
adds r0, 0x63
strb r1, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
bl sub_807FE54
ldr r0, =sub_807FAC8
@ -947,7 +947,7 @@ _0807FFC0:
adds r0, r2
str r1, [r0]
movs r2, 0
ldr r5, =gUnknown_020375E0
ldr r5, =gSpecialVar_0x8004
movs r3, 0
_0807FFD6:
ldr r0, [r4]
@ -1764,7 +1764,7 @@ _080806DC:
lsls r0, 24
cmp r0, 0
bne _0808071A
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0x1
bne _0808071A
@ -2461,7 +2461,7 @@ _08080CC4:
strb r3, [r0]
ldr r0, =sub_8081898
bl SetMainCallback2
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0x1
bne _08080D44
@ -2492,7 +2492,7 @@ _08080D30:
_08080D42:
strb r0, [r1]
_08080D44:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r0, [r1]
cmp r0, 0x1
bls _08080D80
@ -2518,7 +2518,7 @@ _08080D5A:
lsls r3, 17
adds r5, r3
adds r4, 0x1
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r4, r0
blt _08080D5A
@ -3366,7 +3366,7 @@ sub_80814F4: @ 80814F4
mov r5, r8
push {r5-r7}
sub sp, 0x8
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
beq _0808153C
@ -3593,7 +3593,7 @@ _080816D2:
bge _080816F6
b _08081562
_080816F6:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
beq _08081722
@ -4788,7 +4788,7 @@ _0808204C:
lsls r0, 24
lsrs r4, r0, 24
_08082064:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r4, r0
bcc _0808204C

View File

@ -225,7 +225,7 @@ sub_80F9984: @ 80F9984
adds r7, r1, 0
lsls r0, 16
lsrs r6, r0, 16
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldrh r0, [r1]
cmp r0, 0xFF
bne _080F99A0
@ -359,7 +359,7 @@ sub_80F9AAC: @ 80F9AAC
ldr r0, =0x00004047
bl GetVarPointer
adds r1, r0, 0
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
movs r0, 0x95
lsls r0, 1
bl sub_80F9984
@ -403,7 +403,7 @@ sub_80F9B04: @ 80F9B04
ldr r0, =0x0000404f
bl GetVarPointer
adds r1, r0, 0
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
ldr r0, =0x00000127
bl sub_80F9984
lsls r0, 24

View File

@ -435,7 +435,7 @@ _0814FFF8:
b _08150224
.pool
_08150090:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
bl sub_81514C8
ldr r1, =gUnknown_0203ABAC
@ -587,7 +587,7 @@ _081501C8:
ldr r0, =sub_81503E4
movs r1, 0
bl CreateTask
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _08150218
@ -1362,7 +1362,7 @@ sub_8150868: @ 8150868
ldrb r0, [r6, 0x1]
cmp r0, 0xFF
beq _08150934
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _081508E4
@ -1455,7 +1455,7 @@ sub_8150948: @ 8150948
bne _08150958
b _08150A60
_08150958:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _081509C8
@ -1806,7 +1806,7 @@ _08150C1C:
movs r0, 0x46
movs r1, 0
bl SetGpuReg
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r3, [r0]
cmp r3, 0
bne _08150C74
@ -1936,7 +1936,7 @@ sub_8150D28: @ 8150D28
ldr r0, [r0]
str r0, [sp, 0x20]
str r1, [sp, 0x24]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
mov r8, r6
mov r10, r5
@ -2178,7 +2178,7 @@ _08150F3E:
lsrs r0, 16
add r0, r8
ldrb r0, [r0]
ldr r5, =gUnknown_020375E0
ldr r5, =gSpecialVar_0x8004
ldrh r4, [r5]
lsls r4, 2
add r1, sp, 0x20

View File

@ -663,7 +663,7 @@ sub_80B28A8: @ 80B28A8
b _080B2908
.pool
_080B28F4:
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
adds r0, r7, 0
adds r1, r6, 0
bl sub_80B2478
@ -703,7 +703,7 @@ sub_80B2918: @ 80B2918
bl sub_80B24F8
cmp r0, 0x1
beq _080B29E6
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
adds r0, r6, 0
adds r1, r5, 0
bl sub_80B2478
@ -791,7 +791,7 @@ sub_80B2A08: @ 80B2A08
bl sub_80B24F8
cmp r0, 0x1
beq _080B2ACE
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x4
bne _080B2A38
@ -941,7 +941,7 @@ _080B2B5E:
mov r1, r8
cmp r1, 0x1
ble _080B2B20
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
strh r7, [r0]
adds r0, r2, 0
add sp, 0x8
@ -1067,7 +1067,7 @@ _080B2C7E:
movs r0, 0
bl sub_800B330
bl sub_800A5B4
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
adds r1, r5, 0
bl task_map_chg_seq_0807EC34
_080B2C9C:
@ -1111,7 +1111,7 @@ sub_80B2CEC: @ 80B2CEC
adds r5, r0, 0
lsls r5, 24
lsrs r5, 24
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x5
strh r0, [r1]
ldr r0, =gTasks
@ -1139,7 +1139,7 @@ sub_80B2D2C: @ 80B2D2C
adds r5, r0, 0
lsls r5, 24
lsrs r5, 24
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x6
strh r0, [r1]
ldr r0, =gTasks
@ -1197,7 +1197,7 @@ sub_80B2DA4: @ 80B2DA4
push {r4,lr}
movs r3, 0x2
movs r2, 0x2
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0x2
beq _080B2DDC
@ -1284,7 +1284,7 @@ sub_80B2E4C: @ 80B2E4C
thumb_func_start sub_80B2E74
sub_80B2E74: @ 80B2E74
push {lr}
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r1, =gUnknown_020229C6
@ -1353,7 +1353,7 @@ sub_80B2EE4: @ 80B2EE4
b _080B2FC6
.pool
_080B2F0C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
bne _080B2FA8
@ -1415,7 +1415,7 @@ _080B2F74:
_080B2F82:
cmp r7, 0
beq _080B2FA8
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0xC
strh r0, [r1]
bl sub_800AD10
@ -1517,7 +1517,7 @@ sub_80B3050: @ 80B3050
b _080B3134
.pool
_080B3068:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
subs r0, 0x1
cmp r0, 0x8
@ -1863,7 +1863,7 @@ _080B3370:
lsls r0, 1
bl PlayNewMapMusic__default_for_battle
_080B3378:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
bl sub_80B3260
bl overworld_free_bg_tilemaps
@ -2036,7 +2036,7 @@ _080B3504:
ldr r1, =gUnknown_020229E8
ldr r0, =0x00002211
str r0, [r1, 0x14]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
bl sub_80B3260
bl overworld_free_bg_tilemaps
@ -2160,7 +2160,7 @@ sub_80B360C: @ 80B360C
bl copy_player_party_from_sav1
bl copy_bags_and_unk_data_to_save_blocks
bl sub_813BF10
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
subs r0, 0x1
lsls r0, 16
@ -2238,7 +2238,7 @@ _080B36D0:
thumb_func_start sub_80B36EC
sub_80B36EC: @ 80B36EC
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
subs r0, r1, 0x1
lsls r0, 16
@ -2308,7 +2308,7 @@ _080B376C:
cmp r0, 0
beq _080B37CC
bl sub_8087288
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrb r0, [r0]
bl sub_8009628
movs r0, 0x2
@ -2584,7 +2584,7 @@ sub_80B39A4: @ 80B39A4
thumb_func_start sp02A_crash_sound
sp02A_crash_sound: @ 80B39BC
push {lr}
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrb r0, [r0]
ldr r1, =c2_exit_to_overworld_1_continue_scripts_restart_music
bl sub_80C4E74
@ -2599,7 +2599,7 @@ sub_80B39D4: @ 80B39D4
adds r4, r0, 0
lsls r4, 24
lsrs r4, 24
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
strh r4, [r0]
ldr r0, =gStringVar1
lsls r1, r4, 3

View File

@ -544,11 +544,11 @@ _080F5D2A:
bne _080F5D58
movs r0, 0x23
bl sav12_xor_increment
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x8
strh r0, [r1]
bl InterviewBefore
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
beq _080F5D58
@ -4648,7 +4648,7 @@ sub_80F7F30: @ 80F7F30
ldrb r0, [r4]
bl sub_80DB09C
_080F7F5E:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r5, [r0]
pop {r4,r5}
pop {r0}
@ -4991,7 +4991,7 @@ _080F8250:
sub_80F8264: @ 80F8264
push {r4,lr}
ldr r4, =gStringVar1
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r1, [r0]
lsls r1, 6
ldr r0, =gUnknown_02039E0D
@ -5010,7 +5010,7 @@ sub_80F8264: @ 80F8264
sub_80F8290: @ 80F8290
push {lr}
ldr r0, =gStringVar3
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
ldrh r1, [r1]
lsls r1, 6
ldr r2, =gUnknown_02039E02
@ -5026,9 +5026,9 @@ sub_80F82B4: @ 80F82B4
push {r4-r6,lr}
movs r1, 0
movs r2, 0
ldr r5, =gUnknown_020375E0
ldr r5, =gSpecialVar_0x8004
ldr r4, =gUnknown_02039F00
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
lsls r0, 1
adds r0, r4
@ -5059,9 +5059,9 @@ _080F82DC:
thumb_func_start sub_80F82FC
sub_80F82FC: @ 80F82FC
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldr r1, =gUnknown_02039F00
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
lsls r0, 1
adds r0, r1
@ -5077,7 +5077,7 @@ sub_80F831C: @ 80F831C
movs r1, 0
ldr r2, =gUnknown_02039F20
ldrb r0, [r2]
ldr r3, =gUnknown_020375E2
ldr r3, =gSpecialVar_0x8005
cmp r0, 0
beq _080F833C
_080F832A:
@ -5215,9 +5215,9 @@ sub_80F840C: @ 80F840C
thumb_func_start sub_80F8438
sub_80F8438: @ 80F8438
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldr r1, =gUnknown_02039E00
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
lsls r0, 6
adds r0, r1
@ -5271,7 +5271,7 @@ sub_80F8484: @ 80F8484
thumb_func_start sub_80F84B0
sub_80F84B0: @ 80F84B0
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldr r1, =gUnknown_02039F25
ldrb r1, [r1]
strh r1, [r0]
@ -5401,7 +5401,7 @@ sub_80F85BC: @ 80F85BC
movs r3, 0
ldr r5, =gUnknown_02039F30
mov r12, r5
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
mov r9, r0
add r1, sp, 0x4
mov r8, r1
@ -5560,7 +5560,7 @@ sub_80F8714: @ 80F8714
push {r4-r6,lr}
lsls r0, 24
lsrs r6, r0, 24
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0x1
bne _080F8748

View File

@ -470,7 +470,7 @@ sub_806FDC4: @ 806FDC4
ldr r0, [r0]
ldr r1, =0x00003030
adds r0, r1
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrb r1, [r1]
bl sub_806FD9C
lsls r0, 16
@ -603,10 +603,10 @@ sub_806FED8: @ 806FED8
ldr r0, [r0]
ldr r1, =0x00003030
adds r0, r1
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrb r1, [r1]
bl sub_806FEC0
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
strh r0, [r1]
pop {r0}
bx r0
@ -637,7 +637,7 @@ sub_806FF04: @ 806FF04
sub_806FF30: @ 806FF30
push {r4-r6,lr}
ldr r6, =gSaveBlock1Ptr
ldr r5, =gUnknown_020375E0
ldr r5, =gSpecialVar_0x8004
ldrh r0, [r5]
movs r4, 0x8C
adds r1, r0, 0
@ -2217,7 +2217,7 @@ _08070B9A:
bl SetMonData
b _08070BB4
_08070BA8:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r5, [r0]
movs r0, 0x1
b _08070BC2
@ -3075,12 +3075,12 @@ c3_080469FC: @ 8071204
b _0807124E
.pool
_0807123C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
b _0807124E
.pool
_08071248:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
strh r0, [r1]
_0807124E:
@ -3109,7 +3109,7 @@ _08071284:
ands r0, r2
cmp r0, 0
beq _080712B4
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
ldrb r0, [r4, 0x8]
movs r1, 0

View File

@ -2473,9 +2473,9 @@ sub_8127E18: @ 8127E18
sub sp, 0x4
movs r6, 0
ldr r7, =gUnknown_02037318
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
mov r8, r0
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
mov r10, r1
ldr r2, =gSaveBlock1Ptr
mov r9, r2
@ -2546,7 +2546,7 @@ _08127E82:
strh r1, [r2]
ldr r1, =gUnknown_0203AA36
ldrh r1, [r1]
ldr r4, =gUnknown_020375E6
ldr r4, =gSpecialVar_0x8007
strh r1, [r4]
mov r5, r9
ldr r2, [r5]
@ -2560,7 +2560,7 @@ _08127E82:
mov r6, r10
movs r4, 0
ldrsh r3, [r6, r4]
ldr r5, =gUnknown_020375E6
ldr r5, =gSpecialVar_0x8007
movs r6, 0
ldrsh r4, [r5, r6]
str r4, [sp]
@ -5517,12 +5517,12 @@ sub_81296EC: @ 81296EC
thumb_func_start sub_8129708
sub_8129708: @ 8129708
push {r4-r6,lr}
ldr r6, =gUnknown_020375E2
ldr r6, =gSpecialVar_0x8005
movs r0, 0
strh r0, [r6]
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
strh r0, [r2]
ldr r4, =gUnknown_020375E0
ldr r4, =gSpecialVar_0x8004
ldr r1, =gUnknown_0203AAC4
ldrh r0, [r4]
ldrb r1, [r1]
@ -5533,7 +5533,7 @@ sub_8129708: @ 8129708
b _08129796
.pool
_08129738:
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
ldrb r0, [r2]
strh r0, [r1]
b _08129796
@ -5598,9 +5598,9 @@ sub_81297AC: @ 81297AC
bcs _081297F0
adds r3, r0, 0
ldr r5, [r3, 0x4]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r4, [r0]
ldr r6, =gUnknown_020375E2
ldr r6, =gSpecialVar_0x8005
_081297C4:
lsls r0, r2, 1
adds r0, r2

View File

@ -614,7 +614,7 @@ _08122980:
sub_8122998: @ 8122998
push {lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r1, 3
ldr r0, [r2]
@ -667,7 +667,7 @@ sub_81229C8: @ 81229C8
negs r0, r0
lsrs r4, r0, 31
_08122A0C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r4, [r0]
pop {r4}
pop {r0}
@ -677,7 +677,7 @@ _08122A0C:
thumb_func_start sub_8122A30
sub_8122A30: @ 8122A30
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldr r0, =gSaveBlock1Ptr
ldr r0, [r0]
ldr r3, =0x00002e6c

View File

@ -360,7 +360,7 @@ sub_811A4D0: @ 811A4D0
easy_chat_input_maybe: @ 811A4F0
push {r4,r5,lr}
movs r5, 0x3
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0x14
bls _0811A4FE
@ -425,7 +425,7 @@ _0811A5A0:
.pool
_0811A5B4:
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -456,7 +456,7 @@ _0811A5E6:
.pool
_0811A604:
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -465,13 +465,13 @@ _0811A604:
adds r0, r1
ldr r1, =0x000027d0
adds r4, r0, r1
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrb r5, [r0]
b _0811A7C2
.pool
_0811A630:
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -480,7 +480,7 @@ _0811A630:
adds r0, r3
ldr r1, [r2]
adds r1, r0
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
lsls r0, 1
adds r0, 0x1C
@ -490,7 +490,7 @@ _0811A630:
.pool
_0811A664:
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -530,7 +530,7 @@ _0811A6B4:
.pool
_0811A6D4:
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -539,7 +539,7 @@ _0811A6D4:
adds r0, r3
ldr r1, [r2]
adds r1, r0
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
lsls r0, 1
adds r0, 0x4
@ -549,7 +549,7 @@ _0811A6D4:
.pool
_0811A708:
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -570,7 +570,7 @@ _0811A72C:
.pool
_0811A73C:
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -621,7 +621,7 @@ _0811A7BC:
adds r4, r0, 0
_0811A7C2:
bl overworld_free_bg_tilemaps
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
ldr r2, =sub_80861B0
adds r1, r4, 0
@ -1659,7 +1659,7 @@ _0811AFAC:
b _0811AFE6
.pool
_0811AFC0:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
ldr r0, =gUnknown_0203A118
ldr r0, [r0]
@ -1709,7 +1709,7 @@ _0811B00C:
.pool
_0811B020:
bl sub_811BE9C
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl sub_811B4EC
strh r0, [r4]
bl sub_811B3E4
@ -1860,7 +1860,7 @@ _0811B118:
b _0811B14A
.pool
_0811B134:
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl sub_811B4EC
strh r0, [r4]
bl sub_811B3E4
@ -3792,18 +3792,18 @@ _0811BED0:
adds r1, r0, 0
cmp r1, 0
beq _0811BEE4
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x2
b _0811BF12
.pool
_0811BEE4:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r1, [r0]
b _0811BF14
.pool
_0811BEF0:
bl sub_811BE54
ldr r4, =gUnknown_020375E0
ldr r4, =gSpecialVar_0x8004
ldr r0, [r5]
adds r0, 0x3C
bl sub_81226D8
@ -3814,7 +3814,7 @@ _0811BEF0:
.pool
_0811BF0C:
bl sub_811BF40
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
_0811BF12:
strh r0, [r1]
_0811BF14:
@ -9851,7 +9851,7 @@ _0811EEC4:
thumb_func_start sub_811EECC
sub_811EECC: @ 811EECC
push {r4,r5,lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0x1
beq _0811EF04

View File

@ -259,7 +259,7 @@ sub_80714B8: @ 80714B8
thumb_func_start sub_8071578
sub_8071578: @ 8071578
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
bl sub_80714B8
pop {r0}
@ -334,7 +334,7 @@ sub_8071614: @ 8071614
ldr r0, [r0]
ldr r1, =0x00003030
adds r0, r1
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrb r1, [r1]
bl sub_807158C
lsls r0, 24
@ -546,7 +546,7 @@ _080717EC:
str r0, [r4]
bl init_uns_table_pokemon_copy
ldr r2, [r4]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
movs r1, 0
strb r0, [r2, 0x4]
@ -555,7 +555,7 @@ _080717EC:
ldr r0, =sub_807172C
bl SetVBlankCallback
bl GetCurrentMapMusic
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
strh r0, [r1]
bl reset_temp_tile_data_buffers
movs r0, 0
@ -728,7 +728,7 @@ _080719D6:
thumb_func_start sub_80719FC
sub_80719FC: @ 80719FC
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1

View File

@ -1,538 +0,0 @@
.include "asm/macros.inc"
.include "constants/constants.inc"
.syntax unified
.text
thumb_func_start ClearTempFieldEventData
ClearTempFieldEventData: @ 809D344
push {lr}
ldr r0, =gSaveBlock1Ptr
ldr r0, [r0]
ldr r1, =0x00001270
adds r2, r0, r1
movs r1, 0
str r1, [r2]
ldr r1, =0x0000139c
adds r0, r1
movs r1, 0
movs r2, 0x20
bl memset
ldr r0, =0x000008ad
bl FlagReset
ldr r0, =0x000008ae
bl FlagReset
ldr r0, =0x00000889
bl FlagReset
ldr r0, =0x000008c1
bl FlagReset
movs r0, 0x88
lsls r0, 4
bl FlagReset
pop {r0}
bx r0
.pool
thumb_func_end ClearTempFieldEventData
thumb_func_start ClearUpperFlags
ClearUpperFlags: @ 809D3A0
push {lr}
ldr r0, =gSaveBlock1Ptr
ldr r0, [r0]
ldr r1, =0x00001394
adds r0, r1
movs r1, 0
movs r2, 0x8
bl memset
pop {r0}
bx r0
.pool
thumb_func_end ClearUpperFlags
thumb_func_start DisableNationalPokedex
DisableNationalPokedex: @ 809D3C0
push {lr}
ldr r0, =0x00004046
bl GetVarPointer
ldr r1, =gSaveBlock2Ptr
ldr r2, [r1]
movs r1, 0
strb r1, [r2, 0x1A]
strh r1, [r0]
ldr r0, =0x00000896
bl FlagReset
pop {r0}
bx r0
.pool
thumb_func_end DisableNationalPokedex
thumb_func_start EnableNationalPokedex
EnableNationalPokedex: @ 809D3E8
push {r4,r5,lr}
ldr r0, =0x00004046
bl GetVarPointer
ldr r4, =gSaveBlock2Ptr
ldr r2, [r4]
movs r5, 0
movs r1, 0xDA
strb r1, [r2, 0x1A]
ldr r2, =0x00000302
adds r1, r2, 0
strh r1, [r0]
ldr r0, =0x00000896
bl FlagSet
ldr r1, [r4]
movs r0, 0x1
strb r0, [r1, 0x19]
ldr r0, [r4]
strb r5, [r0, 0x18]
bl sub_80BB358
pop {r4,r5}
pop {r0}
bx r0
.pool
thumb_func_end EnableNationalPokedex
thumb_func_start IsNationalPokedexEnabled
IsNationalPokedexEnabled: @ 809D42C
push {lr}
ldr r0, =gSaveBlock2Ptr
ldr r0, [r0]
ldrb r0, [r0, 0x1A]
cmp r0, 0xDA
bne _0809D468
ldr r0, =0x00004046
bl VarGet
lsls r0, 16
ldr r1, =0x03020000
cmp r0, r1
bne _0809D468
ldr r0, =0x00000896
bl FlagGet
lsls r0, 24
cmp r0, 0
beq _0809D468
movs r0, 0x1
b _0809D46A
.pool
_0809D468:
movs r0, 0
_0809D46A:
pop {r1}
bx r1
thumb_func_end IsNationalPokedexEnabled
thumb_func_start DisableMysteryGift
DisableMysteryGift: @ 809D470
push {lr}
ldr r0, =0x000008ac
bl FlagReset
pop {r0}
bx r0
.pool
thumb_func_end DisableMysteryGift
thumb_func_start EnableMysteryGift
EnableMysteryGift: @ 809D480
push {lr}
ldr r0, =0x000008ac
bl FlagSet
pop {r0}
bx r0
.pool
thumb_func_end EnableMysteryGift
thumb_func_start IsMysteryGiftEnabled
IsMysteryGiftEnabled: @ 809D490
push {lr}
ldr r0, =0x000008ac
bl FlagGet
lsls r0, 24
lsrs r0, 24
pop {r1}
bx r1
.pool
thumb_func_end IsMysteryGiftEnabled
thumb_func_start sub_809D4A4
sub_809D4A4: @ 809D4A4
push {lr}
ldr r0, =0x000008db
bl FlagReset
pop {r0}
bx r0
.pool
thumb_func_end sub_809D4A4
thumb_func_start sub_809D4B4
sub_809D4B4: @ 809D4B4
push {lr}
ldr r0, =0x000008db
bl FlagSet
pop {r0}
bx r0
.pool
thumb_func_end sub_809D4B4
thumb_func_start sub_809D4C4
sub_809D4C4: @ 809D4C4
push {lr}
ldr r0, =0x000008db
bl FlagGet
lsls r0, 24
lsrs r0, 24
pop {r1}
bx r1
.pool
thumb_func_end sub_809D4C4
thumb_func_start sub_809D4D8
sub_809D4D8: @ 809D4D8
push {lr}
movs r0, 0xF2
lsls r0, 1
bl FlagReset
ldr r0, =0x000001e5
bl FlagReset
movs r0, 0xF3
lsls r0, 1
bl FlagReset
ldr r0, =0x000001e7
bl FlagReset
movs r0, 0xF4
lsls r0, 1
bl FlagReset
ldr r0, =0x000001e9
bl FlagReset
movs r0, 0xF5
lsls r0, 1
bl FlagReset
ldr r0, =0x000001eb
bl FlagReset
movs r0, 0xF6
lsls r0, 1
bl FlagReset
ldr r0, =0x000001ed
bl FlagReset
movs r0, 0xF7
lsls r0, 1
bl FlagReset
ldr r0, =0x000001ef
bl FlagReset
movs r0, 0xF8
lsls r0, 1
bl FlagReset
ldr r0, =0x000001f1
bl FlagReset
movs r0, 0xF9
lsls r0, 1
bl FlagReset
ldr r0, =0x000001f3
bl FlagReset
pop {r0}
bx r0
.pool
thumb_func_end sub_809D4D8
thumb_func_start sub_809D570
sub_809D570: @ 809D570
push {lr}
ldr r0, =0x000040dd
movs r1, 0
bl VarSet
ldr r0, =0x000040de
movs r1, 0
bl VarSet
ldr r0, =0x000040df
movs r1, 0
bl VarSet
ldr r0, =0x000040e0
movs r1, 0
bl VarSet
ldr r0, =0x000040e1
movs r1, 0
bl VarSet
ldr r0, =0x000040e2
movs r1, 0
bl VarSet
ldr r0, =0x000040e3
movs r1, 0
bl VarSet
ldr r0, =0x000040e4
movs r1, 0
bl VarSet
pop {r0}
bx r0
.pool
thumb_func_end sub_809D570
thumb_func_start sub_809D5D8
sub_809D5D8: @ 809D5D8
push {lr}
ldr r0, =0x0000402c
movs r1, 0
bl VarSet
ldr r0, =0x000008c2
bl FlagReset
pop {r0}
bx r0
.pool
thumb_func_end sub_809D5D8
thumb_func_start sub_809D5F4
sub_809D5F4: @ 809D5F4
push {lr}
ldr r0, =0x0000402c
movs r1, 0x92
lsls r1, 4
bl VarSet
ldr r0, =0x000008c2
bl FlagSet
pop {r0}
bx r0
.pool
thumb_func_end sub_809D5F4
thumb_func_start sub_809D614
sub_809D614: @ 809D614
push {lr}
ldr r0, =0x000008c2
bl FlagGet
lsls r0, 24
cmp r0, 0
beq _0809D640
ldr r0, =0x0000402c
bl VarGet
lsls r0, 16
movs r1, 0x92
lsls r1, 20
cmp r0, r1
bne _0809D640
movs r0, 0x1
b _0809D642
.pool
_0809D640:
movs r0, 0
_0809D642:
pop {r1}
bx r1
thumb_func_end sub_809D614
thumb_func_start GetVarPointer
@ u16 *GetVarPointer(u16 varId)
GetVarPointer: @ 809D648
push {lr}
lsls r0, 16
lsrs r1, r0, 16
adds r2, r1, 0
ldr r0, =0x00003fff
cmp r1, r0
bhi _0809D660
movs r0, 0
b _0809D688
.pool
_0809D660:
lsls r0, r1, 16
cmp r0, 0
bge _0809D67C
ldr r0, =gUnknown_081DBA0C
ldr r2, =0xffff8000
adds r1, r2
lsls r1, 2
adds r1, r0
ldr r0, [r1]
b _0809D688
.pool
_0809D67C:
ldr r0, =gSaveBlock1Ptr
lsls r1, r2, 1
ldr r2, =0xffff939c
adds r1, r2
ldr r0, [r0]
adds r0, r1
_0809D688:
pop {r1}
bx r1
.pool
thumb_func_end GetVarPointer
thumb_func_start VarGet
@ u16 VarGet(u16 varId)
VarGet: @ 809D694
push {r4,lr}
lsls r0, 16
lsrs r4, r0, 16
adds r0, r4, 0
bl GetVarPointer
cmp r0, 0
beq _0809D6A8
ldrh r0, [r0]
b _0809D6AA
_0809D6A8:
adds r0, r4, 0
_0809D6AA:
pop {r4}
pop {r1}
bx r1
thumb_func_end VarGet
thumb_func_start VarSet
@ bool8 VarSet(u16 varId, u16 value)
VarSet: @ 809D6B0
push {r4,lr}
lsls r0, 16
lsrs r0, 16
lsls r1, 16
lsrs r4, r1, 16
bl GetVarPointer
cmp r0, 0
beq _0809D6C8
strh r4, [r0]
movs r0, 0x1
b _0809D6CA
_0809D6C8:
movs r0, 0
_0809D6CA:
pop {r4}
pop {r1}
bx r1
thumb_func_end VarSet
thumb_func_start VarGetFieldObjectGraphicsId
@ u8 VarGetFieldObjectGraphicsId(u8 index)
VarGetFieldObjectGraphicsId: @ 809D6D0
push {lr}
lsls r0, 24
lsrs r0, 8
ldr r1, =0x40100000
adds r0, r1
lsrs r0, 16
bl VarGet
lsls r0, 24
lsrs r0, 24
pop {r1}
bx r1
.pool
thumb_func_end VarGetFieldObjectGraphicsId
thumb_func_start GetFlagPointer
@ u8 *GetFlagPointer(u16 flagId)
GetFlagPointer: @ 809D6EC
push {lr}
lsls r1, r0, 16
lsrs r2, r1, 16
adds r3, r2, 0
cmp r2, 0
bne _0809D6FC
movs r0, 0
b _0809D72E
_0809D6FC:
ldr r0, =0x00003fff
cmp r2, r0
bhi _0809D71C
ldr r0, =gSaveBlock1Ptr
lsrs r1, 19
ldr r2, =0x00001270
adds r1, r2
ldr r0, [r0]
b _0809D72C
.pool
_0809D71C:
ldr r1, =0xffffc000
adds r0, r3, r1
cmp r0, 0
bge _0809D728
ldr r2, =0xffffc007
adds r0, r3, r2
_0809D728:
asrs r0, 3
ldr r1, =gUnknown_020375FC
_0809D72C:
adds r0, r1
_0809D72E:
pop {r1}
bx r1
.pool
thumb_func_end GetFlagPointer
thumb_func_start FlagSet
@ bool8 FlagSet(u16 flagId)
FlagSet: @ 809D740
push {r4,lr}
lsls r0, 16
lsrs r4, r0, 16
adds r0, r4, 0
bl GetFlagPointer
adds r2, r0, 0
cmp r2, 0
beq _0809D760
movs r0, 0x7
ands r0, r4
movs r1, 0x1
lsls r1, r0
ldrb r0, [r2]
orrs r1, r0
strb r1, [r2]
_0809D760:
movs r0, 0
pop {r4}
pop {r1}
bx r1
thumb_func_end FlagSet
thumb_func_start FlagReset
@ bool8 FlagReset(u16 flagId)
FlagReset: @ 809D768
push {r4,lr}
lsls r0, 16
lsrs r4, r0, 16
adds r0, r4, 0
bl GetFlagPointer
adds r2, r0, 0
cmp r2, 0
beq _0809D788
movs r0, 0x7
ands r0, r4
movs r1, 0x1
lsls r1, r0
ldrb r0, [r2]
bics r0, r1
strb r0, [r2]
_0809D788:
movs r0, 0
pop {r4}
pop {r1}
bx r1
thumb_func_end FlagReset
thumb_func_start FlagGet
@ bool8 FlagGet(u16 flagId)
FlagGet: @ 809D790
push {r4,lr}
lsls r0, 16
lsrs r4, r0, 16
adds r0, r4, 0
bl GetFlagPointer
cmp r0, 0
beq _0809D7B4
ldrb r0, [r0]
movs r1, 0x7
ands r1, r4
asrs r0, r1
movs r1, 0x1
ands r0, r1
cmp r0, 0
beq _0809D7B4
movs r0, 0x1
b _0809D7B6
_0809D7B4:
movs r0, 0
_0809D7B6:
pop {r4}
pop {r1}
bx r1
thumb_func_end FlagGet
.align 2, 0 @ Don't pad with nop.

View File

@ -184,7 +184,7 @@ sub_809C014: @ 809C014
push {r4-r6,lr}
sub sp, 0x8
adds r5, r0, 0
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
movs r1, 0
strh r1, [r0]
ldr r0, =gUnknown_03005DF0
@ -582,13 +582,13 @@ _0809C34C:
ble _0809C340
ldr r0, =gUnknown_03005DF0
strb r3, [r0]
ldr r1, =gUnknown_020375F2
ldr r1, =gScriptLastTalked
adds r0, r2, r3
lsls r0, 2
adds r0, r5
ldrb r0, [r0, 0x8]
strh r0, [r1]
ldr r0, =gUnknown_020375F4
ldr r0, =gScriptFacing
strh r6, [r0]
adds r0, r3, 0
bl GetFieldObjectScriptPointerByFieldObjectId
@ -668,13 +668,13 @@ _0809C400:
_0809C40C:
ldr r0, =gUnknown_03005DF0
strb r4, [r0]
ldr r1, =gUnknown_020375F2
ldr r1, =gScriptLastTalked
adds r0, r2, r4
lsls r0, 2
adds r0, r3
ldrb r0, [r0, 0x8]
strh r0, [r1]
ldr r0, =gUnknown_020375F4
ldr r0, =gScriptFacing
strh r7, [r0]
bl InTrainerHill
cmp r0, 0x1
@ -687,7 +687,7 @@ _0809C43C:
bl GetFieldObjectScriptPointerByFieldObjectId
_0809C442:
adds r1, r0, 0
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrb r0, [r0]
bl sub_8099188
adds r1, r0, 0
@ -764,13 +764,13 @@ _0809C4DC:
beq _0809C530
b _0809C4CC
_0809C4E2:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
lsrs r0, r2, 16
movs r3, 0xFA
lsls r3, 1
adds r0, r3
strh r0, [r1]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
strh r2, [r0]
ldrh r0, [r1]
bl FlagGet
@ -784,7 +784,7 @@ _0809C4E2:
_0809C510:
cmp r5, 0x2
bne _0809C4CC
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r2, [r0]
bl sub_80E9680
lsls r0, 24

View File

@ -206,10 +206,10 @@ sub_808A568: @ 808A568
lsls r0, 24
cmp r0, 0
beq _0808A5E2
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
adds r1, 0x7
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r2, [r0]
adds r2, 0x7
adds r0, r4, 0
@ -229,10 +229,10 @@ _0808A5B0:
lsls r0, 24
cmp r0, 0
beq _0808A5E2
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
adds r1, 0x7
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r2, [r0]
adds r2, 0x7
ldr r3, [r4, 0x8]

View File

@ -203,12 +203,12 @@ _080F96C0:
cmp r0, 0
beq _080F96F0
_080F96E6:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r5, [r0]
b _080F9718
.pool
_080F96F0:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
b _080F9718
@ -224,7 +224,7 @@ _080F96FC:
b _080F9722
.pool
_080F9714:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
_080F9718:
bl script_env_2_enable_and_set_ctx_running

View File

@ -563,7 +563,7 @@ _080F9FFE:
sub_80FA004: @ 80FA004
push {r4,lr}
bl sub_80E8BC8
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
beq _080FA0AE
@ -2063,7 +2063,7 @@ _080FACC2:
ldr r0, =gStringVar2
ldr r1, =gUnknown_085EA88B
bl StringCopy
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =0x00004054
@ -2087,7 +2087,7 @@ _080FAD14:
ldr r0, =gStringVar2
ldr r1, =gUnknown_085EA890
bl StringCopy
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =0x00004054
@ -2103,12 +2103,12 @@ _080FAD14:
b _080FAD8A
.pool
_080FAD60:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _080FAD70
.pool
_080FAD6C:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
_080FAD70:
strh r0, [r1]
@ -2131,7 +2131,7 @@ _080FAD8A:
b _080FADCE
.pool
_080FADA4:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x3
strh r0, [r1]
ldr r0, =0x00004054

View File

@ -17,7 +17,7 @@ hm_prepare_rocksmash: @ 8145DC4
movs r0, 0
b _08145DF2
_08145DD8:
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl brm_get_pokemon_selection
lsls r0, 24
lsrs r0, 24

View File

@ -3340,7 +3340,7 @@ _08175276:
thumb_func_start sub_8175280
sub_8175280: @ 8175280
push {r4,lr}
ldr r4, =gUnknown_020375E0
ldr r4, =gSpecialVar_0x8004
movs r0, 0xB4
strh r0, [r4]
ldr r0, =sub_8175364
@ -3357,7 +3357,7 @@ sub_8175280: @ 8175280
adds r0, r1
ldrh r1, [r4]
strh r1, [r0, 0xA]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
strh r2, [r0]
_081752AA:
pop {r4}
@ -3483,9 +3483,9 @@ _0817539C:
bne _081753B8
adds r0, r4, 0
bl DestroyTask
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r7, [r0]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldr r2, =0x0000ffff
adds r0, r2, 0
strh r0, [r1]
@ -3584,9 +3584,9 @@ _08175494:
b _081754B0
_081754A0:
bl sub_81752C0
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r7, [r0]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldr r2, =0x0000ffff
adds r0, r2, 0
strh r0, [r1]

View File

@ -362,7 +362,7 @@ _080D67C8:
lsrs r1, r0, 24
cmp r1, 0x1
bne _080D67E4
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
movs r0, 0x1
b _080D67F6
@ -373,7 +373,7 @@ _080D67E4:
lsrs r4, r0, 16
cmp r4, 0xB2
bls _080D67C8
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
movs r0, 0

View File

@ -1659,7 +1659,7 @@ _0800A1EA:
cmp r1, r2
bne _0800A22C
_0800A1F6:
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x3
strh r0, [r1]
ldr r3, =gUnknown_03000D5C
@ -18044,7 +18044,7 @@ BerryBlenderLinkBecomeLeader: @ 801273C
movs r0, 0
strb r0, [r1, 0xC]
strb r0, [r1, 0xD]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
strh r0, [r1]
pop {r0}
bx r0
@ -18106,7 +18106,7 @@ _080127AC:
.4byte _08012B54
.4byte _08012EB6
_08012828:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r2, [r0]
adds r3, r0, 0
cmp r2, 0x14
@ -18891,7 +18891,7 @@ _08012EE6:
bl script_env_2_enable_and_set_ctx_running
adds r0, r4, 0
bl DestroyTask
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x5
strh r0, [r1]
b _08012F50
@ -18900,7 +18900,7 @@ _08012EFC:
bl script_env_2_enable_and_set_ctx_running
adds r0, r4, 0
bl DestroyTask
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x8
strh r0, [r1]
b _08012F50
@ -19569,7 +19569,7 @@ BerryBlenderLinkJoinGroup: @ 80134A4
movs r0, 0
strb r0, [r1, 0x8]
strb r0, [r1, 0x9]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
strh r0, [r1]
pop {r0}
bx r0
@ -19622,7 +19622,7 @@ _08013510:
.4byte _08013B82
.4byte _08013B68
_08013570:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r2, [r0]
adds r3, r0, 0
cmp r2, 0x14
@ -19667,7 +19667,7 @@ _080135E0:
adds r0, r6, 0
adds r0, 0x9
ldr r2, =gUnknown_082EFB70
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
lsls r1, 2
adds r1, r2
@ -19690,7 +19690,7 @@ _0801360C:
movs r1, 0x10
bl sub_8017580
ldr r0, [r6, 0x4]
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
bl sub_8016FC0
movs r4, 0
@ -20194,13 +20194,13 @@ _08013AE4:
lsls r0, 24
cmp r0, 0
beq _08013B82
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0x6
b _08013B58
.pool
_08013B14:
bl sub_800E084
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0x5
b _08013B58
.pool
@ -20226,7 +20226,7 @@ _08013B4A:
lsls r0, 24
cmp r0, 0
beq _08013B82
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0x8
_08013B58:
strh r1, [r0]
@ -20311,7 +20311,7 @@ sub_8013BD8: @ 8013BD8
adds r1, r2
bl sub_8018404
ldr r1, =gUnknown_082F0530
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
adds r0, r1
ldrb r0, [r0]
@ -21155,7 +21155,7 @@ sub_8014304: @ 8014304
lsrs r5, 24
lsls r1, 16
lsrs r1, 16
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r1, [r0]
ldr r0, =0x00004087
bl VarSet
@ -21544,7 +21544,7 @@ _0801474C:
_08014764:
adds r0, r4, 0
bl DestroyTask
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
ldr r0, =gUnknown_02022C2C
@ -21600,7 +21600,7 @@ _080147CC:
.4byte _08014992
.4byte _0801499C
_080147F0:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
ldr r0, =gUnknown_02022C2C
@ -21744,7 +21744,7 @@ _0801494A:
bl sub_80B2AF4
cmp r0, 0
beq _08014980
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0xB
strh r1, [r0]
movs r0, 0x7
@ -21835,7 +21835,7 @@ sub_8014A00: @ 8014A00
strb r2, [r1, 0xC]
strb r2, [r1, 0xD]
strb r4, [r1, 0x18]
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r2, [r0]
pop {r4}
pop {r0}
@ -22295,7 +22295,7 @@ _08014E4E:
beq _08014EF2
adds r0, r4, 0
bl DestroyTask
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x5
strh r0, [r1]
b _08014EF2
@ -22384,7 +22384,7 @@ sub_8014EFC: @ 8014EFC
strb r2, [r1, 0x9]
subs r4, 0x15
strb r4, [r1, 0x12]
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r2, [r0]
pop {r4}
pop {r0}
@ -22725,7 +22725,7 @@ _0801526A:
adds r0, r6, 0
bl DestroyTask
bl sub_800EDD4
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x5
strh r0, [r1]
b _080152A0
@ -22773,7 +22773,7 @@ sub_80152A8: @ 80152A8
strb r2, [r1, 0x9]
subs r4, 0x15
strb r4, [r1, 0x12]
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r2, [r0]
pop {r4}
pop {r0}
@ -23097,7 +23097,7 @@ _080155C2:
adds r0, r4, 0
bl DestroyTask
bl sub_800EDD4
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x5
strh r0, [r1]
b _08015604
@ -23141,7 +23141,7 @@ UnionRoomSpecial: @ 801560C
strb r1, [r0, 0x16]
strh r1, [r0, 0x10]
strh r1, [r0, 0x12]
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
movs r0, 0xD0
movs r1, 0x1
@ -23384,7 +23384,7 @@ _08015878:
ldr r0, [r6, 0xC]
movs r1, 0x4
bl sub_80175EC
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
movs r0, 0x3
@ -23486,7 +23486,7 @@ _080159A0:
movs r0, 0x4
bl _08016876
_080159A6:
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
ldrh r0, [r4]
cmp r0, 0
beq _08015A0A
@ -25069,7 +25069,7 @@ var_800D_set_xB: @ 8016884
bl InUnionRoom
cmp r0, 0x1
bne _08016894
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0xB
strh r0, [r1]
_08016894:
@ -30491,7 +30491,7 @@ _0801940C:
b _08019922
.pool
_0801942C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x5
beq _08019436
@ -30992,7 +30992,7 @@ _080197F8:
b _08019922
.pool
_08019810:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x5
beq _0801981A
@ -39452,10 +39452,10 @@ _0801DC10:
thumb_func_start sub_801DC20
sub_801DC20: @ 801DC20
push {r4-r6,lr}
ldr r6, =gUnknown_020375F0
ldr r6, =gScriptResult
bl sub_801B044
adds r4, r0, 0
bl IsMysteryGiftEnabled
bl IsMysteryEventEnabled
cmp r0, 0
beq _0801DC3A
bl sub_801B0CC
@ -52719,7 +52719,7 @@ sub_80246D4: @ 80246D4
lsls r1, 1
adds r0, r1
bl sub_8024668
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
cmp r0, r1
bcc _080246F8
@ -52803,7 +52803,7 @@ sub_802477C: @ 802477C
movs r1, 0xFA
lsls r1, 1
adds r4, r0, r1
ldr r5, =gUnknown_020375E0
ldr r5, =gSpecialVar_0x8004
ldrh r0, [r5]
bl sub_80246AC
lsls r0, 24
@ -59190,7 +59190,7 @@ sub_8027A48: @ 8027A48
sub_8027A5C: @ 8027A5C
push {r4-r6,lr}
movs r5, 0
ldr r6, =gUnknown_020375F0
ldr r6, =gScriptResult
_08027A62:
movs r0, 0x64
adds r1, r5, 0
@ -59215,7 +59215,7 @@ _08027A94:
adds r5, 0x1
cmp r5, 0x5
ble _08027A62
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
_08027AA0:
@ -68862,7 +68862,7 @@ _0802C924:
bl sub_802C908
cmp r0, 0
beq _0802C95C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _0802C966
.pool
@ -68870,7 +68870,7 @@ _0802C95C:
adds r5, 0x1
cmp r5, 0x5
ble _0802C924
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
_0802C966:
strh r0, [r1]

View File

@ -64,7 +64,7 @@ _081775B4:
sub_81775CC: @ 81775CC
push {lr}
bl sub_817783C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
strh r0, [r1]
pop {r0}
bx r0
@ -79,7 +79,7 @@ sub_81775E0: @ 81775E0
mov r5, r8
push {r5-r7}
sub sp, 0x8
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0
strh r0, [r1]
movs r0, 0
@ -107,14 +107,14 @@ _081775FC:
movs r1, 0x1
bl GetMonData
adds r1, r0, 0
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
lsls r1, 16
lsrs r1, 16
bl sub_817778C
lsls r0, 24
lsrs r0, 24
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r2, [r1]
cmp r0, r2
bls _0817764E
@ -174,14 +174,14 @@ _0817766A:
movs r1, 0x1
bl pokemon_getattr_encrypted
adds r1, r0, 0
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
lsls r1, 16
lsrs r1, 16
bl sub_817778C
lsls r0, 24
lsrs r0, 24
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r2, [r1]
cmp r0, r2
bls _081776D2
@ -202,11 +202,11 @@ _081776D2:
lsrs r7, r0, 16
cmp r7, 0xD
bls _0817765E
ldr r3, =gUnknown_020375E0
ldr r3, =gSpecialVar_0x8004
ldrh r0, [r3]
cmp r0, 0
beq _0817776E
ldr r2, =gUnknown_020375E2
ldr r2, =gSpecialVar_0x8005
ldr r1, =gUnknown_085E7080
subs r0, 0x1
lsls r0, 1
@ -216,7 +216,7 @@ _081776D2:
ldr r2, [sp]
cmp r2, 0xE
bne _0817773C
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
movs r0, 0
strh r0, [r1]
movs r0, 0x64
@ -230,7 +230,7 @@ _081776D2:
b _08177768
.pool
_0817773C:
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
movs r0, 0x1
strh r0, [r1]
ldr r2, =gUnknown_03005D94

View File

@ -298,7 +298,7 @@ _0802F968:
b _0802F9D0
_0802F972:
strh r0, [r4]
bl sub_809D4C4
bl IsMysteryGiftEnabled
cmp r0, 0
beq _0802F982
ldrh r0, [r4]
@ -330,7 +330,7 @@ _0802F9A4:
str r1, [r0]
movs r0, 0x1
strh r0, [r4]
bl sub_809D4C4
bl IsMysteryGiftEnabled
cmp r0, 0x1
bne _0802F9FE
ldrh r0, [r4]

View File

@ -256,7 +256,7 @@ sub_8098574: @ 8098574
lsls r0, 2
ldr r1, =gUnknown_02037350
adds r0, r1
ldr r1, =gUnknown_020375F4
ldr r1, =gScriptFacing
ldrb r1, [r1]
bl FieldObjectFaceOppositeDirection
pop {r0}

View File

@ -157,7 +157,7 @@ sub_81201C8: @ 81201C8
thumb_func_start sub_81201DC
sub_81201DC: @ 81201DC
push {r4,lr}
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl sub_81201C8
lsls r0, 24
lsrs r0, 24
@ -170,7 +170,7 @@ sub_81201DC: @ 81201DC
thumb_func_start sub_81201F4
sub_81201F4: @ 81201F4
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r0, =gSaveBlock1Ptr
ldr r0, [r0]
ldr r2, =0x00002e51
@ -238,7 +238,7 @@ sub_8120280: @ 8120280
push {r4-r7,lr}
ldr r0, =gSaveBlock1Ptr
ldr r1, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
ldr r2, =0x00002e36
adds r5, r1, r2
@ -336,7 +336,7 @@ _0812031E:
thumb_func_start sub_8120340
sub_8120340: @ 8120340
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
bl sub_81206C0
bl script_env_2_set_ctx_paused
@ -347,7 +347,7 @@ sub_8120340: @ 8120340
thumb_func_start sub_8120358
sub_8120358: @ 8120358
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r0, =gSaveBlock1Ptr
ldr r0, [r0]
ldr r2, =0x00002e28
@ -379,14 +379,14 @@ sub_812038C: @ 812038C
ldr r0, =0x0000ffff
cmp r1, r0
bne _081203AC
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _081203B6
.pool
_081203AC:
ldr r0, =gStringVar1
bl CopyEasyChatWord
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_081203B6:
strh r0, [r1]
@ -405,14 +405,14 @@ sub_81203C4: @ 81203C4
ldrb r0, [r2, 0x1]
cmp r0, 0xA
bne _081203EC
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
strb r0, [r2, 0x1]
b _081203F2
.pool
_081203EC:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
_081203F2:
@ -503,7 +503,7 @@ _081204C4:
adds r0, 0x1
_081204C8:
strb r0, [r5, 0x1]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
pop {r4-r6}
@ -850,7 +850,7 @@ _08120764:
_0812077C:
ldr r0, =gSaveBlock1Ptr
ldr r2, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
ldr r3, =0x00002e36
adds r1, r2, r3
@ -2382,13 +2382,13 @@ _0812132C:
cmp r4, r0
bne _0812135C
_0812134E:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
b _08121364
.pool
_0812135C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r5, [r0]
ldr r0, =gUnknown_03001178
strb r4, [r0]

View File

@ -108,7 +108,7 @@ sub_80E51B0: @ 80E51B0
movs r1, 0x92
lsls r1, 3
adds r0, r1
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldrh r1, [r1]
bl IsEnoughMoney
lsls r0, 24
@ -126,7 +126,7 @@ sub_80E51D4: @ 80E51D4
movs r1, 0x92
lsls r1, 3
adds r0, r1
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldrh r1, [r1]
bl subtract_money
pop {r0}

View File

@ -780,7 +780,7 @@ sub_8153DD4: @ 8153DD4
sub_8153E1C: @ 8153E1C
push {r4,lr}
adds r4, r0, 0
bl sub_809D5F4
bl EnableResetRTC
ldr r0, =gStringVar4
ldr r1, =gUnknown_085ECAD8
bl StringExpandPlaceholders

View File

@ -2133,11 +2133,11 @@ _08068BE0:
DoScriptedWildBattle: @ 8068C18
push {r4-r7,lr}
sub sp, 0x14
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r5, [r0]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r4, [r0]
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r6, [r0]
bl zero_enemy_party_data
ldr r7, =gEnemyParty

View File

@ -2968,9 +2968,9 @@ _0806B4B2:
mov r1, r8
movs r2, 0x50
bl memcpy_pokemon
ldr r0, =gUnknown_020375F6
ldr r0, =gSpecialVar_0x8012
strh r5, [r0]
ldr r0, =gUnknown_020375F8
ldr r0, =gSpecialVar_0x8013
strh r6, [r0]
bl get_unknown_box_id
lsls r0, 16

View File

@ -547,7 +547,7 @@ _080E71A0:
ldr r0, =0x00005110
bl Alloc
str r0, [r4]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrb r0, [r0]
bl sub_8009628
movs r0, 0x80

View File

@ -1260,7 +1260,7 @@ _0809F340:
ldr r0, =0x00004040
ldrh r1, [r4]
bl VarSet
bl sub_809D5D8
bl DisableResetRTC
ldr r0, =gUnknown_085ECA4F
bl sub_809F0C0
movs r0, 0x4

View File

@ -31,7 +31,7 @@ npc_before_player_of_type: @ 8135424
ldrb r0, [r2, 0x5]
cmp r0, r5
bne _08135470
ldr r1, =gUnknown_020375F2
ldr r1, =gScriptLastTalked
ldrb r0, [r2, 0x8]
strh r0, [r1]
movs r0, 0x1
@ -262,7 +262,7 @@ sub_8135654: @ 8135654
lsls r0, 24
cmp r0, 0
beq _0813568C
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl brm_get_pokemon_selection
lsls r0, 24
lsrs r0, 24
@ -2136,7 +2136,7 @@ _081366B6:
_081366D0:
movs r0, 0x5
bl PlaySE
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldr r2, =0x0000ffff
adds r1, r2, 0
strh r1, [r0]
@ -2853,7 +2853,7 @@ sub_8136D2C: @ 8136D2C
adds r1, r3
ldr r1, [r1]
bl StringCopy
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldrh r0, [r5]
strh r0, [r1]
lsls r0, 24
@ -2875,7 +2875,7 @@ sub_8136D90: @ 8136D90
adds r4, r0, 0
lsls r4, 24
lsrs r4, 24
ldr r6, =gUnknown_020375E0
ldr r6, =gSpecialVar_0x8004
ldr r0, =gSaveBlock1Ptr
ldr r5, =gUnknown_0203CE7C
ldrh r1, [r5]
@ -2888,7 +2888,7 @@ sub_8136D90: @ 8136D90
lsls r0, 24
lsrs r0, 24
strh r0, [r6]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldrh r0, [r5]
strh r0, [r1]
lsls r0, 24
@ -3333,7 +3333,7 @@ sub_81370FC: @ 81370FC
lsls r0, 24
cmp r0, 0
beq _08137134
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl brm_get_pokemon_selection
lsls r0, 24
lsrs r0, 24
@ -4410,13 +4410,13 @@ sub_8137A20: @ 8137A20
thumb_func_start sub_8137A4C
sub_8137A4C: @ 8137A4C
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _08137A70
movs r0, 0
bl sub_80C0844
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
strh r0, [r1]
movs r0, 0x1
bl sub_80C0844
@ -4425,12 +4425,12 @@ sub_8137A4C: @ 8137A4C
_08137A70:
movs r0, 0
bl pokedex_count
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
strh r0, [r1]
movs r0, 0x1
bl pokedex_count
_08137A80:
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
strh r0, [r1]
bl IsNationalPokedexEnabled
lsls r0, 16
@ -4626,7 +4626,7 @@ _08137C06:
thumb_func_start sub_8137C10
sub_8137C10: @ 8137C10
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
bl sub_8137A98
bl box_related_two__2
@ -4899,7 +4899,7 @@ _08137E58:
lsls r0, 24
lsrs r4, r0, 24
_08137E5C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r4, [r0]
pop {r4-r7}
pop {r0}
@ -5625,7 +5625,7 @@ _0813840A:
lsls r0, 24
lsrs r6, r0, 24
_08138410:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r6, r0
bcc _08138358
@ -5742,7 +5742,7 @@ sub_81384F0: @ 81384F0
movs r4, 0
ldr r5, =gUnknown_085B2B68
_081384F6:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r4, r0
bne _0813851C
@ -6174,7 +6174,7 @@ sub_8138910: @ 8138910
ldrb r0, [r0]
cmp r0, r2
bne _0813896C
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
ldr r2, =gUnknown_085B2B7E
lsls r1, 1
@ -6364,7 +6364,7 @@ _08138A92:
thumb_func_start sub_8138AA4
sub_8138AA4: @ 8138AA4
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
ldr r1, =gUnknown_085B2B7E
ldrh r1, [r1, 0x8]
@ -6386,12 +6386,12 @@ sub_8138AC0: @ 8138AC0
thumb_func_start sub_8138AD0
sub_8138AD0: @ 8138AD0
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r0, =gSaveBlock1Ptr
ldr r2, [r0]
ldrh r0, [r2]
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldrh r0, [r2, 0x2]
strh r0, [r1]
bx lr
@ -6474,7 +6474,7 @@ sub_8138B80: @ 8138B80
sub_8138B8C: @ 8138B8C
push {lr}
sub sp, 0x4
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
beq _08138BB0
@ -6506,7 +6506,7 @@ _08138BC2:
thumb_func_start sub_8138BC8
sub_8138BC8: @ 8138BC8
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
bl FlagSet
pop {r0}
@ -6753,7 +6753,7 @@ sub_8138D88: @ 8138D88
lsls r0, 16
cmp r0, 0
beq _08138DC4
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _08138DAC
@ -6773,7 +6773,7 @@ _08138DB8:
b _08138DE6
.pool
_08138DC4:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _08138DD4
@ -6857,7 +6857,7 @@ _08138E5A:
_08138E5C:
movs r5, 0xFF
_08138E5E:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _08138E70
@ -7036,7 +7036,7 @@ sub_8138FAC: @ 8138FAC
thumb_func_start sub_8138FD4
sub_8138FD4: @ 8138FD4
push {lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r0, =0x000001f5
strh r0, [r1]
bl FlagSet
@ -7048,7 +7048,7 @@ sub_8138FD4: @ 8138FD4
thumb_func_start sub_8138FEC
sub_8138FEC: @ 8138FEC
push {lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r0, =0x000001f5
strh r0, [r1]
bl FlagReset
@ -7214,7 +7214,7 @@ _081390E6:
cmp r0, 0xC
bne _0813913C
_08139128:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _0813914A
.pool
@ -7224,7 +7224,7 @@ _0813913C:
lsrs r5, r0, 24
cmp r5, 0x5
bls _081390E6
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
_0813914A:
strh r0, [r1]
@ -7368,7 +7368,7 @@ sub_8139248: @ 8139248
ldrh r2, [r2]
adds r1, r2
ldr r2, =gUnknown_085B2B88
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
adds r0, r2
ldrb r0, [r0]
@ -7398,7 +7398,7 @@ _08139296:
thumb_func_start sub_81392AC
sub_81392AC: @ 81392AC
push {lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r0, =0x00000213
strh r0, [r1]
bl FlagGet
@ -7418,7 +7418,7 @@ _081392CE:
thumb_func_start sub_81392D4
sub_81392D4: @ 81392D4
push {lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x85
lsls r0, 2
strh r0, [r1]
@ -7439,7 +7439,7 @@ _081392F2:
thumb_func_start sub_81392F8
sub_81392F8: @ 81392F8
push {lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r0, =0x00000215
strh r0, [r1]
bl FlagGet
@ -7459,7 +7459,7 @@ _0813931A:
thumb_func_start sub_8139320
sub_8139320: @ 8139320
push {lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r0, =0x00000216
strh r0, [r1]
bl FlagGet
@ -7751,18 +7751,18 @@ sub_8139560: @ 8139560
adds r1, r0
lsls r1, 3
adds r1, r2
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
movs r2, 0
strh r0, [r1, 0x8]
strh r2, [r1, 0xA]
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
strh r0, [r1, 0xC]
ldr r0, =gUnknown_020375E6
ldr r0, =gSpecialVar_0x8007
ldrh r0, [r0]
strh r0, [r1, 0xE]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
strh r0, [r1, 0x10]
movs r0, 0
@ -7931,7 +7931,7 @@ _081396D8:
thumb_func_start sub_81396E0
sub_81396E0: @ 81396E0
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1
@ -8006,7 +8006,7 @@ sub_8139754: @ 8139754
thumb_func_start sub_8139770
sub_8139770: @ 8139770
push {r4-r6,lr}
ldr r6, =gUnknown_020375E0
ldr r6, =gSpecialVar_0x8004
ldrh r0, [r6]
movs r5, 0x64
muls r0, r5
@ -8044,7 +8044,7 @@ _081397BE:
thumb_func_start sub_81397C4
sub_81397C4: @ 81397C4
push {r4,r5,lr}
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldrh r1, [r2]
ldr r0, =0x0000270f
cmp r1, r0
@ -8123,7 +8123,7 @@ _08139862:
thumb_func_start sub_813986C
sub_813986C: @ 813986C
push {lr}
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x4
bhi _081398B8
@ -8169,7 +8169,7 @@ _081398BA:
thumb_func_start sub_81398C0
sub_81398C0: @ 81398C0
push {r4,lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r2, =0xfffffedf
adds r0, r2, 0
ldrh r2, [r1]
@ -8407,8 +8407,8 @@ sub_8139A78: @ 8139A78
strh r3, [r4, 0x4]
movs r6, 0x1
strh r6, [r4, 0x8]
ldr r0, =gUnknown_020375E2
ldr r1, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8005
ldr r1, =gSpecialVar_0x8006
ldrh r2, [r0]
ldrh r0, [r1]
cmp r2, r0
@ -8532,7 +8532,7 @@ sub_8139B60: @ 8139B60
adds r2, r4, 0
bl Print
ldr r6, =gUnknown_085B2BB4
ldr r4, =gUnknown_020375E2
ldr r4, =gSpecialVar_0x8005
ldrh r0, [r4]
lsls r0, 2
adds r0, r6
@ -8769,7 +8769,7 @@ _08139D7C:
sub_8139D98: @ 8139D98
push {r4-r7,lr}
sub sp, 0x18
ldr r6, =gUnknown_020375E0
ldr r6, =gSpecialVar_0x8004
ldrh r0, [r6]
movs r5, 0x64
muls r0, r5
@ -8808,7 +8808,7 @@ sub_8139D98: @ 8139D98
movs r1, 0x2C
bl GetMonData
str r0, [sp, 0x14]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0
strh r0, [r1]
movs r4, 0
@ -8825,10 +8825,10 @@ _08139E00:
lsrs r4, r0, 24
cmp r4, 0x5
bls _08139E00
ldr r2, =gUnknown_020375E4
ldr r2, =gSpecialVar_0x8006
movs r0, 0
strh r0, [r2]
ldr r1, =gUnknown_020375E6
ldr r1, =gSpecialVar_0x8007
ldr r0, [sp]
strh r0, [r1]
movs r4, 0x1
@ -9123,10 +9123,10 @@ sub_813A080: @ 813A080
lsls r0, 24
cmp r0, 0
bne _0813A0D8
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x5
strh r0, [r1]
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
movs r0, 0x4
strh r0, [r1]
b _0813A110
@ -9138,8 +9138,8 @@ _0813A0D0:
b _0813A10E
_0813A0D8:
movs r3, 0
ldr r6, =gUnknown_020375E2
ldr r7, =gUnknown_020375E4
ldr r6, =gSpecialVar_0x8005
ldr r7, =gSpecialVar_0x8006
lsls r1, r4, 1
lsls r2, r5, 2
ldr r4, =gUnknown_085B2CDC
@ -9187,7 +9187,7 @@ sub_813A128: @ 813A128
lsls r0, 3
ldr r1, =gTasks
adds r3, r0, r1
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r0, [r1]
strh r0, [r3, 0x1E]
ldrh r0, [r1]
@ -9381,7 +9381,7 @@ _0813A2BE:
strh r4, [r3, 0x26]
b _0813A2D2
_0813A2C6:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x7F
strh r0, [r1]
adds r0, r4, 0
@ -9439,7 +9439,7 @@ sub_813A2DC: @ 813A2DC
ldr r5, =gUnknown_085B2CF0
_0813A33A:
lsls r1, r4, 2
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
lsls r0, 6
adds r1, r0
@ -9649,7 +9649,7 @@ sub_813A4EC: @ 813A4EC
b _0813A566
.pool
_0813A51C:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x7F
strh r0, [r1]
movs r0, 0x5
@ -9657,7 +9657,7 @@ _0813A51C:
b _0813A54C
.pool
_0813A530:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r4, [r0]
movs r0, 0x5
bl PlaySE
@ -9978,7 +9978,7 @@ _0813A7A8:
thumb_func_start sub_813A7B8
sub_813A7B8: @ 813A7B8
push {lr}
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r0, [r1]
cmp r0, 0x5
bls _0813A7C6
@ -10198,7 +10198,7 @@ sub_813A9A4: @ 813A9A4
ldr r0, [r0]
ldr r2, =0x00000eb8
adds r1, r0, r2
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r2, [r1]
ldrh r0, [r0]
cmp r2, r0
@ -10222,7 +10222,7 @@ sub_813A9D0: @ 813A9D0
ldr r1, =0x00000eb8
adds r2, r0, r1
ldrh r1, [r2]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
adds r1, r0
ldr r0, =0x0000270f
@ -10533,13 +10533,13 @@ _0813AC70:
thumb_func_start sub_813AC7C
sub_813AC7C: @ 813AC7C
push {lr}
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0
beq _0813ACB8
ldr r0, =gStringVar1
ldr r2, =gUnknown_085B320C
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
lsls r1, 1
adds r1, r2
@ -10554,7 +10554,7 @@ sub_813AC7C: @ 813AC7C
_0813ACB8:
ldr r0, =gStringVar1
ldr r2, =gUnknown_085B31F8
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
lsls r1, 1
adds r1, r2
@ -10583,7 +10583,7 @@ sub_813ACE8: @ 813ACE8
lsrs r0, 24
cmp r0, 0x1
bhi _0813AD20
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
cmp r0, 0
bne _0813AD18
@ -10728,7 +10728,7 @@ _0813AE1E:
ldrh r2, [r1]
adds r2, r5
lsls r2, 2
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
lsls r1, 6
adds r2, r1
@ -10789,7 +10789,7 @@ _0813AE90:
sub_813AEB4: @ 813AEB4
push {r4,lr}
movs r1, 0
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
strh r1, [r0]
ldr r0, =0x0000400e
bl VarGet
@ -10822,7 +10822,7 @@ _0813AEE2:
b _0813AF38
.pool
_0813AF0C:
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
strh r2, [r0]
b _0813AF38
.pool
@ -10930,7 +10930,7 @@ task_deoxys_sound: @ 813AFDC
lsrs r0, 24
cmp r0, 0x1
bne _0813B004
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x3
b _0813B06A
.pool
@ -10961,7 +10961,7 @@ _0813B004:
mov r0, r8
movs r1, 0
bl VarSet
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
b _0813B070
@ -10971,7 +10971,7 @@ _0813B05C:
bne _0813B080
ldr r0, =0x000008d4
bl FlagSet
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
_0813B06A:
strh r0, [r1]
@ -10991,7 +10991,7 @@ _0813B080:
ldr r0, =0x00004035
adds r1, r5, 0
bl VarSet
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
adds r0, r7, 0
@ -11512,7 +11512,7 @@ _0813B4D8:
thumb_func_start sub_813B4E0
sub_813B4E0: @ 813B4E0
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
bl sub_81D15CC
cmp r0, 0
@ -11649,7 +11649,7 @@ _0813B5FE:
bl bitmask_all_link_players_but_self
lsls r0, 24
lsrs r0, 24
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r2, 0x2
bl link_0800A448
b _0813B708
@ -11668,7 +11668,7 @@ _0813B622:
beq _0813B62E
b _0813B790
_0813B62E:
ldr r5, =gUnknown_020375E2
ldr r5, =gSpecialVar_0x8005
ldr r0, =gUnknown_020223C4
movs r1, 0x80
lsls r1, 1
@ -11677,28 +11677,28 @@ _0813B62E:
strh r0, [r5]
movs r0, 0x1
bl sub_800A5EC
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0x1
bne _0813B668
ldrh r1, [r5]
cmp r1, 0x1
bne _0813B668
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
b _0813B790
.pool
_0813B668:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
adds r2, r0, 0
cmp r1, 0
bne _0813B68C
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0x1
bne _0813B68C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
b _0813B6AC
.pool
@ -11706,16 +11706,16 @@ _0813B68C:
ldrh r0, [r2]
cmp r0, 0x1
bne _0813B6A8
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0
bne _0813B6A8
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x3
b _0813B6AC
.pool
_0813B6A8:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
_0813B6AC:
strh r0, [r1]
@ -11736,7 +11736,7 @@ _0813B6C2:
bl bitmask_all_link_players_but_self
lsls r0, 24
lsrs r0, 24
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r2, 0x2
bl link_0800A448
b _0813B708
@ -11751,7 +11751,7 @@ _0813B6E4:
lsls r0, 24
cmp r0, 0
beq _0813B790
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r0, =gUnknown_020223C4
ldrh r0, [r0]
strh r0, [r1]
@ -11773,7 +11773,7 @@ _0813B728:
lsls r0, 24
cmp r0, 0
bne _0813B74C
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x2
bne _0813B790
@ -11782,7 +11782,7 @@ _0813B728:
b _0813B790
.pool
_0813B74C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x3
bne _0813B790
@ -11846,7 +11846,7 @@ _0813B7C6:
thumb_func_start sub_813B7D8
sub_813B7D8: @ 813B7D8
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _0813B7F8
@ -11896,7 +11896,7 @@ sub_813B824: @ 813B824
strh r0, [r4, 0x2]
movs r0, 0x2
ldrsh r1, [r4, r0]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r1, r0
bne _0813B858
@ -11910,7 +11910,7 @@ sub_813B824: @ 813B824
_0813B858:
movs r0, 0
ldrsh r1, [r4, r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
subs r0, 0x1
cmp r1, r0
@ -12041,8 +12041,8 @@ _0813B94E:
thumb_func_start sub_813B968
sub_813B968: @ 813B968
push {r4,r5,lr}
ldr r5, =gUnknown_020375F0
ldr r0, =gUnknown_020375E0
ldr r5, =gScriptResult
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
movs r1, 0x7
bl __udivsi3
@ -12529,7 +12529,7 @@ sub_813BD60: @ 813BD60
ldr r1, =0x0000141e
adds r0, r1
ldrh r0, [r0]
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
asrs r0, r1
movs r1, 0x1
@ -12567,7 +12567,7 @@ sub_813BDB4: @ 813BDB4
push {lr}
movs r3, 0
movs r2, 0
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
subs r0, 0x8
cmp r0, 0x7
@ -12759,7 +12759,7 @@ sub_813BF60: @ 813BF60
thumb_func_start sub_813BF7C
sub_813BF7C: @ 813BF7C
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
bl sub_813BADC
lsls r0, 24

View File

@ -6238,7 +6238,7 @@ sub_8038420: @ 8038420
lsls r0, 24
cmp r0, 0
beq _08038482
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldr r1, =gBattleOutcome
movs r0, 0x5
strb r0, [r1]
@ -15918,7 +15918,7 @@ sub_803D8C0: @ 803D8C0
ands r0, r2
cmp r0, 0
beq _0803D920
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r4, =gBattleOutcome
ldrb r0, [r4]
strh r0, [r1]
@ -16569,7 +16569,7 @@ _0803DF8C:
cmp r0, 0
bne _0803DFEC
_0803DF9E:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r5, =gBattleOutcome
ldrb r0, [r5]
strh r0, [r1]

View File

@ -2613,7 +2613,7 @@ sub_80B0534: @ 80B0534
lsls r1, 3
ldr r0, =gTasks + 0x8
adds r1, r0
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
bne _080B0568

View File

@ -155,7 +155,7 @@ _080C7092:
thumb_func_start sub_80C70AC
sub_80C70AC: @ 80C70AC
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
bl sub_80C7050
lsls r0, 24

View File

@ -15164,7 +15164,7 @@ sub_81606A0: @ 81606A0
lsls r0, 1
bl AllocZeroed
str r0, [r6]
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
adds r0, 0x44
movs r5, 0
@ -15221,12 +15221,12 @@ sub_8160740: @ 8160740
movs r1, 0x1C
strb r1, [r0]
ldr r0, [r5]
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
adds r0, 0x44
strb r1, [r0]
ldr r0, [r5]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldrh r1, [r1]
adds r0, 0x45
strb r1, [r0]
@ -15470,7 +15470,7 @@ _081609A8:
beq _08160A04
ldr r0, =gUnknown_085EF8E4
bl sub_816084C
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x1
strh r0, [r1]
ldr r1, [r5]
@ -15529,7 +15529,7 @@ _08160A64:
asrs r1, r0, 24
cmp r1, 0
bne _08160A7C
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r1, [r0]
b _08160E82
.pool
@ -15915,7 +15915,7 @@ _08160D6C:
ldr r1, [r7]
movs r0, 0x1E
strb r0, [r1]
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x1
strh r0, [r1]
b _08160E8A
@ -17694,7 +17694,7 @@ sub_8161CBC: @ 8161CBC
push {lr}
bl sub_8161B34
bl sub_8161B60
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
bl sub_8161B94
pop {r0}
@ -18010,7 +18010,7 @@ sub_8161F64: @ 8161F64
sub_8161F74: @ 8161F74
push {lr}
ldr r1, =gUnknown_085DF96C
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
lsls r0, 2
adds r0, r1
@ -18116,7 +18116,7 @@ sub_8162054: @ 8162054
bl VarGet
lsls r0, 16
lsrs r1, r0, 16
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0x1
beq _08162094
@ -18133,12 +18133,12 @@ _08162094:
lsls r1, 24
lsrs r1, 24
bl sub_8164FCC
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
strh r0, [r1]
b _081620E8
.pool
_081620A8:
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
ldr r2, [r5]
ldr r0, =0x00000cdc
adds r2, r0
@ -18186,7 +18186,7 @@ sub_81620F4: @ 81620F4
bl VarGet
lsls r0, 16
lsrs r4, r0, 16
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0x1
beq _08162134
@ -18207,13 +18207,13 @@ _08162134:
lsls r1, 4
adds r2, r1
adds r2, r0
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
strh r0, [r2]
b _081621B4
.pool
_08162150:
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
cmp r0, 0
beq _08162180
@ -18295,7 +18295,7 @@ _081621EE:
adds r0, 0x1
strh r0, [r1]
bl sub_8163E90
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r0, [r5]
adds r0, r4
ldrh r0, [r0]
@ -21031,7 +21031,7 @@ _0816390A:
sub_8163914: @ 8163914
push {lr}
bl sub_8165C40
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0
beq _08163930
@ -21211,7 +21211,7 @@ sub_8163AC4: @ 8163AC4
push {r4-r6,lr}
sub sp, 0x4
ldr r0, =gBattleScripting
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldrh r1, [r2]
adds r0, 0x26
strb r1, [r0]
@ -21784,7 +21784,7 @@ sub_8164040: @ 8164040
bl __udivsi3
lsls r0, 16
lsrs r1, r0, 16
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0
bne _0816408E
@ -21800,7 +21800,7 @@ _0816408A:
_0816408E:
ldr r4, =gSaveBlock2Ptr
ldr r0, [r4]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldrh r1, [r1]
ldr r2, =0x00000ca8
adds r0, r2
@ -22582,7 +22582,7 @@ _081646FC:
ldr r0, =gSaveBlock2Ptr
ldr r3, [r0]
ldr r1, =gUnknown_03006298
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
adds r0, 0x1
lsls r0, 1
@ -22611,7 +22611,7 @@ _08164750:
ldr r4, =gSaveBlock2Ptr
ldr r3, [r4]
ldr r1, =gUnknown_03006298
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
subs r0, 0x1
lsls r0, 1
@ -22715,7 +22715,7 @@ sub_8164828: @ 8164828
lsls r0, 16
lsrs r0, 16
mov r8, r0
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrh r0, [r0]
subs r5, r0, 0x2
ldr r0, =gSaveBlock2Ptr
@ -22748,7 +22748,7 @@ _08164884:
cmp r1, r0
bne _0816487C
_0816489A:
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
cmp r0, 0x4
bls _081648A4
@ -23011,7 +23011,7 @@ _08164AF8:
_08164B04:
adds r0, 0x4
adds r1, r0
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
ldr r1, [r1]
lsls r0, 2
@ -23035,7 +23035,7 @@ _08164B28:
ldr r1, =gUnknown_085DD690
lsrs r0, 25
adds r0, r1
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldrh r1, [r1]
ldr r0, [r0]
lsls r1, 2
@ -23077,7 +23077,7 @@ sub_8164B74: @ 8164B74
adds r0, r2
ldrh r6, [r0]
bl link_get_multiplayer_id
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x6
bls _08164BAC
@ -23127,7 +23127,7 @@ _08164C18:
mov r1, sp
movs r2, 0x4
bl link_0800A448
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _08164DB4
.pool
@ -23205,7 +23205,7 @@ _08164CB0:
mov r4, r8
cmp r4, 0xD
ble _08164C68
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
b _08164DB4
.pool
@ -23223,7 +23223,7 @@ _08164CE0:
adds r1, r3
movs r2, 0x28
bl link_0800A448
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x3
b _08164DB4
.pool
@ -23269,13 +23269,13 @@ _08164D14:
ldrb r0, [r0]
cmp r0, 0
bne _08164DB0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x4
b _08164DB4
.pool
_08164D98:
bl sub_800AC34
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x5
b _08164DB4
.pool
@ -23285,7 +23285,7 @@ _08164DA8:
cmp r0, 0
bne _08164DB6
_08164DB0:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x6
_08164DB4:
strh r0, [r1]
@ -23626,7 +23626,7 @@ sub_816502C: @ 816502C
movs r0, 0x45
mov r10, r0
_0816506A:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
mov r9, r1
movs r0, 0
strh r0, [r1]
@ -23682,7 +23682,7 @@ _081650D4:
cmp r6, r8
blt _0816508C
_081650DC:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
beq _08165132
@ -23902,7 +23902,7 @@ _08165294:
thumb_func_start sub_81652B4
sub_81652B4: @ 81652B4
push {r4-r6,lr}
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
movs r0, 0
strh r0, [r2]
ldr r1, =gSaveBlock2Ptr
@ -23944,7 +23944,7 @@ _081652F2:
ldr r3, =0x00000bec
adds r0, r1, r3
bl sub_816534C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
_08165316:

File diff suppressed because it is too large Load Diff

View File

@ -5660,7 +5660,7 @@ _081C181C:
adds r0, r1
ldrb r0, [r0]
strb r0, [r2]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
ldrb r0, [r2]
strh r0, [r1]
adds r0, r5, 0
@ -5684,7 +5684,7 @@ _081C1876:
ldr r1, =gUnknown_0203CF21
movs r0, 0x4
strb r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x4
strh r0, [r1]
adds r0, r5, 0
@ -15227,7 +15227,7 @@ _081C6AF8:
bl Free
adds r0, r5, 0
bl Free
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
b _081C6BC6
@ -15255,7 +15255,7 @@ _081C6B9C:
lsrs r6, r0, 24
cmp r6, 0x2
bls _081C6B9C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
adds r0, r7, 0
@ -37768,7 +37768,7 @@ _081D1C18:
thumb_func_start sub_81D1C20
sub_81D1C20: @ 81D1C20
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
bl sub_81D15CC
cmp r0, 0
@ -43691,7 +43691,7 @@ sub_81D4A90: @ 81D4A90
negs r0, r0
ands r0, r1
strb r0, [r5, 0x1]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r4, [r0]
cmp r4, 0x1
bne _081D4AF8
@ -43742,7 +43742,7 @@ _081D4AF8:
movs r2, 0x80
orrs r1, r2
strb r1, [r0]
ldr r0, =gUnknown_020375F4
ldr r0, =gScriptFacing
ldrh r0, [r0]
cmp r0, 0x2
beq _081D4B3A
@ -44867,7 +44867,7 @@ sp194_trainer_tower: @ 81D5494
push {lr}
bl sub_81D56B0
ldr r1, =gUnknown_0862A618
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
lsls r0, 2
adds r0, r1
@ -45382,7 +45382,7 @@ _081D5854:
sub_81D58D8: @ 81D58D8
push {lr}
bl sub_80008E8
ldr r3, =gUnknown_020375F0
ldr r3, =gScriptResult
movs r0, 0
strh r0, [r3]
ldr r0, =gSaveBlock1Ptr
@ -45440,7 +45440,7 @@ sub_81D5924: @ 81D5924
cmp r4, 0
beq _081D596C
_081D5952:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
strh r0, [r1]
b _081D59C0
@ -45472,12 +45472,12 @@ _081D596C:
negs r0, r0
ands r0, r2
strb r0, [r1]
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r4, [r0]
b _081D59C0
.pool
_081D59BC:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r6, [r0]
_081D59C0:
pop {r3}
@ -45503,7 +45503,7 @@ sub_81D59D0: @ 81D59D0
lsrs r5, r0, 24
cmp r5, 0
beq _081D59FC
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r3, [r0]
b _081D5A4E
.pool
@ -45532,12 +45532,12 @@ _081D59FC:
adds r2, r0
ldr r0, [r2]
str r0, [r1]
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r5, [r0]
b _081D5A4E
.pool
_081D5A48:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
_081D5A4E:
@ -45615,7 +45615,7 @@ sub_81D5AD0: @ 81D5AD0
negs r0, r0
ands r0, r1
strb r0, [r2]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _081D5B20
.pool
@ -45628,12 +45628,12 @@ _081D5B00:
negs r0, r0
ands r0, r1
strb r0, [r2]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _081D5B20
.pool
_081D5B1C:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
_081D5B20:
strh r0, [r1]
@ -45712,12 +45712,12 @@ sub_81D5BBC: @ 81D5BBC
movs r2, 0
movs r3, 0x1
bl ConvertIntToDecimalStringN
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _081D5BF0
.pool
_081D5BEC:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_081D5BF0:
strh r0, [r1]
@ -45731,7 +45731,7 @@ _081D5BF0:
sub_81D5C00: @ 81D5C00
push {lr}
bl sub_81D56B0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
bl sub_81D5710
@ -45780,12 +45780,12 @@ sub_81D5C5C: @ 81D5C5C
lsrs r1, r0, 24
cmp r1, 0
bne _081D5C74
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
b _081D5C7A
.pool
_081D5C74:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
_081D5C7A:
@ -46554,7 +46554,7 @@ sub_81D62AC: @ 81D62AC
thumb_func_start sub_81D62B4
sub_81D62B4: @ 81D62B4
push {lr}
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrh r1, [r0]
movs r0, 0x5
bl sub_81D572C
@ -46831,7 +46831,7 @@ _081D64D4:
thumb_func_start sub_81D64DC
sub_81D64DC: @ 81D64DC
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r0, =gSaveBlock2Ptr
ldr r0, [r0]
ldr r2, =0x00000ef9
@ -46884,7 +46884,7 @@ sub_81D6534: @ 81D6534
cmp r0, 0x6
beq _081D6560
bl sub_81D5C00
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
beq _081D6560
@ -46910,12 +46910,12 @@ sub_81D6568: @ 81D6568
ands r0, r1
cmp r0, 0
beq _081D6590
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _081D6594
.pool
_081D6590:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_081D6594:
strh r0, [r1]
@ -46929,7 +46929,7 @@ sub_81D65A0: @ 81D65A0
push {r4,r5,lr}
ldr r4, =gSaveBlock1Ptr
ldr r2, [r4]
ldr r5, =gUnknown_020375E2
ldr r5, =gSpecialVar_0x8005
ldr r0, =0x00003d6e
adds r2, r0
ldrb r1, [r5]
@ -53123,7 +53123,7 @@ walda_maybe: @ 81D99E4
thumb_func_start sub_81D9A1C
sub_81D9A1C: @ 81D9A1C
push {r4,r5,lr}
ldr r4, =gUnknown_020375E0
ldr r4, =gSpecialVar_0x8004
ldr r5, =gStringVar2
adds r0, r5, 0
bl sub_81D9A98
@ -53210,7 +53210,7 @@ sub_81D9AC4: @ 81D9AC4
adds r4, r0, 0
lsls r4, 16
lsrs r4, 16
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
mov r8, r0
bl sub_80D2548
mov r7, sp
@ -53797,7 +53797,7 @@ sub_81D9F68: @ 81D9F68
movs r3, 0
ldr r5, =gUnknown_02039F30
mov r8, r5
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
mov r12, r0
add r1, sp, 0x4
mov r9, r1

View File

@ -245,7 +245,7 @@ sub_8140470: @ 8140470
bl memcpy
ldr r5, =gUnknown_0203AB88
ldr r3, [r5]
ldr r4, =gUnknown_020375E0
ldr r4, =gSpecialVar_0x8004
ldrb r0, [r4]
movs r1, 0x1
ands r1, r0
@ -3208,12 +3208,12 @@ sub_8141DE4: @ 8141DE4
ldrb r1, [r1, 0x19]
cmp r0, r1
bcs _08141E38
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x1
b _08141E3C
.pool
_08141E38:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0
_08141E3C:
strh r0, [r1]
@ -4617,7 +4617,7 @@ sub_81429A0: @ 81429A0
ands r0, r1
cmp r0, 0
beq _081429DE
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x1
strh r0, [r1]
bl HideCoinsWindow
@ -4647,7 +4647,7 @@ sub_81429F0: @ 81429F0
cmp r0, 0
beq _08142A60
ldr r2, =gUnknown_085B6344
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
movs r5, 0x1
adds r0, r5, 0
@ -4712,7 +4712,7 @@ sub_8142A88: @ 8142A88
ldrsh r0, [r6, r1]
bl PrintCoinsString
ldr r2, =gUnknown_085B6344
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
mov r8, r0
ldrh r1, [r0]
movs r7, 0x1

View File

@ -237,7 +237,7 @@ _080FC26A:
ldrsh r0, [r4, r2]
cmp r1, r0
bne _080FC2C4
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r5, [r0]
ldr r1, =gUnknown_085B262C
ldrb r0, [r3, 0x8]
@ -254,7 +254,7 @@ _080FC2C4:
lsrs r5, r0, 16
cmp r5, 0x9
bls _080FC26A
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r2, =0x0000ffff
adds r0, r2, 0
strh r0, [r1]
@ -322,7 +322,7 @@ _080FC342:
adds r0, r1
cmp r0, 0x5
bgt _080FC364
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r5, [r0]
b _080FC376
.pool
@ -332,7 +332,7 @@ _080FC364:
lsrs r5, r0, 16
cmp r5, 0x9
bls _080FC306
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r2, =0x0000ffff
adds r0, r2, 0
strh r0, [r1]
@ -348,7 +348,7 @@ _080FC376:
sub_80FC388: @ 80FC388
push {lr}
bl sub_80FC258
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldrh r1, [r2]
ldr r0, =0x0000ffff
cmp r1, r0
@ -370,7 +370,7 @@ _080FC3B2:
sub_80FC3B8: @ 80FC3B8
push {lr}
bl sub_80FC2E8
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldrh r1, [r2]
ldr r0, =0x0000ffff
cmp r1, r0
@ -498,7 +498,7 @@ _080FC4A0:
sub_80FC4B4: @ 80FC4B4
push {lr}
bl sub_80FC258
ldr r3, =gUnknown_020375F0
ldr r3, =gScriptResult
ldrh r1, [r3]
ldr r0, =0x0000ffff
cmp r1, r0

View File

@ -935,7 +935,7 @@ s8F_get_random_val: @ 809996C
adds r4, r0, 0
lsls r4, 16
lsrs r4, 16
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
bl Random
lsls r0, 16
lsrs r0, 16
@ -966,7 +966,7 @@ sub_80999A0: @ 80999A0
lsrs r0, 16
bl VarGet
adds r1, r0, 0
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
lsls r1, 24
lsrs r1, 24
adds r0, r4, 0
@ -998,7 +998,7 @@ sub_80999E4: @ 80999E4
lsrs r0, 16
bl VarGet
adds r1, r0, 0
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
lsls r1, 24
lsrs r1, 24
adds r0, r4, 0
@ -1030,7 +1030,7 @@ sub_8099A28: @ 8099A28
lsrs r0, 16
bl VarGet
adds r1, r0, 0
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
lsls r1, 24
lsrs r1, 24
adds r0, r4, 0
@ -1062,7 +1062,7 @@ sub_8099A6C: @ 8099A6C
lsrs r0, 16
bl VarGet
adds r1, r0, 0
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
lsls r1, 24
lsrs r1, 24
adds r0, r4, 0
@ -1086,7 +1086,7 @@ s48_get_item_type: @ 8099AB0
bl VarGet
lsls r0, 16
lsrs r0, 16
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl sub_80D6C68
lsls r0, 24
lsrs r0, 24
@ -1117,7 +1117,7 @@ sub_8099ADC: @ 8099ADC
adds r1, r0, 0
lsls r1, 16
lsrs r1, 16
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
adds r0, r4, 0
bl sub_80D6D70
lsls r0, 24
@ -1149,7 +1149,7 @@ sub_8099B20: @ 8099B20
adds r1, r0, 0
lsls r1, 16
lsrs r1, 16
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
adds r0, r4, 0
bl sub_80D6D1C
lsls r0, 24
@ -1169,7 +1169,7 @@ sub_8099B64: @ 8099B64
lsls r0, 16
lsrs r0, 16
bl VarGet
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
lsls r0, 24
lsrs r0, 24
bl IsThereStorageSpaceForDecoration
@ -1190,7 +1190,7 @@ sub_8099B90: @ 8099B90
lsls r0, 16
lsrs r0, 16
bl VarGet
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
lsls r0, 24
lsrs r0, 24
bl sub_81619DC
@ -1211,7 +1211,7 @@ sub_8099BBC: @ 8099BBC
lsls r0, 16
lsrs r0, 16
bl VarGet
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
lsls r0, 24
lsrs r0, 24
bl sub_81619A8
@ -1232,7 +1232,7 @@ sub_8099BE8: @ 8099BE8
lsls r0, 16
lsrs r0, 16
bl VarGet
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
lsls r0, 24
lsrs r0, 24
bl sub_8161918
@ -1529,16 +1529,16 @@ s2D_unknown: @ 8099E10
s2E_unknown: @ 8099E1C
push {lr}
bl GameFreakRTC_CalcLocalDateTime
ldr r2, =gUnknown_020375D8
ldr r2, =gSpecialVar_0x8000
ldr r1, =gUnknown_03005CF8
movs r0, 0x2
ldrsb r0, [r1, r0]
strh r0, [r2]
ldr r2, =gUnknown_020375DA
ldr r2, =gSpecialVar_0x8001
movs r0, 0x3
ldrsb r0, [r1, r0]
strh r0, [r2]
ldr r2, =gUnknown_020375DC
ldr r2, =gSpecialVar_0x8002
movs r0, 0x4
ldrsb r0, [r1, r0]
strh r0, [r2]
@ -2341,7 +2341,7 @@ s42_get_map_camera_pos: @ 809A45C
thumb_func_start s43_get_player_party_count
s43_get_player_party_count: @ 809A498
push {r4,lr}
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl calc_player_party_count
lsls r0, 24
lsrs r0, 24
@ -4231,7 +4231,7 @@ s79_give_pokemon: @ 809B304
ldrb r2, [r1]
adds r1, 0x1
str r1, [r4, 0x8]
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
str r0, [sp]
str r2, [sp, 0x4]
adds r0, r6, 0
@ -4262,7 +4262,7 @@ s7A_create_egg: @ 809B384
bl VarGet
lsls r0, 16
lsrs r0, 16
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl sub_80F92C8
lsls r0, 24
lsrs r0, 24
@ -4303,7 +4303,7 @@ sub_809B3DC: @ 809B3DC
bl script_read_halfword
lsls r0, 16
lsrs r7, r0, 16
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x6
strh r0, [r1]
movs r6, 0
@ -4322,9 +4322,9 @@ _0809B3F4:
lsrs r0, 24
cmp r0, 0x1
bne _0809B424
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r6, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r5, [r0]
b _0809B44A
.pool
@ -4425,7 +4425,7 @@ s92_check_money: @ 809B4C0
str r0, [r4, 0x8]
cmp r1, 0
bne _0809B4EE
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
ldr r0, =gSaveBlock1Ptr
ldr r0, [r0]
movs r1, 0x92
@ -4786,7 +4786,7 @@ sub_809B758: @ 809B758
lsls r0, 16
lsrs r0, 16
bl VarGet
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
lsls r0, 24
lsrs r0, 24
bl GetPriceReduction
@ -4943,7 +4943,7 @@ s9F_changeposition_fly: @ 809B870
thumb_func_start sA0_check_gender
sA0_check_gender: @ 809B88C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r0, =gSaveBlock2Ptr
ldr r0, [r0]
ldrb r0, [r0, 0x8]
@ -5280,12 +5280,12 @@ sub_809BB20: @ 809BB20
lsrs r0, 24
cmp r0, 0x1
bne _0809BB48
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _0809BB4C
.pool
_0809BB48:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_0809BB4C:
strh r0, [r1]
@ -5309,12 +5309,12 @@ sub_809BB58: @ 809BB58
lsrs r0, 24
cmp r0, 0x1
bne _0809BB80
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _0809BB84
.pool
_0809BB80:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_0809BB84:
strh r0, [r1]
@ -5457,7 +5457,7 @@ sCE_check_obedient_bit: @ 809BC7C
bl VarGet
lsls r0, 16
lsrs r0, 16
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
movs r1, 0x64
muls r0, r1
ldr r1, =gPlayerParty

View File

@ -24,7 +24,7 @@ Multichoice: @ 80E1E08
lsrs r0, 24
cmp r0, 0x1
beq _080E1E4C
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0xFF
strh r1, [r0]
movs r0, 0
@ -70,7 +70,7 @@ sub_80E1E58: @ 80E1E58
lsrs r0, 24
cmp r0, 0x1
beq _080E1EA8
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0xFF
strh r0, [r1]
str r4, [sp]
@ -358,13 +358,13 @@ _080E20B8:
bne _080E20FC
movs r0, 0x5
bl PlaySE
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x7F
strh r0, [r1]
b _080E20EC
.pool
_080E20E8:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
_080E20EC:
ldrb r0, [r5, 0xC]
@ -389,7 +389,7 @@ yes_no_box: @ 80E2108
lsrs r0, 24
cmp r0, 0x1
beq _080E2138
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0xFF
strh r0, [r1]
bl sub_8197930
@ -410,7 +410,7 @@ _080E213A:
thumb_func_start sub_80E2140
sub_80E2140: @ 80E2140
push {lr}
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0xFF
beq _080E2154
@ -465,12 +465,12 @@ _080E219C:
_080E21A4:
movs r0, 0x5
bl PlaySE
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _080E21B8
.pool
_080E21B4:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_080E21B8:
strh r0, [r1]
@ -517,7 +517,7 @@ sub_80E21D0: @ 80E21D0
b _080E22E8
.pool
_080E2210:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0xFF
strh r1, [r0]
movs r2, 0
@ -655,13 +655,13 @@ sub_80E2308: @ 80E2308
bne _080E2360
movs r0, 0x5
bl PlaySE
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x7F
strh r0, [r1]
b _080E2350
.pool
_080E234C:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
_080E2350:
ldrb r0, [r5, 0xC]
@ -686,7 +686,7 @@ sp109_CreatePCMenu: @ 80E236C
lsrs r0, 24
cmp r0, 0x1
beq _080E2394
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0xFF
strh r0, [r1]
bl CreatePCMenu
@ -893,7 +893,7 @@ sub_80E2548: @ 80E2548
lsrs r0, 24
cmp r0, 0x1
beq _080E2570
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0xFF
strh r0, [r1]
bl sub_80E2578
@ -931,7 +931,7 @@ _080E258A:
movs r0, 0x1
movs r1, 0
bl GetFontAttribute
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
cmp r1, 0
bne _080E25D2
@ -967,7 +967,7 @@ _080E25D2:
lsrs r0, 24
cmp r0, 0x1
bne _080E2630
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldrh r0, [r2]
cmp r0, 0
bne _080E2606
@ -1014,7 +1014,7 @@ _080E2630:
lsrs r0, 24
cmp r0, 0x1
bne _080E2690
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldrh r0, [r2]
cmp r0, 0
bne _080E2668
@ -1058,7 +1058,7 @@ _080E2690:
lsrs r0, 24
cmp r0, 0x1
bne _080E26EC
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldrh r0, [r2]
cmp r0, 0
bne _080E26C4
@ -1103,7 +1103,7 @@ _080E26EC:
lsrs r0, 24
cmp r0, 0x1
bne _080E274C
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldrh r0, [r2]
cmp r0, 0
bne _080E2722
@ -1142,7 +1142,7 @@ _080E274C:
adds r0, r5, 0x1
lsls r0, 24
lsrs r5, r0, 24
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _080E276E
@ -1155,7 +1155,7 @@ _080E276E:
adds r7, r5, 0
cmp r7, 0x7
bne _080E27A4
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0xB
strh r0, [r1]
bl sub_813A128
@ -1266,7 +1266,7 @@ _080E2860:
thumb_func_start sub_80E2878
sub_80E2878: @ 80E2878
push {lr}
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldrh r0, [r2]
cmp r0, 0x7F
beq _080E288C
@ -1648,7 +1648,7 @@ sp106_CreateStartMenu: @ 80E2B7C
lsrs r0, 24
cmp r0, 0x1
beq _080E2BA4
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0xFF
strh r0, [r1]
bl CreateStartMenu

View File

@ -36,7 +36,7 @@ sub_80F87D8: @ 80F87D8
thumb_func_start sub_80F8814
sub_80F8814: @ 80F8814
push {lr}
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrb r0, [r0]
adds r1, r0, 0
cmp r0, 0x1
@ -63,7 +63,7 @@ _080F883E:
_080F8842:
movs r1, 0x64
_080F8844:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r1, [r0]
pop {r0}
bx r0
@ -124,12 +124,12 @@ _080F88A6:
ldrh r1, [r0]
cmp r1, 0
bne _080F88CC
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r1, [r0]
b _080F88D2
.pool
_080F88CC:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x1
strh r0, [r1]
_080F88D2:
@ -169,12 +169,12 @@ sub_80F88E8: @ 80F88E8
ldr r0, =0x0000031f
cmp r1, r0
ble _080F8930
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x1
b _080F8934
.pool
_080F8930:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0
_080F8934:
strh r0, [r1]
@ -220,7 +220,7 @@ sub_80F8970: @ 80F8970
sub sp, 0x8
ldr r0, =gUnknown_02039F00
mov r12, r0
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
mov r9, r1
ldr r2, =gUnknown_02039E02
mov r10, r2
@ -367,12 +367,12 @@ _080F8A6E:
cmp r8, r0
bne _080F8AB0
_080F8A9C:
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
strh r7, [r0]
b _080F8AB6
.pool
_080F8AB0:
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
adds r0, r7, 0x4
strh r0, [r1]
_080F8AB6:
@ -676,7 +676,7 @@ _080F8D44:
movs r1, 0x3
mov r10, r1
ldr r2, =gUnknown_02039E00
ldr r4, =gUnknown_020375E4
ldr r4, =gSpecialVar_0x8006
ldrh r1, [r4]
lsls r1, 6
adds r0, r1, r2
@ -952,7 +952,7 @@ sub_80F8FA0: @ 80F8FA0
ands r0, r1
cmp r0, 0
bne _080F8FD8
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl link_get_multiplayer_id
lsls r0, 24
lsrs r0, 24
@ -960,7 +960,7 @@ sub_80F8FA0: @ 80F8FA0
b _080F8FDE
.pool
_080F8FD8:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x4
strh r0, [r1]
_080F8FDE:
@ -987,11 +987,11 @@ sub_80F8FE8: @ 80F8FE8
adds r0, r1
str r0, [r2]
lsrs r0, 16
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
b _080F902A
.pool
_080F9020:
ldr r4, =gUnknown_020375F0
ldr r4, =gScriptResult
bl Random
lsls r0, 16
lsrs r0, 16
@ -1376,7 +1376,7 @@ _080F9310:
cmp r1, 0x2
bne _080F9318
_080F9314:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
_080F9318:
pop {r0}
@ -1550,12 +1550,12 @@ sub_80F9460: @ 80F9460
ldrb r1, [r0]
cmp r1, 0
bne _080F9478
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
b _080F947E
.pool
_080F9478:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
_080F947E:
@ -1572,7 +1572,7 @@ sub_80F9490: @ 80F9490
ldr r1, =gMain
ldr r0, =sub_80F94B8
str r0, [r1, 0x8]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
adds r0, 0x1
lsls r0, 24
@ -1590,12 +1590,12 @@ sub_80F94B8: @ 80F94B8
ldrb r1, [r0]
cmp r1, 0
bne _080F94D0
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
b _080F94D6
.pool
_080F94D0:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
_080F94D6:

View File

@ -64,7 +64,7 @@ _080E8B2E:
thumb_func_start sub_80E8B58
sub_80E8B58: @ 80E8B58
ldr r0, =gUnknown_0203A01C
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
strb r1, [r0]
bx lr
@ -74,7 +74,7 @@ sub_80E8B58: @ 80E8B58
thumb_func_start sub_80E8B6C
sub_80E8B6C: @ 80E8B6C
push {r4,lr}
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0
strh r1, [r0]
movs r3, 0
@ -123,13 +123,13 @@ sub_80E8BC8: @ 80E8BC8
ldrb r1, [r0]
cmp r1, 0
beq _080E8BEC
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
b _080E8BF0
.pool
_080E8BEC:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
_080E8BF0:
pop {r0}
@ -227,7 +227,7 @@ _080E8C8E:
thumb_func_start sub_80E8C98
sub_80E8C98: @ 80E8C98
push {r4,lr}
ldr r4, =gUnknown_020375E6
ldr r4, =gSpecialVar_0x8007
bl sub_80E8BF8
lsls r0, 24
lsrs r0, 24
@ -1112,7 +1112,7 @@ _080E93D4:
bcs _080E9412
ldr r0, [r3, 0x4]
ldrh r2, [r0, 0x14]
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r0, [r1]
adds r0, 0xAE
adds r7, r1, 0
@ -1143,14 +1143,14 @@ _080E9412:
bne _080E941E
b _080E9554
_080E941E:
ldr r4, =gUnknown_020375E4
ldr r4, =gSpecialVar_0x8006
mov r8, r4
ldr r0, [sp, 0x8]
adds r1, r0, r6
ldrb r0, [r1]
lsrs r0, 4
strh r0, [r4]
ldr r7, =gUnknown_020375E6
ldr r7, =gSpecialVar_0x8007
ldrb r1, [r1]
movs r0, 0xF
ands r0, r1
@ -1175,7 +1175,7 @@ _080E941E:
cmp r0, 0x1
bne _080E9554
_080E9462:
ldr r6, =gUnknown_020375F0
ldr r6, =gScriptResult
mov r1, r9
ldr r0, [r1, 0x4]
ldr r1, [r0, 0x4]
@ -1203,7 +1203,7 @@ _080E9462:
adds r4, r0
ldrb r0, [r4]
strh r0, [r6]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
adds r0, 0xAE
lsls r0, 16
@ -1265,7 +1265,7 @@ _080E9538:
movs r3, 0x7
bl sub_808F28C
_080E954C:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r0, [r1]
adds r0, 0x1
strh r0, [r1]
@ -1428,7 +1428,7 @@ sub_80E9680: @ 80E9680
push {lr}
bl sub_80E8B58
bl sub_80E8B6C
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
beq _080E969C
@ -1527,12 +1527,12 @@ sub_80E9744: @ 80E9744
ldrb r1, [r1]
cmp r0, r1
beq _080E9770
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _080E9774
.pool
_080E9770:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
_080E9774:
strh r0, [r1]
@ -2079,7 +2079,7 @@ sub_80E9BDC: @ 80E9BDC
lsrs r1, r0, 24
cmp r1, 0x1
bne _080E9C04
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
b _080E9C22
.pool
@ -2089,12 +2089,12 @@ _080E9C04:
lsrs r0, 24
cmp r0, 0x9
bls _080E9C1C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x2
b _080E9C20
.pool
_080E9C1C:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
_080E9C20:
strh r0, [r1]
@ -2920,7 +2920,7 @@ sub_80EA30C: @ 80EA30C
adds r1, r0
lsls r1, 5
adds r3, r1
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrb r0, [r0]
ldr r1, =0x00001a9d
adds r3, r1
@ -2974,14 +2974,14 @@ _080EA376:
ldr r0, =0x00000922
bl FlagSet
_080EA39A:
ldr r4, =gUnknown_020375E0
ldr r4, =gSpecialVar_0x8004
lsls r0, r5, 24
lsrs r0, 24
bl sub_80EA20C
lsls r0, 24
lsrs r0, 24
strh r0, [r4]
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldr r0, =gSaveBlock1Ptr
ldr r1, [r0]
lsls r0, r5, 2

View File

@ -1354,13 +1354,13 @@ task50_save_game: @ 809FFD0
_0809FFEC:
cmp r1, 0x3
bgt _080A0000
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
b _080A0000
.pool
_0809FFFC:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r1, [r0]
_080A0000:
adds r0, r4, 0

View File

@ -555,7 +555,7 @@ _08134420:
beq _08134450
b _0813449A
_08134426:
ldr r2, =gUnknown_020375F0
ldr r2, =gScriptResult
ldr r1, =gTasks
lsls r0, r4, 2
adds r0, r4

View File

@ -1098,7 +1098,7 @@ _080AADC8:
ands r0, r1
cmp r0, 0x26
bne _080AADFC
bl sub_809D614
bl CanResetRTC
cmp r0, 0x1
bne _080AADFC
movs r0, 0x4

View File

@ -7694,7 +7694,7 @@ _0807B29C:
.4byte _0807B438
_0807B2D0:
ldr r1, =gUnknown_02032298
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
movs r6, 0
strb r0, [r1]
@ -8564,7 +8564,7 @@ sub_807BAD8: @ 807BAD8
b _0807BBA4
.pool
_0807BB68:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
lsls r4, r0, 4
subs r4, r0
@ -8578,7 +8578,7 @@ _0807BB68:
ldr r0, =gStringVar3
adds r1, r4, 0
bl StringCopy10
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1
@ -10586,7 +10586,7 @@ _0807CEC6:
b _0807CF4C
.pool
_0807CEDC:
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrb r0, [r0]
movs r1, 0
bl sub_807B4D0
@ -12691,7 +12691,7 @@ _0807E312:
b _0807E398
.pool
_0807E328:
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrb r0, [r0]
movs r1, 0
bl sub_807B4D0
@ -13177,7 +13177,7 @@ _0807E72C:
thumb_func_start sub_807E73C
sub_807E73C: @ 807E73C
push {r4-r6,lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
lsls r4, r0, 4
subs r4, r0
@ -13207,14 +13207,14 @@ sub_807E73C: @ 807E73C
sub_807E784: @ 807E784
push {r4,lr}
sub sp, 0x20
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
lsls r4, r0, 4
subs r4, r0
lsls r4, 2
ldr r0, =gUnknown_08338ED0
adds r4, r0
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1
@ -13462,7 +13462,7 @@ _0807E98E:
thumb_func_start sub_807E9D4
sub_807E9D4: @ 807E9D4
push {r4-r6,lr}
ldr r6, =gUnknown_020375E2
ldr r6, =gSpecialVar_0x8005
ldrh r0, [r6]
movs r5, 0x64
muls r0, r5
@ -13492,9 +13492,9 @@ _0807EA0A:
thumb_func_start sub_807EA10
sub_807EA10: @ 807EA10
push {lr}
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrb r0, [r0]
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrb r1, [r1]
bl sub_807E7E8
pop {r0}

View File

@ -236,14 +236,14 @@ sub_8133BE4: @ 8133BE4
adds r4, r0, r1
cmp r2, 0x78
bls _08133C14
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldr r2, =0x0000ffff
adds r0, r2, 0
strh r0, [r1]
b _08133C18
.pool
_08133C14:
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
strh r2, [r0]
_08133C18:
ldrb r0, [r4, 0x6]
@ -301,7 +301,7 @@ _08133C80:
_08133C90:
movs r0, 0x5
bl PlaySE
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
lsls r4, 24
asrs r4, 24
strh r4, [r0]
@ -335,7 +335,7 @@ _08133CCA:
sub_8133CD8: @ 8133CD8
ldr r0, =gSaveBlock1Ptr
ldr r0, [r0]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
ldr r2, =0x00002e59
adds r0, r2
ldrb r0, [r0]
@ -348,7 +348,7 @@ sub_8133CD8: @ 8133CD8
sub_8133CF4: @ 8133CF4
push {r4,r5,lr}
movs r4, 0
ldr r5, =gUnknown_020375F0
ldr r5, =gScriptResult
_08133CFA:
adds r0, r4, 0
bl sub_8161AD0
@ -365,7 +365,7 @@ _08133D10:
lsrs r4, r0, 24
cmp r4, 0x7
bls _08133CFA
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
_08133D20:
@ -378,15 +378,15 @@ _08133D20:
thumb_func_start sub_8133D2C
sub_8133D2C: @ 8133D2C
push {r4-r6,lr}
ldr r6, =gUnknown_020375F0
ldr r6, =gScriptResult
movs r0, 0
strh r0, [r6]
ldr r4, =gUnknown_085A5C08
ldr r5, =gUnknown_020375E0
ldr r5, =gSpecialVar_0x8004
ldrh r0, [r5]
lsls r0, 5
adds r2, r0, r4
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
lsls r0, 5
adds r0, r4
@ -438,7 +438,7 @@ sub_8133DA0: @ 8133DA0
lsrs r0, 24
cmp r0, 0x1
bne _08133DFC
ldr r5, =gUnknown_020375E4
ldr r5, =gSpecialVar_0x8006
ldr r0, =gUnknown_0203A172
ldrb r1, [r0]
ldr r0, =gUnknown_0203A14C
@ -447,7 +447,7 @@ sub_8133DA0: @ 8133DA0
ldrb r0, [r0]
strh r0, [r5]
ldr r0, =gStringVar3
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
ldrh r1, [r1]
lsls r1, 5
ldr r4, =gUnknown_085A5C09
@ -461,7 +461,7 @@ sub_8133DA0: @ 8133DA0
b _08133E04
.pool
_08133DFC:
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
ldr r2, =0x0000ffff
adds r0, r2, 0
strh r0, [r1]
@ -480,7 +480,7 @@ sub_8133E1C: @ 8133E1C
push {lr}
lsls r0, 24
lsrs r0, 24
ldr r2, =gUnknown_020375E4
ldr r2, =gSpecialVar_0x8006
movs r1, 0
strh r1, [r2]
bl DestroyTask
@ -499,14 +499,14 @@ sub_8133E38: @ 8133E38
ldr r6, [r0]
ldr r0, =0x00002e28
adds r5, r6, r0
ldr r1, =gUnknown_020375E4
ldr r1, =gSpecialVar_0x8006
mov r8, r1
ldrb r0, [r1]
bl sub_81619DC
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r0, [r0]
bl IsThereStorageSpaceForDecoration
ldr r4, =gUnknown_020375E2
ldr r4, =gSpecialVar_0x8005
ldrh r1, [r4]
movs r0, 0xB
muls r0, r1

View File

@ -1300,7 +1300,7 @@ sub_80B45D0: @ 80B45D0
bne _080B460C
adds r0, 0x1
strb r0, [r1]
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
bl sub_809757C
@ -1313,7 +1313,7 @@ _080B460C:
movs r0, 0
strb r0, [r1]
_080B4610:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
_080B4616:

258
asm/tv.s
View File

@ -334,7 +334,7 @@ TurnOnTVScreen: @ 80EC14C
special_0x45: @ 80EC168
ldr r0, =gSaveBlock1Ptr
ldr r1, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r2, [r0]
lsls r0, r2, 3
adds r0, r2
@ -390,7 +390,7 @@ _080EC1CC:
special_0x4a: @ 80EC1D4
push {lr}
ldr r3, =gSaveBlock1Ptr
ldr r2, =gUnknown_020375E0
ldr r2, =gSpecialVar_0x8004
ldrh r1, [r2]
lsls r0, r1, 3
adds r0, r1
@ -906,66 +906,66 @@ _080EC5F8:
.4byte _080EC690
.4byte _080EC6A4
_080EC618:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0xE
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0xD
b _080EC6AE
.pool
_080EC62C:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x5
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x6
b _080EC6AE
.pool
_080EC640:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x12
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x11
b _080EC6AE
.pool
_080EC654:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x15
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x16
b _080EC6AE
.pool
_080EC668:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x8
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x9
b _080EC6AE
.pool
_080EC67C:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x13
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x14
b _080EC6AE
.pool
_080EC690:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0x17
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0x18
b _080EC6AE
.pool
_080EC6A4:
ldr r1, =gUnknown_020375E0
ldr r1, =gSpecialVar_0x8004
movs r0, 0xA
strh r0, [r1]
ldr r1, =gUnknown_020375E2
ldr r1, =gSpecialVar_0x8005
movs r0, 0xB
_080EC6AE:
strh r0, [r1]
@ -978,7 +978,7 @@ _080EC6B0:
thumb_func_start InterviewAfter
InterviewAfter: @ 80EC6BC
push {lr}
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
subs r0, 0x1
cmp r0, 0x7
@ -1491,7 +1491,7 @@ sub_80ECB00: @ 80ECB00
beq _080ECBEC
movs r0, 0xA
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
beq _080ECBEC
@ -1611,7 +1611,7 @@ sub_80ECC04: @ 80ECC04
beq _080ECC54
movs r0, 0x9
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
bne _080ECC68
@ -1697,7 +1697,7 @@ sub_80ECD00: @ 80ECD00
push {r4-r6,lr}
sub sp, 0x20
ldr r6, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -1706,7 +1706,7 @@ sub_80ECD00: @ 80ECD00
adds r0, r1
ldr r1, [r6]
adds r4, r1, r0
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r1, [r0]
lsls r0, r1, 2
adds r0, r1
@ -2230,7 +2230,7 @@ _080ED1F4:
movs r0, 0x64
_080ED1F6:
strb r0, [r6, 0x1A]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
strb r0, [r6, 0x1B]
adds r0, r6, 0
@ -2361,11 +2361,11 @@ sub_80ED320: @ 80ED320
mov r6, r8
push {r6,r7}
bl sub_80EF7A8
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
beq _080ED400
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
mov r8, r0
ldrh r0, [r0]
movs r7, 0x64
@ -2468,7 +2468,7 @@ _080ED400:
StartMassOutbreak: @ 80ED430
push {r4,r5,lr}
ldr r4, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
lsls r1, r0, 3
adds r1, r0
@ -2545,7 +2545,7 @@ StartMassOutbreak: @ 80ED430
sub_80ED4DC: @ 80ED4DC
push {r4,lr}
bl sub_80EFA88
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
beq _080ED532
@ -2708,7 +2708,7 @@ sub_80ED610: @ 80ED610
ands r1, r2
orrs r1, r0
strb r1, [r5, 0x4]
ldr r0, =gUnknown_020375E6
ldr r0, =gSpecialVar_0x8007
ldrb r0, [r0]
lsls r0, 4
movs r2, 0xF
@ -3488,7 +3488,7 @@ sub_80EDCE8: @ 80EDCE8
movs r0, 0x1C
strb r0, [r4]
strb r1, [r4, 0x1]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
strh r0, [r4, 0x2]
ldr r1, =gUnknown_02037318
@ -4203,12 +4203,12 @@ sub_80EE2CC: @ 80EE2CC
ldr r1, =gSaveBlock2Ptr
ldr r1, [r1]
bl StringCopy
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrb r1, [r0]
movs r0, 0x4
subs r0, r1
strb r0, [r4, 0x4]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
strh r0, [r4, 0x2]
adds r0, r4, 0
@ -4773,7 +4773,7 @@ sub_80EE7C0: @ 80EE7C0
beq _080EE810
movs r0, 0xB
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0x1
beq _080EE810
@ -5378,7 +5378,7 @@ sub_80EED34: @ 80EED34
adds r0, r4, 0
bl VarGet
adds r1, r0, 0
ldr r0, =gUnknown_020375E4
ldr r0, =gSpecialVar_0x8006
ldrh r0, [r0]
adds r1, r0
lsls r1, 16
@ -5658,7 +5658,7 @@ sub_80EEF6C: @ 80EEF6C
lsrs r2, r0, 24
cmp r2, 0xFF
bne _080EEF84
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _080EF01A
.pool
@ -5725,7 +5725,7 @@ _080EEFE8:
ldr r0, [r0]
bl box_related_two__2
_080EF016:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_080EF01A:
strh r0, [r1]
@ -5804,7 +5804,7 @@ _080EF0A6:
lsls r0, 1
cmp r1, r0
bne _080EF0D4
ldr r0, =gUnknown_020375F2
ldr r0, =gScriptLastTalked
ldrh r0, [r0]
cmp r0, 0x19
beq _080EF0A2
@ -6078,7 +6078,7 @@ _080EF300:
SetContestCategoryStringVarForInterview: @ 80EF30C
push {lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -6396,7 +6396,7 @@ _080EF55C:
ldrb r2, [r0]
cmp r2, 0x1
bne _080EF590
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r2, [r0]
b _080EF5B2
.pool
@ -6424,10 +6424,10 @@ _080EF5B2:
thumb_func_start InterviewBefore
InterviewBefore: @ 80EF5B8
push {lr}
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_020375E2
ldr r0, =gSpecialVar_0x8005
ldrh r0, [r0]
subs r0, 0x1
cmp r0, 0xA
@ -6490,7 +6490,7 @@ sub_80EF64C: @ 80EF64C
push {r4,lr}
movs r0, 0x1
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
bne _080EF6A0
@ -6536,7 +6536,7 @@ sub_80EF6C4: @ 80EF6C4
push {lr}
movs r0, 0x2
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
bne _080EF6F0
@ -6564,7 +6564,7 @@ sub_80EF704: @ 80EF704
push {r4-r6,lr}
movs r0, 0x3
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
bne _080EF774
@ -6618,7 +6618,7 @@ _080EF774:
thumb_func_start sub_80EF79C
sub_80EF79C: @ 80EF79C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
bx lr
@ -6639,7 +6639,7 @@ sub_80EF7B4: @ 80EF7B4
push {lr}
movs r0, 0x6
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
bne _080EF7E0
@ -6685,7 +6685,7 @@ sub_80EF80C: @ 80EF80C
push {lr}
movs r0, 0x7
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
bne _080EF838
@ -6713,7 +6713,7 @@ sub_80EF84C: @ 80EF84C
push {lr}
movs r0, 0xB
bl sub_80EF550
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
ldrh r0, [r0]
cmp r0, 0
bne _080EF878
@ -7012,7 +7012,7 @@ sub_80EFA88: @ 80EFA88
bl sub_80EFADC
ldr r1, =gUnknown_030060BC
strb r0, [r1]
ldr r2, =gUnknown_020375E4
ldr r2, =gSpecialVar_0x8006
ldrb r1, [r1]
lsls r1, 24
asrs r1, 24
@ -7023,12 +7023,12 @@ sub_80EFA88: @ 80EFA88
negs r1, r1
cmp r0, r1
bne _080EFACC
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
b _080EFAD0
.pool
_080EFACC:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
_080EFAD0:
strh r0, [r1]
@ -7402,7 +7402,7 @@ sub_80EFD54: @ 80EFD54
movs r1, 0
ldr r0, =gSaveBlock1Ptr
ldr r3, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r2, [r0]
ldr r4, =0x000027cc
_080EFD62:
@ -7433,7 +7433,7 @@ _080EFD90:
thumb_func_start sub_80EFD98
sub_80EFD98: @ 80EFD98
push {r4,lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1
@ -7468,7 +7468,7 @@ sub_80EFDDC: @ 80EFDDC
mov r4, r8
push {r4-r6}
sub sp, 0x8
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
mov r9, r0
ldrh r0, [r0]
movs r1, 0x64
@ -7545,7 +7545,7 @@ sub_80EFDDC: @ 80EFDDC
thumb_func_start c2_080CC144
c2_080CC144: @ 80EFE98
push {lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1
@ -7566,9 +7566,9 @@ sub_80EFEC4: @ 80EFEC4
mov r6, r8
push {r6}
sub sp, 0x8
ldr r0, =gUnknown_020375F6
ldr r0, =gSpecialVar_0x8012
ldrb r0, [r0]
ldr r1, =gUnknown_020375F8
ldr r1, =gSpecialVar_0x8013
ldrb r1, [r1]
bl get_pokemon_by_box_and_pos
adds r6, r0, 0
@ -7617,9 +7617,9 @@ sub_80EFEC4: @ 80EFEC4
thumb_func_start sub_80EFF48
sub_80EFF48: @ 80EFF48
push {lr}
ldr r0, =gUnknown_020375F6
ldr r0, =gSpecialVar_0x8012
ldrb r0, [r0]
ldr r1, =gUnknown_020375F8
ldr r1, =gSpecialVar_0x8013
ldrb r1, [r1]
ldr r2, =gStringVar2
bl sub_80D1E90
@ -7632,7 +7632,7 @@ sub_80EFF48: @ 80EFF48
thumb_func_start sub_80EFF6C
sub_80EFF6C: @ 80EFF6C
push {r4,lr}
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1
@ -7655,7 +7655,7 @@ sub_80EFF9C: @ 80EFF9C
push {r4,lr}
bl sub_80F0020
adds r4, r0, 0
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
movs r0, 0x64
muls r0, r1
@ -7666,12 +7666,12 @@ sub_80EFF9C: @ 80EFF9C
bl GetMonData
cmp r4, r0
bne _080EFFD0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
b _080EFFD4
.pool
_080EFFD0:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
_080EFFD4:
strh r0, [r1]
@ -10302,7 +10302,7 @@ sub_80F153C: @ 80F153C
push {lr}
ldr r0, =gSaveBlock1Ptr
ldr r2, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -10476,7 +10476,7 @@ _080F16E6:
DoTVShowBravoTrainerPokemonProfile: @ 80F16EC
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -10485,7 +10485,7 @@ DoTVShowBravoTrainerPokemonProfile: @ 80F16EC
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -10717,7 +10717,7 @@ _080F1952:
DoTVShowBravoTrainerBattleTower: @ 80F1974
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -10726,7 +10726,7 @@ DoTVShowBravoTrainerBattleTower: @ 80F1974
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -10969,7 +10969,7 @@ _080F1BEA:
DoTVShowTodaysSmartShopper: @ 80F1C0C
push {r4-r6,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -10978,7 +10978,7 @@ DoTVShowTodaysSmartShopper: @ 80F1C0C
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -11202,7 +11202,7 @@ DoTVShowTheNameRaterShow: @ 80F1E48
push {r4-r6,lr}
sub sp, 0x8
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -11211,7 +11211,7 @@ DoTVShowTheNameRaterShow: @ 80F1E48
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -11497,7 +11497,7 @@ _080F20FE:
DoTVShowPokemonTodaySuccessfulCapture: @ 80F211C
push {r4-r6,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -11506,7 +11506,7 @@ DoTVShowPokemonTodaySuccessfulCapture: @ 80F211C
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -11718,7 +11718,7 @@ _080F2358:
DoTVShowPokemonTodayFailedCapture: @ 80F2370
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -11727,7 +11727,7 @@ DoTVShowPokemonTodayFailedCapture: @ 80F2370
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -11857,7 +11857,7 @@ _080F24C0:
DoTVShowPokemonFanClubLetter: @ 80F24D8
push {r4-r7,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -11866,7 +11866,7 @@ DoTVShowPokemonFanClubLetter: @ 80F24D8
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -12056,7 +12056,7 @@ _080F26FC:
DoTVShowRecentHappenings: @ 80F2708
push {r4-r7,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -12065,7 +12065,7 @@ DoTVShowRecentHappenings: @ 80F2708
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -12196,7 +12196,7 @@ _080F2898:
DoTVShowPokemonFanClubOpinions: @ 80F28A4
push {r4-r6,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -12205,7 +12205,7 @@ DoTVShowPokemonFanClubOpinions: @ 80F28A4
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r6, =gUnknown_0203A030
@ -12294,7 +12294,7 @@ DoTVShowDummiedOut: @ 80F299C
DoTVShowPokemonNewsMassOutbreak: @ 80F29A0
push {r4,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -12333,7 +12333,7 @@ DoTVShowPokemonNewsMassOutbreak: @ 80F29A0
DoTVShowPokemonContestLiveUpdates: @ 80F2A10
push {r4-r7,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -12342,7 +12342,7 @@ DoTVShowPokemonContestLiveUpdates: @ 80F2A10
adds r0, r1
ldr r1, [r2]
adds r6, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -13086,7 +13086,7 @@ _080F311C:
DoTVShowPokemonBattleUpdate: @ 80F3140
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -13095,7 +13095,7 @@ DoTVShowPokemonBattleUpdate: @ 80F3140
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -13296,7 +13296,7 @@ _080F3362:
DoTVShow3CheersForPokeblocks: @ 80F3388
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -13305,7 +13305,7 @@ DoTVShow3CheersForPokeblocks: @ 80F3388
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -13545,7 +13545,7 @@ _080F3624:
thumb_func_start DoTVShowInSearchOfTrainers
DoTVShowInSearchOfTrainers: @ 80F363C
push {r4-r7,lr}
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0
strh r1, [r0]
ldr r0, =gUnknown_0203A030
@ -13709,7 +13709,7 @@ _080F37A2:
muls r1, r6
adds r1, r5
bl StringCopy
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
ldr r1, =gUnknown_0203A030
@ -13732,7 +13732,7 @@ _080F37EA:
DoTVShowPokemonAngler: @ 80F3828
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -13741,7 +13741,7 @@ DoTVShowPokemonAngler: @ 80F3828
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
movs r1, 0
strh r1, [r0]
ldrb r0, [r4, 0x2]
@ -13817,7 +13817,7 @@ _080F38E0:
DoTVShowTheWorldOfMasters: @ 80F3904
push {r4-r6,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -13826,7 +13826,7 @@ DoTVShowTheWorldOfMasters: @ 80F3904
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r6, =gUnknown_0203A030
@ -13905,7 +13905,7 @@ _080F39BE:
DoTVShowTodaysRivalTrainer: @ 80F39E4
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -13914,7 +13914,7 @@ DoTVShowTodaysRivalTrainer: @ 80F39E4
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -14135,7 +14135,7 @@ _080F3BE8:
DoTVShowDewfordTrendWatcherNetwork: @ 80F3C04
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -14144,7 +14144,7 @@ DoTVShowDewfordTrendWatcherNetwork: @ 80F3C04
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -14268,7 +14268,7 @@ _080F3D54:
DoTVShowHoennTreasureInvestigators: @ 80F3D74
push {r4-r7,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -14277,7 +14277,7 @@ DoTVShowHoennTreasureInvestigators: @ 80F3D74
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r7, =gUnknown_0203A030
@ -14373,7 +14373,7 @@ _080F3E5C:
DoTVShowFindThatGamer: @ 80F3E7C
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -14382,7 +14382,7 @@ DoTVShowFindThatGamer: @ 80F3E7C
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -14543,7 +14543,7 @@ _080F4008:
DoTVShowBreakingNewsTV: @ 80F4028
push {r4-r7,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -14552,7 +14552,7 @@ DoTVShowBreakingNewsTV: @ 80F4028
adds r0, r1
ldr r1, [r2]
adds r6, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -14846,7 +14846,7 @@ _080F4344:
DoTVShowSecretBaseVisit: @ 80F4360
push {r4-r6,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -14855,7 +14855,7 @@ DoTVShowSecretBaseVisit: @ 80F4360
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -15074,7 +15074,7 @@ _080F4588:
DoTVShowPokemonLotterWinnerFlashReport: @ 80F45A0
push {r4-r6,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -15083,7 +15083,7 @@ DoTVShowPokemonLotterWinnerFlashReport: @ 80F45A0
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -15144,7 +15144,7 @@ _080F4634:
DoTVShowThePokemonBattleSeminar: @ 80F466C
push {r4-r7,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -15153,7 +15153,7 @@ DoTVShowThePokemonBattleSeminar: @ 80F466C
adds r0, r1
ldr r1, [r2]
adds r6, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -15341,7 +15341,7 @@ _080F4858:
DoTVShowTrainerFanClubSpecial: @ 80F487C
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -15350,7 +15350,7 @@ DoTVShowTrainerFanClubSpecial: @ 80F487C
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -15464,7 +15464,7 @@ _080F499A:
DoTVShowTrainerFanClub: @ 80F49BC
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -15473,7 +15473,7 @@ DoTVShowTrainerFanClub: @ 80F49BC
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -15634,7 +15634,7 @@ _080F4B3A:
DoTVShowSpotTheCuties: @ 80F4B5C
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -15643,7 +15643,7 @@ DoTVShowSpotTheCuties: @ 80F4B5C
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -15857,7 +15857,7 @@ _080F4D84:
DoTVShowPokemonNewsBattleFrontier: @ 80F4D9C
push {r4-r7,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -15866,7 +15866,7 @@ DoTVShowPokemonNewsBattleFrontier: @ 80F4D9C
adds r0, r1
ldr r1, [r2]
adds r6, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -16118,7 +16118,7 @@ _080F5014:
DoTVShowWhatsNo1InHoennToday: @ 80F5030
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -16127,7 +16127,7 @@ DoTVShowWhatsNo1InHoennToday: @ 80F5030
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -16326,7 +16326,7 @@ DoTVShowSecretBaseSecrets: @ 80F51EC
mov r6, r8
push {r6,r7}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -16335,7 +16335,7 @@ DoTVShowSecretBaseSecrets: @ 80F51EC
adds r0, r1
ldr r1, [r2]
adds r5, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -16664,7 +16664,7 @@ _080F552A:
DoTVShowSafariFanClub: @ 80F5548
push {r4,r5,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -16673,7 +16673,7 @@ DoTVShowSafariFanClub: @ 80F5548
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r0, =gUnknown_0203A030
@ -16832,7 +16832,7 @@ _080F56BC:
DoTVShowPokemonContestLiveUpdates2: @ 80F56D4
push {r4-r6,lr}
ldr r2, =gSaveBlock1Ptr
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1
@ -16841,7 +16841,7 @@ DoTVShowPokemonContestLiveUpdates2: @ 80F56D4
adds r0, r1
ldr r1, [r2]
adds r4, r1, r0
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
ldr r6, =gUnknown_0203A030
@ -16904,7 +16904,7 @@ _080F575E:
thumb_func_start TVShowDone
TVShowDone: @ 80F577C
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0x1
strh r0, [r1]
ldr r1, =gUnknown_0203A030
@ -16912,7 +16912,7 @@ TVShowDone: @ 80F577C
strb r0, [r1]
ldr r0, =gSaveBlock1Ptr
ldr r2, [r0]
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r1, [r0]
lsls r0, r1, 3
adds r0, r1

View File

@ -137,7 +137,7 @@ _0813486C:
movs r1, 0xC0
lsls r1, 19
bl LZ77UnCompVram
ldr r0, =gUnknown_020375E0
ldr r0, =gSpecialVar_0x8004
ldrh r0, [r0]
cmp r0, 0
bne _081348FC

View File

@ -1628,12 +1628,12 @@ rock_smash_wild_pokemon_encounter: @ 80B550C
bne _080B5568
bl sub_80B0698
_080B5554:
ldr r0, =gUnknown_020375F0
ldr r0, =gScriptResult
strh r4, [r0]
b _080B556E
.pool
_080B5568:
ldr r1, =gUnknown_020375F0
ldr r1, =gScriptResult
movs r0, 0
strh r0, [r1]
_080B556E:

View File

@ -9,7 +9,7 @@
gUnknown_081DBA08:: @ 81DBA08
.incbin "baserom.gba", 0x1dba08, 0x4
gUnknown_081DBA0C:: @ 81DBA0C
gSpecialVars:: @ 81DBA0C
.incbin "baserom.gba", 0x1dba0c, 0x58
gUnknown_081DBA64:: @ 81DBA64

View File

@ -10,9 +10,14 @@ void ClearUpperFlags(void);
void DisableNationalPokedex(void);
void EnableNationalPokedex(void);
bool32 IsNationalPokedexEnabled(void);
void DisableMysteryEvent(void);
void EnableMysteryEvent(void);
bool32 IsMysteryEventEnabled(void);
void DisableMysteryGift(void);
void EnableMysteryGift(void);
bool32 IsMysteryGiftEnabled(void);
void sub_809D4D8(void);
void sub_809D570(void);
void DisableResetRTC(void);
void EnableResetRTC(void);
bool32 CanResetRTC(void);
@ -40,5 +45,8 @@ extern u16 gSpecialVar_0x800B;
extern u16 gScriptResult;
extern u16 gScriptLastTalked;
extern u16 gScriptFacing;
extern u16 gSpecialVar_0x8012;
extern u16 gSpecialVar_0x8013;
extern u16 gSpecialVar_0x8014;
#endif // GUARD_EVENT_DATA_H

View File

@ -1,86 +1,90 @@
#ifndef GUARD_FLAGS_H
#define GUARD_FLAGS_H
#define TRAINER_FLAG_START 0x500
#define TRAINER_FLAG_START 0x500
#define TRAINERS_FLAG_NO 0x360
#define CODE_FLAGS (TRAINER_FLAG_START + TRAINERS_FLAG_NO)
// SYSTEM FLAGS
#define SYS_POKEMON_GET 0x800
#define SYS_POKEDEX_GET 0x801
#define SYS_POKENAV_GET 0x802
#define SYS_GAME_CLEAR 0x804
#define SYS_CHAT_USED 0x805
#define SYS_HIPSTER_MEET 0x806
#define SYS_POKEMON_GET CODE_FLAGS + 0
#define SYS_POKEDEX_GET CODE_FLAGS + 1
#define SYS_POKENAV_GET CODE_FLAGS + 2
// third one appears unused
#define SYS_GAME_CLEAR CODE_FLAGS + 4
#define SYS_CHAT_USED CODE_FLAGS + 5
#define SYS_HIPSTER_MEET CODE_FLAGS + 6
// badges
#define BADGE01_GET 0x807
#define BADGE02_GET 0x808
#define BADGE03_GET 0x809
#define BADGE04_GET 0x80A
#define BADGE05_GET 0x80B
#define BADGE06_GET 0x80C
#define BADGE07_GET 0x80D
#define BADGE08_GET 0x80E
#define BADGE01_GET CODE_FLAGS + 7
#define BADGE02_GET CODE_FLAGS + 8
#define BADGE03_GET CODE_FLAGS + 9
#define BADGE04_GET CODE_FLAGS + 0xA
#define BADGE05_GET CODE_FLAGS + 0xB
#define BADGE06_GET CODE_FLAGS + 0xC
#define BADGE07_GET CODE_FLAGS + 0xD
#define BADGE08_GET CODE_FLAGS + 0xE
// cities and towns
#define FLAG_VISITED_LITTLEROOT_TOWN 0x80F
#define FLAG_VISITED_OLDALE_TOWN 0x810
#define FLAG_VISITED_DEWFORD_TOWN 0x811
#define FLAG_VISITED_LAVARIDGE_TOWN 0x812
#define FLAG_VISITED_FALLARBOR_TOWN 0x813
#define FLAG_VISITED_VERDANTURF_TOWN 0x814
#define FLAG_VISITED_PACIFIDLOG_TOWN 0x815
#define FLAG_VISITED_PETALBURG_CITY 0x816
#define FLAG_VISITED_SLATEPORT_CITY 0x817
#define FLAG_VISITED_MAUVILLE_CITY 0x818
#define FLAG_VISITED_RUSTBORO_CITY 0x819
#define FLAG_VISITED_FORTREE_CITY 0x81A
#define FLAG_VISITED_LILYCOVE_CITY 0x81B
#define FLAG_VISITED_MOSSDEEP_CITY 0x81C
#define FLAG_VISITED_SOOTOPOLIS_CITY 0x81D
#define FLAG_VISITED_EVER_GRANDE_CITY 0x81E
#define FLAG_VISITED_LITTLEROOT_TOWN CODE_FLAGS + 0xF
#define FLAG_VISITED_OLDALE_TOWN CODE_FLAGS + 0x10
#define FLAG_VISITED_DEWFORD_TOWN CODE_FLAGS + 0x11
#define FLAG_VISITED_LAVARIDGE_TOWN CODE_FLAGS + 0x12
#define FLAG_VISITED_FALLARBOR_TOWN CODE_FLAGS + 0x13
#define FLAG_VISITED_VERDANTURF_TOWN CODE_FLAGS + 0x14
#define FLAG_VISITED_PACIFIDLOG_TOWN CODE_FLAGS + 0x15
#define FLAG_VISITED_PETALBURG_CITY CODE_FLAGS + 0x16
#define FLAG_VISITED_SLATEPORT_CITY CODE_FLAGS + 0x17
#define FLAG_VISITED_MAUVILLE_CITY CODE_FLAGS + 0x18
#define FLAG_VISITED_RUSTBORO_CITY CODE_FLAGS + 0x19
#define FLAG_VISITED_FORTREE_CITY CODE_FLAGS + 0x1A
#define FLAG_VISITED_LILYCOVE_CITY CODE_FLAGS + 0x1B
#define FLAG_VISITED_MOSSDEEP_CITY CODE_FLAGS + 0x1C
#define FLAG_VISITED_SOOTOPOLIS_CITY CODE_FLAGS + 0x1D
#define FLAG_VISITED_EVER_GRANDE_CITY CODE_FLAGS + 0x1E
#define SYS_USE_FLASH 0x828
#define SYS_USE_STRENGTH 0x829
#define SYS_WEATHER_CTRL 0x82A
#define SYS_CYCLING_ROAD 0x82B
#define SYS_SAFARI_MODE 0x82C
#define SYS_CRUISE_MODE 0x82D
#define SYS_UNKNOWN_880 CODE_FLAGS + 0x20
#define SYS_TV_HOME 0x830
#define SYS_TV_WATCH 0x831
#define SYS_TV_START 0x832
#define SYS_POPWORD_INPUT 0x833
#define SYS_MIX_RECORD 0x834
#define SYS_CLOCK_SET 0x835
#define SYS_NATIONAL_DEX 0x836
#define SYS_CAVE_SHIP 0x837
#define SYS_CAVE_WONDER 0x838
#define SYS_CAVE_BATTLE 0x839
#define SYS_SHOAL_TIDE 0x83A
#define SYS_RIBBON_GET 0x83B
#define SYS_USE_FLASH CODE_FLAGS + 0x28
#define SYS_USE_STRENGTH CODE_FLAGS + 0x29
#define SYS_WEATHER_CTRL CODE_FLAGS + 0x2A
#define SYS_CYCLING_ROAD CODE_FLAGS + 0x2B
#define SYS_SAFARI_MODE CODE_FLAGS + 0x2C
#define SYS_CRUISE_MODE CODE_FLAGS + 0x2D
#define FLAG_UNLOCK_BATTLE_TOWER 0x848
#define FLAG_UNLOCK_SOUTHERN_ISLAND 0x849
#define SYS_TV_HOME CODE_FLAGS + 0x30
#define SYS_TV_WATCH CODE_FLAGS + 0x31
#define SYS_TV_START CODE_FLAGS + 0x32
#define SYS_POPWORD_INPUT CODE_FLAGS + 0x33
#define SYS_MIX_RECORD CODE_FLAGS + 0x34
#define SYS_CLOCK_SET CODE_FLAGS + 0x35
#define SYS_NATIONAL_DEX CODE_FLAGS + 0x36
#define SYS_CAVE_SHIP CODE_FLAGS + 0x37
#define SYS_CAVE_WONDER CODE_FLAGS + 0x38
#define SYS_CAVE_BATTLE CODE_FLAGS + 0x39
#define SYS_SHOAL_TIDE CODE_FLAGS + 0x3A
#define SYS_RIBBON_GET CODE_FLAGS + 0x3B
#define SYS_PC_LANETTE 0x84B
#define SYS_EXDATA_ENABLE 0x84C
#define SYS_ENC_UP_ITEM 0x84D
#define SYS_ENC_DOWN_ITEM 0x84E
#define SYS_BRAILLE_DIG 0x84F
#define SYS_BRAILLE_STRENGTH 0x850
#define SYS_BRAILLE_WAIT 0x851
#define SYS_BRAILLE_FLY 0x852
#define SYS_HAS_EON_TICKET 0x853
#define SYS_PC_LANETTE CODE_FLAGS + 0x4B
#define SYS_MYSTERY_EVENT_ENABLE CODE_FLAGS + 0x4C
#define SYS_ENC_UP_ITEM CODE_FLAGS + 0x4D
#define SYS_ENC_DOWN_ITEM CODE_FLAGS + 0x4E
#define SYS_BRAILLE_DIG CODE_FLAGS + 0x4F
#define SYS_BRAILLE_STRENGTH CODE_FLAGS + 0x50
#define SYS_BRAILLE_WAIT CODE_FLAGS + 0x51
#define SYS_BRAILLE_FLY CODE_FLAGS + 0x52
#define SYS_HAS_EON_TICKET CODE_FLAGS + 0x53
#define SYS_POKEMON_LEAGUE_FLY 0x854
#define SYS_POKEMON_LEAGUE_FLY CODE_FLAGS + 0x54
#define SYS_TV_LATI 0x85D
#define SYS_TV_LATI CODE_FLAGS + 0x5D
#define SYS_SHOAL_ITEM 0x85F
#define SYS_B_DASH 0x860 // got Running Shoes
#define SYS_CTRL_OBJ_DELETE 0x861
#define SYS_RESET_RTC_ENABLE 0x862
#define SYS_SHOAL_ITEM CODE_FLAGS + 0x5F
#define SYS_B_DASH CODE_FLAGS + 0x60 // got Running Shoes
#define SYS_CTRL_OBJ_DELETE CODE_FLAGS + 0x61
#define SYS_RESET_RTC_ENABLE CODE_FLAGS + 0x62
#define SYS_MYSTERY_GIFT_ENABLE CODE_FLAGS + 0x7B
// SPECIAL FLAGS (unknown purpose)

View File

@ -87,6 +87,19 @@ struct UCoords16
u16 y;
};
struct Pokedex
{
/*0x00*/ u8 order;
/*0x01*/ u8 unknown1;
/*0x02*/ u8 nationalMagic; // must equal 0xDA in order to have National mode
/*0x03*/ u8 unknown2;
/*0x04*/ u32 unownPersonality; // set when you first see Unown
/*0x08*/ u32 spindaPersonality; // set when you first see Spinda
/*0x0C*/ u32 unknown3;
/*0x10*/ u8 owned[52];
/*0x44*/ u8 seen[52];
};
struct SaveBlock2
{
/*0x00*/ u8 playerName[8];
@ -104,6 +117,7 @@ struct SaveBlock2
u16 optionsBattleStyle:1; // OPTIONS_BATTLE_STYLE_[SHIFT/SET]
u16 optionsBattleSceneOff:1; // whether battle animations are disabled
u16 regionMapZoom:1; // whether the map is zoomed in
/*0x18*/ struct Pokedex pokedex;
};
extern struct SaveBlock2 *gSaveBlock2Ptr;
@ -552,6 +566,9 @@ struct RecordMixingGift
struct RecordMixingGiftData data;
};
#define FLAGS_NUMBER 300
#define VARS_NUMBER 256
struct SaveBlock1
{
/*0x00*/ struct Coords16 pos;
@ -585,8 +602,8 @@ struct SaveBlock1
/*0x9CA*/ u8 trainerRematches[100];
/*0xA30*/ struct MapObject mapObjects[16];
/*0xC70*/ struct MapObjectTemplate mapObjectTemplates[64];
/*0x1270*/ u8 flags[300];
/*0x139C*/ u16 vars[256];
/*0x1270*/ u8 flags[FLAGS_NUMBER];
/*0x139C*/ u16 vars[VARS_NUMBER];
// TODO: FIX BELOW

View File

@ -94,7 +94,6 @@ SECTIONS {
asm/scrcmd.o(.text);
asm/field_control_avatar.o(.text);
src/event_data.o(.text);
asm/event_data.o(.text);
asm/coord_event_weather.o(.text);
asm/field_tasks.o(.text);
asm/clock.o(.text);

View File

@ -1,7 +1,33 @@
#include "global.h"
#include "event_data.h"
extern u8 gUnknown_020375FC[16];
#define TEMP_FLAGS_SIZE 0x4
#define TEMP_UPPER_FLAGS_SIZE 0x8
#define TEMP_VARS_SIZE 0x20
EWRAM_DATA u16 gSpecialVar_0x8000 = 0;
EWRAM_DATA u16 gSpecialVar_0x8001 = 0;
EWRAM_DATA u16 gSpecialVar_0x8002 = 0;
EWRAM_DATA u16 gSpecialVar_0x8003 = 0;
EWRAM_DATA u16 gSpecialVar_0x8004 = 0;
EWRAM_DATA u16 gSpecialVar_0x8005 = 0;
EWRAM_DATA u16 gSpecialVar_0x8006 = 0;
EWRAM_DATA u16 gSpecialVar_0x8007 = 0;
EWRAM_DATA u16 gSpecialVar_0x8008 = 0;
EWRAM_DATA u16 gSpecialVar_0x8009 = 0;
EWRAM_DATA u16 gSpecialVar_0x800A = 0;
EWRAM_DATA u16 gSpecialVar_0x800B = 0;
EWRAM_DATA u16 gScriptResult = 0;
EWRAM_DATA u16 gScriptLastTalked = 0;
EWRAM_DATA u16 gScriptFacing = 0;
EWRAM_DATA u16 gSpecialVar_0x8012 = 0;
EWRAM_DATA u16 gSpecialVar_0x8013 = 0;
EWRAM_DATA u16 gSpecialVar_0x8014 = 0;
EWRAM_DATA static u8 gUnknown_020375FC[16] = {0};
extern u16 * const gSpecialVars[];
extern void sub_80BB358(void);
void InitEventData(void)
{
@ -9,3 +35,202 @@ void InitEventData(void)
memset(gSaveBlock1Ptr->vars, 0, sizeof(gSaveBlock1Ptr->vars));
memset(gUnknown_020375FC, 0, sizeof(gUnknown_020375FC));
}
void ClearTempFieldEventData(void)
{
memset(gSaveBlock1Ptr->flags, 0, TEMP_FLAGS_SIZE);
memset(gSaveBlock1Ptr->vars, 0, TEMP_VARS_SIZE);
FlagReset(SYS_ENC_UP_ITEM);
FlagReset(SYS_ENC_DOWN_ITEM);
FlagReset(SYS_USE_STRENGTH);
FlagReset(SYS_CTRL_OBJ_DELETE);
FlagReset(SYS_UNKNOWN_880);
}
// probably had different flag splits at one point.
void ClearUpperFlags(void)
{
memset(gSaveBlock1Ptr->flags + 0x124, 0, TEMP_UPPER_FLAGS_SIZE);
}
void DisableNationalPokedex(void)
{
u16 *nationalDexVar = GetVarPointer(VAR_NATIONAL_DEX);
gSaveBlock2Ptr->pokedex.nationalMagic = 0;
*nationalDexVar = 0;
FlagReset(SYS_NATIONAL_DEX);
}
void EnableNationalPokedex(void)
{
u16 *nationalDexVar = GetVarPointer(VAR_NATIONAL_DEX);
gSaveBlock2Ptr->pokedex.nationalMagic = 0xDA;
*nationalDexVar = 0x302;
FlagSet(SYS_NATIONAL_DEX);
gSaveBlock2Ptr->pokedex.unknown1 = 1;
gSaveBlock2Ptr->pokedex.order = 0;
sub_80BB358();
}
bool32 IsNationalPokedexEnabled(void)
{
if (gSaveBlock2Ptr->pokedex.nationalMagic == 0xDA && VarGet(VAR_NATIONAL_DEX) == 0x302 && FlagGet(SYS_NATIONAL_DEX))
return TRUE;
else
return FALSE;
}
void DisableMysteryEvent(void)
{
FlagReset(SYS_MYSTERY_EVENT_ENABLE);
}
void EnableMysteryEvent(void)
{
FlagSet(SYS_MYSTERY_EVENT_ENABLE);
}
bool32 IsMysteryEventEnabled(void)
{
return FlagGet(SYS_MYSTERY_EVENT_ENABLE);
}
void DisableMysteryGift(void)
{
FlagReset(SYS_MYSTERY_GIFT_ENABLE);
}
void EnableMysteryGift(void)
{
FlagSet(SYS_MYSTERY_GIFT_ENABLE);
}
bool32 IsMysteryGiftEnabled(void)
{
return FlagGet(SYS_MYSTERY_GIFT_ENABLE);
}
void sub_809D4D8(void)
{
FlagReset(0x1E4);
FlagReset(0x1E5);
FlagReset(0x1E6);
FlagReset(0x1E7);
FlagReset(0x1E8);
FlagReset(0x1E9);
FlagReset(0x1EA);
FlagReset(0x1EB);
FlagReset(0x1EC);
FlagReset(0x1ED);
FlagReset(0x1EE);
FlagReset(0x1EF);
FlagReset(0x1F0);
FlagReset(0x1F1);
FlagReset(0x1F2);
FlagReset(0x1F3);
}
void sub_809D570(void)
{
VarSet(0x40DD, 0);
VarSet(0x40DE, 0);
VarSet(0x40DF, 0);
VarSet(0x40E0, 0);
VarSet(0x40E1, 0);
VarSet(0x40E2, 0);
VarSet(0x40E3, 0);
VarSet(0x40E4, 0);
}
void DisableResetRTC(void)
{
VarSet(VAR_RESET_RTC_ENABLE, 0);
FlagReset(SYS_RESET_RTC_ENABLE);
}
void EnableResetRTC(void)
{
VarSet(VAR_RESET_RTC_ENABLE, 0x920);
FlagSet(SYS_RESET_RTC_ENABLE);
}
bool32 CanResetRTC(void)
{
if (FlagGet(SYS_RESET_RTC_ENABLE) && VarGet(VAR_RESET_RTC_ENABLE) == 0x920)
return TRUE;
else
return FALSE;
}
u16 *GetVarPointer(u16 id)
{
if (id < 0x4000)
return NULL;
if ((s16)id >= 0)
return &gSaveBlock1Ptr->vars[id - 0x4000];
return gSpecialVars[id - 0x8000];
}
u16 VarGet(u16 id)
{
u16 *ptr = GetVarPointer(id);
if (!ptr)
return id;
return *ptr;
}
bool8 VarSet(u16 id, u16 value)
{
u16 *ptr = GetVarPointer(id);
if (!ptr)
return FALSE;
*ptr = value;
return TRUE;
}
u8 VarGetFieldObjectGraphicsId(u8 id)
{
return VarGet(0x4010 + id);
}
u8 *GetFlagPointer(u16 id)
{
if (id == 0)
return 0;
if (id < 0x4000)
return &gSaveBlock1Ptr->flags[id / 8];
return &gUnknown_020375FC[(id - 0x4000) / 8];
}
u8 FlagSet(u16 id)
{
u8 *ptr = GetFlagPointer(id);
if (ptr)
*ptr |= 1 << (id & 7);
return 0;
}
u8 FlagReset(u16 id)
{
u8 *ptr = GetFlagPointer(id);
if (ptr)
*ptr &= ~(1 << (id & 7));
return 0;
}
bool8 FlagGet(u16 id)
{
u8 *ptr = GetFlagPointer(id);
if (!ptr)
return FALSE;
if (!(((*ptr) >> (id & 7)) & 1))
return FALSE;
return TRUE;
}

View File

@ -812,44 +812,7 @@ gUnknown_020375D4: @ 20375D4
gUnknown_020375D6: @ 20375D6
.space 0x2
gUnknown_020375D8: @ 20375D8
.space 0x2
gUnknown_020375DA: @ 20375DA
.space 0x2
gUnknown_020375DC: @ 20375DC
.space 0x4
gUnknown_020375E0: @ 20375E0
.space 0x2
gUnknown_020375E2: @ 20375E2
.space 0x2
gUnknown_020375E4: @ 20375E4
.space 0x2
gUnknown_020375E6: @ 20375E6
.space 0xA
gUnknown_020375F0: @ 20375F0
.space 0x2
gUnknown_020375F2: @ 20375F2
.space 0x2
gUnknown_020375F4: @ 20375F4
.space 0x2
gUnknown_020375F6: @ 20375F6
.space 0x2
gUnknown_020375F8: @ 20375F8
.space 0x4
gUnknown_020375FC: @ 20375FC
.space 0x10
.include "src/event_data.o"
gUnknown_0203760C: @ 203760C
.space 0x1