split rom_81258BC.s

This commit is contained in:
ProjectRevoTPP 2017-04-07 06:59:28 +01:00 committed by YamaArashi
parent ff2f6e118a
commit 0e8413edf2
7 changed files with 5899 additions and 5849 deletions

2224
asm/battle_anim_81258BC.s Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

404
asm/decoration_inventory.s Normal file
View File

@ -0,0 +1,404 @@
.include "constants/gba_constants.inc"
.include "constants/species_constants.inc"
.include "asm/macros.inc"
.syntax unified
.text
thumb_func_start sub_8133F4C
sub_8133F4C: @ 8133F4C
push {r4,r5,lr}
lsls r0, 24
movs r3, 0
ldr r1, _08133F7C @ =gDecorationInventories
lsrs r2, r0, 21
adds r0, r2, r1
ldrb r0, [r0, 0x4]
cmp r3, r0
bcs _08133F76
adds r5, r1, 0
movs r4, 0
_08133F62:
adds r0, r2, r5
ldr r1, [r0]
adds r1, r3
strb r4, [r1]
adds r1, r3, 0x1
lsls r1, 24
lsrs r3, r1, 24
ldrb r0, [r0, 0x4]
cmp r3, r0
bcc _08133F62
_08133F76:
pop {r4,r5}
pop {r0}
bx r0
.align 2, 0
_08133F7C: .4byte gDecorationInventories
thumb_func_end sub_8133F4C
thumb_func_start sub_8133F80
sub_8133F80: @ 8133F80
push {r4,lr}
movs r4, 0
_08133F84:
adds r0, r4, 0
bl sub_8133F4C
adds r0, r4, 0x1
lsls r0, 24
lsrs r4, r0, 24
cmp r4, 0x7
bls _08133F84
pop {r4}
pop {r0}
bx r0
thumb_func_end sub_8133F80
thumb_func_start sub_8133F9C
sub_8133F9C: @ 8133F9C
push {r4,lr}
lsls r0, 24
movs r2, 0
ldr r1, _08133FC8 @ =gDecorationInventories
lsrs r0, 21
adds r0, r1
movs r1, 0x4
ldrsb r1, [r0, r1]
cmp r2, r1
bge _08133FD8
adds r4, r0, 0
adds r3, r1, 0
_08133FB4:
lsls r0, r2, 24
asrs r1, r0, 24
ldr r0, [r4]
adds r0, r1
ldrb r0, [r0]
cmp r0, 0
bne _08133FCC
adds r0, r1, 0
b _08133FDC
.align 2, 0
_08133FC8: .4byte gDecorationInventories
_08133FCC:
adds r0, r1, 0x1
lsls r0, 24
lsrs r2, r0, 24
asrs r0, 24
cmp r0, r3
blt _08133FB4
_08133FD8:
movs r0, 0x1
negs r0, r0
_08133FDC:
pop {r4}
pop {r1}
bx r1
thumb_func_end sub_8133F9C
thumb_func_start sub_8133FE4
sub_8133FE4: @ 8133FE4
push {r4,lr}
lsls r0, 24
lsrs r3, r0, 24
ldr r1, _08134010 @ =gDecorations
lsls r0, r3, 5
adds r0, r1
ldrb r0, [r0, 0x13]
movs r2, 0
ldr r1, _08134014 @ =gDecorationInventories
lsls r0, 3
adds r0, r1
ldrb r1, [r0, 0x4]
cmp r2, r1
bcs _08134022
ldr r4, [r0]
_08134002:
adds r0, r4, r2
ldrb r0, [r0]
cmp r0, r3
bne _08134018
movs r0, 0x1
b _08134024
.align 2, 0
_08134010: .4byte gDecorations
_08134014: .4byte gDecorationInventories
_08134018:
adds r0, r2, 0x1
lsls r0, 24
lsrs r2, r0, 24
cmp r2, r1
bcc _08134002
_08134022:
movs r0, 0
_08134024:
pop {r4}
pop {r1}
bx r1
thumb_func_end sub_8133FE4
thumb_func_start IsThereStorageSpaceForDecoration
IsThereStorageSpaceForDecoration: @ 813402C
push {r4,r5,lr}
lsls r0, 24
lsrs r0, 24
adds r4, r0, 0
cmp r4, 0
beq _0813406C
ldr r1, _08134064 @ =gDecorations
lsls r0, r4, 5
adds r0, r1
ldrb r5, [r0, 0x13]
adds r0, r5, 0
bl sub_8133F9C
lsls r0, 24
asrs r2, r0, 24
movs r0, 0x1
negs r0, r0
cmp r2, r0
beq _0813406C
ldr r0, _08134068 @ =gDecorationInventories
lsls r1, r5, 3
adds r1, r0
ldr r0, [r1]
adds r0, r2
strb r4, [r0]
movs r0, 0x1
b _0813406E
.align 2, 0
_08134064: .4byte gDecorations
_08134068: .4byte gDecorationInventories
_0813406C:
movs r0, 0
_0813406E:
pop {r4,r5}
pop {r1}
bx r1
thumb_func_end IsThereStorageSpaceForDecoration
thumb_func_start sub_8134074
sub_8134074: @ 8134074
push {lr}
lsls r0, 24
lsrs r0, 24
cmp r0, 0
beq _081340A0
ldr r1, _0813409C @ =gDecorations
lsls r0, 5
adds r0, r1
ldrb r0, [r0, 0x13]
bl sub_8133F9C
lsls r0, 24
asrs r0, 24
movs r1, 0x1
negs r1, r1
cmp r0, r1
beq _081340A0
movs r0, 0x1
b _081340A2
.align 2, 0
_0813409C: .4byte gDecorations
_081340A0:
movs r0, 0
_081340A2:
pop {r1}
bx r1
thumb_func_end sub_8134074
thumb_func_start sub_81340A8
sub_81340A8: @ 81340A8
push {r4-r6,lr}
lsls r0, 24
lsrs r5, r0, 24
movs r3, 0
cmp r5, 0
bne _081340C4
b _081340F2
_081340B6:
movs r0, 0
strb r0, [r1]
adds r0, r6, 0
bl sub_8134104
movs r0, 0x1
b _081340F4
_081340C4:
ldr r2, _081340FC @ =gDecorationInventories
ldr r1, _08134100 @ =gDecorations
lsls r0, r5, 5
adds r0, r1
ldrb r4, [r0, 0x13]
lsls r0, r4, 3
adds r0, r2
ldrb r1, [r0, 0x4]
cmp r3, r1
bcs _081340F2
adds r6, r4, 0
adds r4, r0, 0
adds r2, r1, 0
_081340DE:
ldr r0, [r4]
adds r1, r0, r3
ldrb r0, [r1]
cmp r0, r5
beq _081340B6
adds r0, r3, 0x1
lsls r0, 24
lsrs r3, r0, 24
cmp r3, r2
bcc _081340DE
_081340F2:
movs r0, 0
_081340F4:
pop {r4-r6}
pop {r1}
bx r1
.align 2, 0
_081340FC: .4byte gDecorationInventories
_08134100: .4byte gDecorations
thumb_func_end sub_81340A8
thumb_func_start sub_8134104
sub_8134104: @ 8134104
push {r4-r7,lr}
mov r7, r10
mov r6, r9
mov r5, r8
push {r5-r7}
sub sp, 0x4
lsls r0, 24
movs r6, 0
ldr r2, _08134190 @ =gDecorationInventories
lsrs r1, r0, 21
adds r0, r1, r2
ldrb r0, [r0, 0x4]
cmp r6, r0
bcs _08134180
adds r7, r1, 0
mov r8, r0
str r0, [sp]
_08134126:
adds r1, r6, 0x1
lsls r0, r1, 24
lsrs r3, r0, 24
adds r2, r7, 0
mov r12, r1
cmp r3, r8
bcs _08134174
ldr r1, _08134190 @ =gDecorationInventories
mov r10, r1
adds r0, r1, 0
mov r9, r0
_0813413C:
mov r1, r10
adds r5, r2, r1
ldr r1, [r5]
adds r0, r1, r3
ldrb r4, [r0]
adds r2, r4, 0
cmp r2, 0
beq _08134162
adds r0, r1, r6
ldrb r1, [r0]
cmp r1, 0
beq _08134158
cmp r1, r2
bls _08134162
_08134158:
ldrb r1, [r0]
strb r4, [r0]
ldr r0, [r5]
adds r0, r3
strb r1, [r0]
_08134162:
adds r0, r3, 0x1
lsls r0, 24
lsrs r3, r0, 24
adds r2, r7, 0
mov r1, r9
adds r0, r2, r1
ldrb r0, [r0, 0x4]
cmp r3, r0
bcc _0813413C
_08134174:
mov r1, r12
lsls r0, r1, 24
lsrs r6, r0, 24
ldr r0, [sp]
cmp r6, r0
bcc _08134126
_08134180:
add sp, 0x4
pop {r3-r5}
mov r8, r3
mov r9, r4
mov r10, r5
pop {r4-r7}
pop {r0}
bx r0
.align 2, 0
_08134190: .4byte gDecorationInventories
thumb_func_end sub_8134104
thumb_func_start sub_8134194
sub_8134194: @ 8134194
push {r4,r5,lr}
lsls r0, 24
movs r4, 0
movs r3, 0
ldr r2, _081341D0 @ =gDecorationInventories
lsrs r1, r0, 21
adds r0, r1, r2
ldrb r0, [r0, 0x4]
cmp r4, r0
bcs _081341C8
adds r5, r2, 0
_081341AA:
adds r2, r1, r5
ldr r0, [r2]
adds r0, r3
ldrb r0, [r0]
cmp r0, 0
beq _081341BC
adds r0, r4, 0x1
lsls r0, 24
lsrs r4, r0, 24
_081341BC:
adds r0, r3, 0x1
lsls r0, 24
lsrs r3, r0, 24
ldrb r2, [r2, 0x4]
cmp r3, r2
bcc _081341AA
_081341C8:
adds r0, r4, 0
pop {r4,r5}
pop {r1}
bx r1
.align 2, 0
_081341D0: .4byte gDecorationInventories
thumb_func_end sub_8134194
thumb_func_start sub_81341D4
sub_81341D4: @ 81341D4
push {r4,r5,lr}
movs r5, 0
movs r4, 0
_081341DA:
adds r0, r4, 0
bl sub_8134194
adds r0, r5, r0
lsls r0, 24
lsrs r5, r0, 24
adds r0, r4, 0x1
lsls r0, 24
lsrs r4, r0, 24
cmp r4, 0x7
bls _081341DA
adds r0, r5, 0
pop {r4,r5}
pop {r1}
bx r1
thumb_func_end sub_81341D4
.align 2, 0 @ Don't pad with nop.

318
asm/fldeff_softboiled.s Normal file
View File

@ -0,0 +1,318 @@
.include "constants/gba_constants.inc"
.include "constants/species_constants.inc"
.include "asm/macros.inc"
.syntax unified
.text
thumb_func_start SetUpFieldMove_SoftBoiled
SetUpFieldMove_SoftBoiled: @ 8133CCC
push {r4-r6,lr}
mov r6, r8
push {r6}
ldr r0, _08133D14 @ =gLastFieldPokeMenuOpened
mov r8, r0
ldrb r0, [r0]
movs r6, 0x64
muls r0, r6
ldr r4, _08133D18 @ =gPlayerParty
adds r0, r4
movs r1, 0x3A
bl GetMonData
adds r5, r0, 0
lsls r5, 16
lsrs r5, 16
mov r1, r8
ldrb r0, [r1]
muls r0, r6
adds r0, r4
movs r1, 0x39
bl GetMonData
adds r4, r0, 0
lsls r4, 16
lsrs r4, 16
adds r0, r5, 0
movs r1, 0x5
bl __udivsi3
lsls r0, 16
lsrs r0, 16
cmp r4, r0
bcs _08133D1C
movs r0, 0
b _08133D1E
.align 2, 0
_08133D14: .4byte gLastFieldPokeMenuOpened
_08133D18: .4byte gPlayerParty
_08133D1C:
movs r0, 0x1
_08133D1E:
pop {r3}
mov r8, r3
pop {r4-r6}
pop {r1}
bx r1
thumb_func_end SetUpFieldMove_SoftBoiled
thumb_func_start sub_8133D28
sub_8133D28: @ 8133D28
push {lr}
lsls r0, 24
lsrs r0, 24
ldr r1, _08133D44 @ =0x02001000
ldr r2, _08133D48 @ =sub_8133D50
str r2, [r1, 0xC]
ldr r2, _08133D4C @ =0x0001a272
adds r1, r2
movs r2, 0x3
strh r2, [r1]
bl sub_808A004
pop {r0}
bx r0
.align 2, 0
_08133D44: .4byte 0x02001000
_08133D48: .4byte sub_8133D50
_08133D4C: .4byte 0x0001a272
thumb_func_end sub_8133D28
thumb_func_start sub_8133D50
sub_8133D50: @ 8133D50
push {r4-r7,lr}
mov r7, r10
mov r6, r9
mov r5, r8
push {r5-r7}
lsls r0, 24
lsrs r7, r0, 24
ldr r0, _08133DA0 @ =gSprites
mov r9, r0
ldr r1, _08133DA4 @ =0x02001000
mov r10, r1
ldrb r1, [r1, 0x1]
lsls r0, r1, 4
adds r0, r1
lsls r0, 2
add r0, r9
ldrh r0, [r0, 0x2E]
lsls r0, 24
lsrs r0, 24
mov r8, r0
mov r2, r10
ldrb r1, [r2, 0x2]
lsls r0, r1, 4
adds r0, r1
lsls r0, 2
mov r2, r9
adds r1, r0, r2
ldrh r0, [r1, 0x2E]
lsls r0, 24
lsrs r6, r0, 24
mov r0, r8
cmp r0, 0x5
bhi _08133D96
cmp r6, 0x5
bls _08133DA8
_08133D96:
adds r0, r7, 0
bl sub_806CD44
b _08133E4E
.align 2, 0
_08133DA0: .4byte gSprites
_08133DA4: .4byte 0x02001000
_08133DA8:
movs r5, 0xD8
lsls r5, 9
add r5, r10
movs r2, 0x2E
ldrsh r0, [r1, r2]
movs r1, 0x64
muls r0, r1
ldr r2, _08133DE4 @ =gPlayerParty
adds r0, r2
str r0, [r5]
movs r1, 0x39
bl GetMonData
lsls r0, 16
lsrs r4, r0, 16
cmp r4, 0
beq _08133DDA
cmp r8, r6
beq _08133DDA
ldr r0, [r5]
movs r1, 0x3A
bl GetMonData
cmp r0, r4
bne _08133DE8
_08133DDA:
adds r0, r7, 0
bl sub_8133EB8
b _08133E4E
.align 2, 0
_08133DE4: .4byte gPlayerParty
_08133DE8:
movs r0, 0x1
bl PlaySE
mov r0, r10
ldrb r1, [r0, 0x1]
lsls r0, r1, 4
adds r0, r1
lsls r0, 2
add r0, r9
ldrh r0, [r0, 0x2E]
movs r1, 0
strb r0, [r5, 0x5]
ldrb r0, [r5, 0x5]
movs r2, 0x64
muls r0, r2
ldr r2, _08133E5C @ =gPlayerParty
adds r0, r2
str r0, [r5]
strh r1, [r5, 0x6]
ldr r1, _08133E60 @ =0xffff8000
str r1, [r5, 0xC]
ldr r1, _08133E64 @ =sub_8133EF8
str r1, [r5, 0x10]
movs r1, 0x3A
bl GetMonData
ldr r1, _08133E68 @ =gTasks
lsls r4, r7, 2
adds r4, r7
lsls r4, 3
adds r4, r1
strh r0, [r4, 0x1C]
ldr r0, [r5]
movs r1, 0x39
bl GetMonData
strh r0, [r4, 0x1E]
movs r1, 0x1C
ldrsh r0, [r4, r1]
movs r1, 0x5
bl __divsi3
strh r0, [r4, 0x20]
bl sub_806D5A4
ldr r0, _08133E6C @ =sub_806FA18
str r0, [r4]
ldrh r1, [r4, 0x1E]
ldr r0, _08133E70 @ =0x0001a282
add r0, r10
strh r1, [r0]
_08133E4E:
pop {r3-r5}
mov r8, r3
mov r9, r4
mov r10, r5
pop {r4-r7}
pop {r0}
bx r0
.align 2, 0
_08133E5C: .4byte gPlayerParty
_08133E60: .4byte 0xffff8000
_08133E64: .4byte sub_8133EF8
_08133E68: .4byte gTasks
_08133E6C: .4byte sub_806FA18
_08133E70: .4byte 0x0001a282
thumb_func_end sub_8133D50
thumb_func_start sub_8133E74
sub_8133E74: @ 8133E74
push {r4,lr}
lsls r0, 24
lsrs r4, r0, 24
ldr r0, _08133EAC @ =gUnknown_0202E8F6
ldrb r0, [r0]
cmp r0, 0
bne _08133EA4
movs r0, 0x3
movs r1, 0xE
movs r2, 0x1A
movs r3, 0x13
bl MenuZeroFillWindowRect
movs r0, 0x3
movs r1, 0
bl sub_806D538
ldr r0, _08133EB0 @ =gTasks
lsls r1, r4, 2
adds r1, r4
lsls r1, 3
adds r1, r0
ldr r0, _08133EB4 @ =sub_806CB74
str r0, [r1]
_08133EA4:
pop {r4}
pop {r0}
bx r0
.align 2, 0
_08133EAC: .4byte gUnknown_0202E8F6
_08133EB0: .4byte gTasks
_08133EB4: .4byte sub_806CB74
thumb_func_end sub_8133E74
thumb_func_start sub_8133EB8
sub_8133EB8: @ 8133EB8
push {r4,lr}
adds r4, r0, 0
lsls r4, 24
lsrs r4, 24
ldr r1, _08133EE8 @ =gUnknown_0202E8F4
movs r0, 0
strb r0, [r1]
bl sub_806D5A4
ldr r0, _08133EEC @ =gOtherText_CantUseOnPoke
movs r1, 0x1
bl sub_806E834
ldr r1, _08133EF0 @ =gTasks
lsls r0, r4, 2
adds r0, r4
lsls r0, 3
adds r0, r1
ldr r1, _08133EF4 @ =sub_8133E74
str r1, [r0]
pop {r4}
pop {r0}
bx r0
.align 2, 0
_08133EE8: .4byte gUnknown_0202E8F4
_08133EEC: .4byte gOtherText_CantUseOnPoke
_08133EF0: .4byte gTasks
_08133EF4: .4byte sub_8133E74
thumb_func_end sub_8133EB8
thumb_func_start sub_8133EF8
sub_8133EF8: @ 8133EF8
push {r4,lr}
bl sub_806CCE4
ldr r4, _08133F3C @ =0x0201b000
ldr r0, _08133F40 @ =0x00000261
adds r1, r4, r0
movs r0, 0x2
strb r0, [r1]
ldr r0, _08133F44 @ =0xfffe6000
adds r4, r0
ldrb r1, [r4, 0x1]
lsls r0, r1, 4
adds r0, r1
lsls r0, 2
ldr r1, _08133F48 @ =gSprites
adds r0, r1
bl DestroySprite
movs r0, 0x3
movs r1, 0xE
movs r2, 0x1A
movs r3, 0x13
bl MenuZeroFillWindowRect
movs r0, 0
movs r1, 0
bl sub_806D538
ldrb r0, [r4]
bl SwitchTaskToFollowupFunc
pop {r4}
pop {r0}
bx r0
.align 2, 0
_08133F3C: .4byte 0x0201b000
_08133F40: .4byte 0x00000261
_08133F44: .4byte 0xfffe6000
_08133F48: .4byte gSprites
thumb_func_end sub_8133EF8
.align 2, 0 @ Don't pad with nop.

211
asm/fldeff_sweetscent.s Normal file
View File

@ -0,0 +1,211 @@
.include "constants/gba_constants.inc"
.include "constants/species_constants.inc"
.include "asm/macros.inc"
.syntax unified
.text
thumb_func_start SetUpFieldMove_SweetScent
SetUpFieldMove_SweetScent: @ 812BFB4
ldr r1, _0812BFC4 @ =gUnknown_0300485C
ldr r0, _0812BFC8 @ =sub_808AB90
str r0, [r1]
ldr r1, _0812BFCC @ =gUnknown_03005CE4
ldr r0, _0812BFD0 @ =sub_812BFD4
str r0, [r1]
movs r0, 0x1
bx lr
.align 2, 0
_0812BFC4: .4byte gUnknown_0300485C
_0812BFC8: .4byte sub_808AB90
_0812BFCC: .4byte gUnknown_03005CE4
_0812BFD0: .4byte sub_812BFD4
thumb_func_end SetUpFieldMove_SweetScent
thumb_func_start sub_812BFD4
sub_812BFD4: @ 812BFD4
push {lr}
movs r0, 0x33
bl FieldEffectStart
ldr r0, _0812BFE8 @ =gUnknown_0202FF84
ldr r1, _0812BFEC @ =gLastFieldPokeMenuOpened
ldrb r1, [r1]
str r1, [r0]
pop {r0}
bx r0
.align 2, 0
_0812BFE8: .4byte gUnknown_0202FF84
_0812BFEC: .4byte gLastFieldPokeMenuOpened
thumb_func_end sub_812BFD4
thumb_func_start FldEff_SweetScent
FldEff_SweetScent: @ 812BFF0
push {lr}
bl oei_task_add
lsls r0, 24
lsrs r0, 24
ldr r2, _0812C014 @ =gTasks
lsls r1, r0, 2
adds r1, r0
lsls r1, 3
adds r1, r2
ldr r2, _0812C018 @ =sub_812C01C
lsrs r0, r2, 16
strh r0, [r1, 0x18]
strh r2, [r1, 0x1A]
movs r0, 0
pop {r1}
bx r1
.align 2, 0
_0812C014: .4byte gTasks
_0812C018: .4byte sub_812C01C
thumb_func_end FldEff_SweetScent
thumb_func_start sub_812C01C
sub_812C01C: @ 812C01C
push {lr}
sub sp, 0x4
movs r0, 0xEC
bl PlaySE
bl GetPlayerAvatarObjectId
ldr r2, _0812C078 @ =gSprites
lsls r0, 24
lsrs r0, 24
lsls r1, r0, 4
adds r1, r0
lsls r1, 2
adds r1, r2
ldrb r1, [r1, 0x5]
lsrs r1, 4
adds r1, 0x10
movs r0, 0x1
lsls r0, r1
mvns r0, r0
movs r1, 0x1F
str r1, [sp]
movs r1, 0x4
movs r2, 0
movs r3, 0x8
bl BeginNormalPaletteFade
ldr r0, _0812C07C @ =sub_812C084
movs r1, 0
bl CreateTask
lsls r0, 24
lsrs r0, 24
ldr r2, _0812C080 @ =gTasks
lsls r1, r0, 2
adds r1, r0
lsls r1, 3
adds r1, r2
movs r0, 0
strh r0, [r1, 0x8]
movs r0, 0x33
bl FieldEffectActiveListRemove
add sp, 0x4
pop {r0}
bx r0
.align 2, 0
_0812C078: .4byte gSprites
_0812C07C: .4byte sub_812C084
_0812C080: .4byte gTasks
thumb_func_end sub_812C01C
thumb_func_start sub_812C084
sub_812C084: @ 812C084
push {r4,r5,lr}
sub sp, 0x4
lsls r0, 24
lsrs r5, r0, 24
ldr r0, _0812C0C8 @ =gPaletteFade
ldrb r1, [r0, 0x7]
movs r0, 0x80
ands r0, r1
lsls r0, 24
lsrs r2, r0, 24
cmp r2, 0
bne _0812C110
ldr r0, _0812C0CC @ =gTasks
lsls r1, r5, 2
adds r1, r5
lsls r1, 3
adds r4, r1, r0
ldrh r1, [r4, 0x8]
movs r3, 0x8
ldrsh r0, [r4, r3]
cmp r0, 0x40
bne _0812C10C
strh r2, [r4, 0x8]
bl SweetScentWildEncounter
lsls r0, 24
lsrs r0, 24
cmp r0, 0x1
bne _0812C0D0
adds r0, r5, 0
bl DestroyTask
b _0812C110
.align 2, 0
_0812C0C8: .4byte gPaletteFade
_0812C0CC: .4byte gTasks
_0812C0D0:
ldr r0, _0812C104 @ =sub_812C118
str r0, [r4]
bl GetPlayerAvatarObjectId
ldr r2, _0812C108 @ =gSprites
lsls r0, 24
lsrs r0, 24
lsls r1, r0, 4
adds r1, r0
lsls r1, 2
adds r1, r2
ldrb r1, [r1, 0x5]
lsrs r1, 4
adds r1, 0x10
movs r0, 0x1
lsls r0, r1
mvns r0, r0
movs r1, 0x1F
str r1, [sp]
movs r1, 0x4
movs r2, 0x8
movs r3, 0
bl BeginNormalPaletteFade
b _0812C110
.align 2, 0
_0812C104: .4byte sub_812C118
_0812C108: .4byte gSprites
_0812C10C:
adds r0, r1, 0x1
strh r0, [r4, 0x8]
_0812C110:
add sp, 0x4
pop {r4,r5}
pop {r0}
bx r0
thumb_func_end sub_812C084
thumb_func_start sub_812C118
sub_812C118: @ 812C118
push {r4,lr}
lsls r0, 24
lsrs r4, r0, 24
ldr r0, _0812C13C @ =gPaletteFade
ldrb r1, [r0, 0x7]
movs r0, 0x80
ands r0, r1
cmp r0, 0
bne _0812C136
ldr r0, _0812C140 @ =SweetScentNothingHereScript
bl ScriptContext1_SetupScript
adds r0, r4, 0
bl DestroyTask
_0812C136:
pop {r4}
pop {r0}
bx r0
.align 2, 0
_0812C13C: .4byte gPaletteFade
_0812C140: .4byte SweetScentNothingHereScript
thumb_func_end sub_812C118
.align 2, 0 @ Don't pad with nop.

2735
asm/learn_move.s Normal file

File diff suppressed because it is too large Load Diff

View File

@ -240,7 +240,12 @@ SECTIONS {
asm/mystery_event_script.o(.text);
asm/field_effect_helpers.o(.text);
asm/contest_ai.o(.text);
asm/rom_81258BC.o(.text);
asm/battle_anim_81258BC.o(.text);
asm/fldeff_sweetscent.o(.text);
asm/battle_anim_812C144.o(.text);
asm/learn_move.o(.text);
asm/fldeff_softboiled.o(.text);
asm/decoration_inventory.o(.text);
asm/roamer.o(.text);
asm/battle_tower.o(.text);
asm/use_pokeblock.o(.text);