mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
split battle_anim_80FE840.s
This commit is contained in:
parent
6cf39e8a6e
commit
5ddf6655bc
File diff suppressed because it is too large
Load Diff
9550
asm/battle_anim_effects_1.s
Normal file
9550
asm/battle_anim_effects_1.s
Normal file
File diff suppressed because it is too large
Load Diff
7544
asm/battle_anim_effects_2.s
Normal file
7544
asm/battle_anim_effects_2.s
Normal file
File diff suppressed because it is too large
Load Diff
3059
asm/battle_anim_utility_funcs.s
Normal file
3059
asm/battle_anim_utility_funcs.s
Normal file
File diff suppressed because it is too large
Load Diff
2035
asm/battle_intro.s
Normal file
2035
asm/battle_intro.s
Normal file
File diff suppressed because it is too large
Load Diff
791
asm/bug.s
Normal file
791
asm/bug.s
Normal file
@ -0,0 +1,791 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8110368
|
||||
sub_8110368: @ 8110368
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110394
|
||||
adds r0, r6, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAffineAnim
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r1, [r0, 0x4]
|
||||
negs r1, r1
|
||||
strh r1, [r0, 0x4]
|
||||
ldrh r1, [r0]
|
||||
negs r1, r1
|
||||
strh r1, [r0]
|
||||
b _081103C4
|
||||
.pool
|
||||
_08110394:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _081103C4
|
||||
adds r0, r6, 0
|
||||
movs r1, 0x1
|
||||
bl StartSpriteAffineAnim
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x2]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x2]
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
ldrh r0, [r1, 0x6]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x6]
|
||||
ldrh r0, [r1]
|
||||
negs r0, r0
|
||||
strh r0, [r1]
|
||||
_081103C4:
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
ldr r4, =gBattleAnimArgs
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x20]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x2]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x22]
|
||||
ldrh r0, [r4, 0x8]
|
||||
strh r0, [r6, 0x2E]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x32]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r4, [r4, 0x6]
|
||||
adds r0, r4
|
||||
strh r0, [r6, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r6, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r6, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110368
|
||||
|
||||
thumb_func_start sub_8110438
|
||||
sub_8110438: @ 8110438
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0811045C
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
negs r0, r0
|
||||
strh r0, [r1]
|
||||
adds r0, r6, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAffineAnim
|
||||
b _08110478
|
||||
.pool
|
||||
_0811045C:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _08110478
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r1, [r0, 0x2]
|
||||
negs r1, r1
|
||||
strh r1, [r0, 0x2]
|
||||
ldrh r1, [r0]
|
||||
negs r1, r1
|
||||
strh r1, [r0]
|
||||
_08110478:
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
ldr r4, =gBattleAnimArgs
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x20]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x2]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x22]
|
||||
ldrh r0, [r4, 0x4]
|
||||
strh r0, [r6, 0x2E]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r6, 0x32]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r6, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r6, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r6, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110438
|
||||
|
||||
thumb_func_start sub_81104E4
|
||||
sub_81104E4: @ 81104E4
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110500
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r0, r2]
|
||||
lsrs r2, r1, 31
|
||||
adds r1, r2
|
||||
asrs r1, 1
|
||||
strh r1, [r0, 0x4]
|
||||
_08110500:
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldrh r0, [r5, 0x20]
|
||||
strh r0, [r5, 0x30]
|
||||
ldrh r0, [r5, 0x22]
|
||||
strh r0, [r5, 0x34]
|
||||
movs r2, 0x8
|
||||
ldrsh r0, [r1, r2]
|
||||
cmp r0, 0
|
||||
bne _08110548
|
||||
ldr r4, =gBattleAnimTarget
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x32]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x36]
|
||||
b _0811055A
|
||||
.pool
|
||||
_08110548:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r5, 0
|
||||
adds r2, 0x32
|
||||
adds r3, r5, 0
|
||||
adds r3, 0x36
|
||||
movs r1, 0x1
|
||||
bl SetAverageBattlerPositions
|
||||
_0811055A:
|
||||
adds r0, r5, 0
|
||||
bl sub_80A6FD4
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r0, [r0, 0x6]
|
||||
strh r0, [r5, 0x38]
|
||||
ldr r0, =sub_811057C
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81104E4
|
||||
|
||||
thumb_func_start sub_811057C
|
||||
sub_811057C: @ 811057C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl TranslateAnimLinear
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110592
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
b _081105AE
|
||||
_08110592:
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x38
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Sin
|
||||
ldrh r1, [r4, 0x24]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x24]
|
||||
ldrh r0, [r4, 0x3A]
|
||||
adds r0, 0xD
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r4, 0x3A]
|
||||
_081105AE:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_811057C
|
||||
|
||||
thumb_func_start sub_81105B4
|
||||
sub_81105B4: @ 81105B4
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x20
|
||||
adds r3, r4, 0
|
||||
adds r3, 0x22
|
||||
movs r1, 0
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081105F0
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r1, [r4, 0x20]
|
||||
ldrh r2, [r0]
|
||||
subs r1, r2
|
||||
strh r1, [r4, 0x20]
|
||||
b _081105FC
|
||||
.pool
|
||||
_081105F0:
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
ldrh r2, [r4, 0x20]
|
||||
adds r0, r2
|
||||
strh r0, [r4, 0x20]
|
||||
adds r0, r1, 0
|
||||
_081105FC:
|
||||
ldrh r0, [r0, 0x2]
|
||||
ldrh r1, [r4, 0x22]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x22]
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _08110618
|
||||
ldrh r0, [r4, 0x22]
|
||||
adds r0, 0x8
|
||||
strh r0, [r4, 0x22]
|
||||
_08110618:
|
||||
ldr r0, =sub_8110630
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81105B4
|
||||
|
||||
thumb_func_start sub_8110630
|
||||
sub_8110630: @ 8110630
|
||||
push {lr}
|
||||
adds r3, r0, 0
|
||||
ldrh r0, [r3, 0x2E]
|
||||
adds r0, 0x1
|
||||
strh r0, [r3, 0x2E]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3
|
||||
bne _08110664
|
||||
movs r0, 0
|
||||
strh r0, [r3, 0x2E]
|
||||
movs r0, 0x3E
|
||||
adds r0, r3
|
||||
mov r12, r0
|
||||
ldrb r2, [r0]
|
||||
lsls r0, r2, 29
|
||||
lsrs r0, 31
|
||||
movs r1, 0x1
|
||||
eors r1, r0
|
||||
lsls r1, 2
|
||||
movs r0, 0x5
|
||||
negs r0, r0
|
||||
ands r0, r2
|
||||
orrs r0, r1
|
||||
mov r1, r12
|
||||
strb r0, [r1]
|
||||
_08110664:
|
||||
ldrh r0, [r3, 0x30]
|
||||
adds r0, 0x1
|
||||
strh r0, [r3, 0x30]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x33
|
||||
bne _08110678
|
||||
adds r0, r3, 0
|
||||
bl DestroyAnimSprite
|
||||
_08110678:
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_8110630
|
||||
|
||||
thumb_func_start sub_811067C
|
||||
sub_811067C: @ 811067C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
movs r1, 0xFD
|
||||
lsls r1, 6
|
||||
movs r0, 0x50
|
||||
bl SetGpuReg
|
||||
movs r0, 0x52
|
||||
movs r1, 0x10
|
||||
bl SetGpuReg
|
||||
movs r0, 0x10
|
||||
strh r0, [r4, 0x2E]
|
||||
ldr r0, =sub_81106A4
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_811067C
|
||||
|
||||
thumb_func_start sub_81106A4
|
||||
sub_81106A4: @ 81106A4
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldrh r1, [r4, 0x32]
|
||||
movs r2, 0x32
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0x13
|
||||
bgt _081106B8
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x32]
|
||||
b _081106F6
|
||||
_081106B8:
|
||||
ldrh r1, [r4, 0x30]
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x30]
|
||||
movs r0, 0x1
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _081106F6
|
||||
ldrh r1, [r4, 0x2E]
|
||||
subs r1, 0x1
|
||||
strh r1, [r4, 0x2E]
|
||||
movs r0, 0x10
|
||||
subs r0, r1
|
||||
lsls r0, 8
|
||||
orrs r1, r0
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
movs r0, 0x52
|
||||
bl SetGpuReg
|
||||
movs r1, 0x2E
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r0, 0
|
||||
bne _081106F6
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x4
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
ldr r0, =sub_8110700
|
||||
str r0, [r4, 0x1C]
|
||||
_081106F6:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81106A4
|
||||
|
||||
thumb_func_start sub_8110700
|
||||
sub_8110700: @ 8110700
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
movs r0, 0x50
|
||||
movs r1, 0
|
||||
bl SetGpuReg
|
||||
movs r0, 0x52
|
||||
movs r1, 0
|
||||
bl SetGpuReg
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_8110700
|
||||
|
||||
thumb_func_start sub_8110720
|
||||
sub_8110720: @ 8110720
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x4
|
||||
adds r7, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110740
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
b _08110762
|
||||
.pool
|
||||
_08110740:
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110762
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
ldrh r0, [r1, 0x2]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x2]
|
||||
ldrh r0, [r1, 0x6]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x6]
|
||||
_08110762:
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _081107B2
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
bl GetBattlerSide
|
||||
lsls r4, 24
|
||||
lsls r0, 24
|
||||
cmp r4, r0
|
||||
bne _081107B2
|
||||
ldrb r0, [r5]
|
||||
bl GetBattlerPosition
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081107A0
|
||||
ldrb r0, [r5]
|
||||
bl GetBattlerPosition
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
cmp r0, 0x1
|
||||
bne _081107B2
|
||||
_081107A0:
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r0, r2]
|
||||
negs r1, r1
|
||||
strh r1, [r0, 0x4]
|
||||
movs r2, 0
|
||||
ldrsh r1, [r0, r2]
|
||||
negs r1, r1
|
||||
strh r1, [r0]
|
||||
_081107B2:
|
||||
adds r0, r7, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
adds r4, r0, 0
|
||||
lsls r4, 24
|
||||
ldr r6, =gBattleAnimArgs
|
||||
lsrs r4, 24
|
||||
ldrh r0, [r6, 0x4]
|
||||
adds r4, r0
|
||||
lsls r4, 16
|
||||
lsrs r4, 16
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
adds r1, r0, 0
|
||||
lsls r1, 24
|
||||
lsrs r1, 24
|
||||
ldrh r2, [r6, 0x6]
|
||||
adds r1, r2
|
||||
lsls r1, 16
|
||||
ldrh r2, [r7, 0x20]
|
||||
lsls r0, r4, 16
|
||||
asrs r0, 16
|
||||
subs r0, r2
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
ldrh r2, [r7, 0x22]
|
||||
lsrs r5, r1, 16
|
||||
asrs r1, 16
|
||||
subs r1, r2
|
||||
lsls r1, 16
|
||||
asrs r1, 16
|
||||
bl ArcTan2Neg
|
||||
lsls r0, 16
|
||||
movs r1, 0xC0
|
||||
lsls r1, 24
|
||||
adds r0, r1
|
||||
lsrs r0, 16
|
||||
movs r3, 0x80
|
||||
lsls r3, 1
|
||||
str r0, [sp]
|
||||
adds r0, r7, 0
|
||||
movs r1, 0
|
||||
adds r2, r3, 0
|
||||
bl sub_80A73E0
|
||||
ldrh r0, [r6, 0x8]
|
||||
strh r0, [r7, 0x2E]
|
||||
strh r4, [r7, 0x32]
|
||||
strh r5, [r7, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r7, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r7, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
add sp, 0x4
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110720
|
||||
|
||||
thumb_func_start sub_8110850
|
||||
sub_8110850: @ 8110850
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110870
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
_08110870:
|
||||
ldr r4, =gBattleAnimArgs
|
||||
ldrh r0, [r4, 0x8]
|
||||
strh r0, [r6, 0x2E]
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x32]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x6]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x36]
|
||||
ldrh r0, [r4, 0xA]
|
||||
strh r0, [r6, 0x38]
|
||||
adds r0, r6, 0
|
||||
bl sub_80A68D4
|
||||
ldr r0, =sub_81108CC
|
||||
str r0, [r6, 0x1C]
|
||||
adds r2, r6, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x4
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110850
|
||||
|
||||
thumb_func_start sub_81108CC
|
||||
sub_81108CC: @ 81108CC
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
sub sp, 0x14
|
||||
adds r4, r0, 0
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x5
|
||||
negs r1, r1
|
||||
ands r1, r0
|
||||
strb r1, [r2]
|
||||
adds r0, r4, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081108F8
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
b _08110988
|
||||
_081108F8:
|
||||
movs r0, 0x2E
|
||||
adds r0, r4
|
||||
mov r8, r0
|
||||
ldrh r7, [r4, 0x20]
|
||||
ldrh r5, [r4, 0x24]
|
||||
ldrh r1, [r4, 0x22]
|
||||
mov r12, r1
|
||||
ldrh r6, [r4, 0x26]
|
||||
mov r2, r8
|
||||
add r1, sp, 0x4
|
||||
movs r3, 0x7
|
||||
_0811090E:
|
||||
ldrh r0, [r2]
|
||||
strh r0, [r1]
|
||||
adds r2, 0x2
|
||||
adds r1, 0x2
|
||||
subs r3, 0x1
|
||||
cmp r3, 0
|
||||
bge _0811090E
|
||||
adds r0, r7, r5
|
||||
lsls r0, 16
|
||||
lsrs r5, r0, 16
|
||||
mov r2, r12
|
||||
adds r0, r2, r6
|
||||
lsls r0, 16
|
||||
lsrs r6, r0, 16
|
||||
adds r0, r4, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _08110988
|
||||
ldrh r0, [r4, 0x24]
|
||||
ldrh r1, [r4, 0x20]
|
||||
adds r0, r1
|
||||
lsls r1, r5, 16
|
||||
asrs r1, 16
|
||||
subs r0, r1
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
ldrh r1, [r4, 0x26]
|
||||
ldrh r2, [r4, 0x22]
|
||||
adds r1, r2
|
||||
lsls r2, r6, 16
|
||||
asrs r2, 16
|
||||
subs r1, r2
|
||||
lsls r1, 16
|
||||
asrs r1, 16
|
||||
bl ArcTan2Neg
|
||||
lsls r0, 16
|
||||
movs r1, 0xC0
|
||||
lsls r1, 24
|
||||
adds r0, r1
|
||||
lsrs r0, 16
|
||||
movs r3, 0x80
|
||||
lsls r3, 1
|
||||
str r0, [sp]
|
||||
adds r0, r4, 0
|
||||
movs r1, 0
|
||||
adds r2, r3, 0
|
||||
bl sub_80A73E0
|
||||
add r2, sp, 0x4
|
||||
mov r1, r8
|
||||
movs r3, 0x7
|
||||
_0811097A:
|
||||
ldrh r0, [r2]
|
||||
strh r0, [r1]
|
||||
adds r2, 0x2
|
||||
adds r1, 0x2
|
||||
subs r3, 0x1
|
||||
cmp r3, 0
|
||||
bge _0811097A
|
||||
_08110988:
|
||||
add sp, 0x14
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_81108CC
|
||||
|
||||
thumb_func_start sub_8110994
|
||||
sub_8110994: @ 8110994
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r1, 0
|
||||
ldrsh r0, [r0, r1]
|
||||
cmp r0, 0
|
||||
bne _081109B0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
b _081109B2
|
||||
.pool
|
||||
_081109B0:
|
||||
ldr r4, =gBattleAnimTarget
|
||||
_081109B2:
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
adds r0, 0x12
|
||||
strh r0, [r5, 0x22]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
ldr r0, =sub_80A67BC
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110994
|
||||
|
||||
.align 2, 0
|
2199
asm/dark.s
Normal file
2199
asm/dark.s
Normal file
File diff suppressed because it is too large
Load Diff
793
asm/dragon.s
Normal file
793
asm/dragon.s
Normal file
@ -0,0 +1,793 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8113064
|
||||
sub_8113064: @ 8113064
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x22]
|
||||
ldrb r0, [r4]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081130B4
|
||||
ldr r2, =gBattleAnimArgs
|
||||
ldrh r0, [r5, 0x20]
|
||||
ldrh r1, [r2]
|
||||
subs r0, r1
|
||||
strh r0, [r5, 0x20]
|
||||
ldrh r0, [r2, 0x6]
|
||||
negs r0, r0
|
||||
strh r0, [r2, 0x6]
|
||||
ldrh r0, [r2, 0x8]
|
||||
negs r0, r0
|
||||
strh r0, [r2, 0x8]
|
||||
adds r1, r2, 0
|
||||
b _081130BE
|
||||
.pool
|
||||
_081130B4:
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
ldrh r2, [r5, 0x20]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x20]
|
||||
_081130BE:
|
||||
ldrh r0, [r1, 0x2]
|
||||
ldrh r2, [r5, 0x22]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x22]
|
||||
ldrh r0, [r1, 0x4]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldrh r0, [r1, 0x6]
|
||||
strh r0, [r5, 0x30]
|
||||
ldrh r0, [r1, 0x8]
|
||||
strh r0, [r5, 0x34]
|
||||
ldrh r0, [r1, 0xA]
|
||||
strh r0, [r5, 0x38]
|
||||
adds r2, r5, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x4
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
ldr r0, =sub_80A66DC
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113064
|
||||
|
||||
thumb_func_start sub_8113100
|
||||
sub_8113100: @ 8113100
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
bl sub_80A6838
|
||||
ldr r4, =gBattleAnimTarget
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x32]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x36]
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08113164
|
||||
ldr r2, =gBattleAnimArgs
|
||||
ldrh r0, [r5, 0x20]
|
||||
ldrh r1, [r2, 0x2]
|
||||
subs r0, r1
|
||||
strh r0, [r5, 0x20]
|
||||
ldrh r0, [r5, 0x22]
|
||||
adds r1, r0
|
||||
strh r1, [r5, 0x22]
|
||||
ldrh r0, [r5, 0x32]
|
||||
ldrh r1, [r2, 0x4]
|
||||
subs r0, r1
|
||||
strh r0, [r5, 0x32]
|
||||
ldrh r0, [r2, 0x6]
|
||||
ldrh r1, [r5, 0x36]
|
||||
adds r0, r1
|
||||
strh r0, [r5, 0x36]
|
||||
b _0811318E
|
||||
.pool
|
||||
_08113164:
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
ldrh r2, [r5, 0x20]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x20]
|
||||
ldrh r0, [r1, 0x2]
|
||||
ldrh r2, [r5, 0x22]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x22]
|
||||
ldrh r0, [r1, 0x4]
|
||||
ldrh r2, [r5, 0x32]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x32]
|
||||
ldrh r0, [r1, 0x6]
|
||||
ldrh r1, [r5, 0x36]
|
||||
adds r0, r1
|
||||
strh r0, [r5, 0x36]
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x1
|
||||
bl StartSpriteAnim
|
||||
_0811318E:
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r0, [r0, 0x8]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r5, 0x1C]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113100
|
||||
|
||||
thumb_func_start sub_81131B4
|
||||
sub_81131B4: @ 81131B4
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r1, 0
|
||||
ldrsh r0, [r0, r1]
|
||||
cmp r0, 0
|
||||
bne _081131D0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
b _081131D2
|
||||
.pool
|
||||
_081131D0:
|
||||
ldr r4, =gBattleAnimTarget
|
||||
_081131D2:
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x1
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x22]
|
||||
ldr r4, =gBattleAnimArgs
|
||||
movs r0, 0x2
|
||||
ldrsh r1, [r4, r0]
|
||||
adds r0, r5, 0
|
||||
bl sub_80A6864
|
||||
ldrh r0, [r4, 0x4]
|
||||
ldrh r1, [r5, 0x22]
|
||||
adds r0, r1
|
||||
strh r0, [r5, 0x22]
|
||||
ldr r0, =sub_80A67D8
|
||||
str r0, [r5, 0x1C]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81131B4
|
||||
|
||||
thumb_func_start sub_8113224
|
||||
sub_8113224: @ 8113224
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0811323E
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x1
|
||||
bl StartSpriteAffineAnim
|
||||
_0811323E:
|
||||
adds r0, r4, 0
|
||||
bl sub_8113100
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113224
|
||||
|
||||
thumb_func_start sub_8113250
|
||||
sub_8113250: @ 8113250
|
||||
push {r4-r7,lr}
|
||||
adds r6, r0, 0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
movs r5, 0
|
||||
strh r0, [r6, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r6, 0x22]
|
||||
strh r5, [r6, 0x36]
|
||||
movs r0, 0x1
|
||||
strh r0, [r6, 0x38]
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r0, [r0]
|
||||
strh r0, [r6, 0x3A]
|
||||
ldr r4, =gBattlerAttacker
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0
|
||||
bl sub_80A861C
|
||||
lsls r7, r0, 16
|
||||
lsrs r5, r7, 16
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x1
|
||||
bl sub_80A861C
|
||||
lsls r1, r0, 16
|
||||
lsrs r0, r1, 16
|
||||
cmp r5, r0
|
||||
bls _081132B0
|
||||
lsrs r0, r7, 17
|
||||
b _081132B2
|
||||
.pool
|
||||
_081132B0:
|
||||
lsrs r0, r1, 17
|
||||
_081132B2:
|
||||
strh r0, [r6, 0x3C]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r6, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r6, r2]
|
||||
bl Cos
|
||||
strh r0, [r6, 0x24]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r6, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r6, r2]
|
||||
bl Sin
|
||||
strh r0, [r6, 0x26]
|
||||
ldr r0, =sub_81132E0
|
||||
str r0, [r6, 0x1C]
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113250
|
||||
|
||||
thumb_func_start sub_81132E0
|
||||
sub_81132E0: @ 81132E0
|
||||
push {r4,r5,lr}
|
||||
adds r4, r0, 0
|
||||
movs r0, 0x2E
|
||||
ldrsh r5, [r4, r0]
|
||||
cmp r5, 0
|
||||
beq _081132F2
|
||||
cmp r5, 0x1
|
||||
beq _0811335E
|
||||
b _081133E2
|
||||
_081132F2:
|
||||
ldrh r0, [r4, 0x3A]
|
||||
ldrh r1, [r4, 0x38]
|
||||
subs r0, r1
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r4, 0x3A]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Cos
|
||||
strh r0, [r4, 0x24]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Sin
|
||||
strh r0, [r4, 0x26]
|
||||
ldrh r0, [r4, 0x36]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x36]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x5
|
||||
ble _08113344
|
||||
strh r5, [r4, 0x36]
|
||||
ldrh r1, [r4, 0x38]
|
||||
movs r2, 0x38
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0xF
|
||||
bgt _08113344
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x38]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0xF
|
||||
ble _08113344
|
||||
movs r0, 0x10
|
||||
strh r0, [r4, 0x38]
|
||||
_08113344:
|
||||
ldrh r0, [r4, 0x34]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x34]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3C
|
||||
ble _081133E2
|
||||
movs r0, 0
|
||||
strh r0, [r4, 0x34]
|
||||
ldrh r0, [r4, 0x2E]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x2E]
|
||||
b _081133E2
|
||||
_0811335E:
|
||||
ldrh r0, [r4, 0x3A]
|
||||
ldrh r1, [r4, 0x38]
|
||||
subs r0, r1
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r4, 0x3A]
|
||||
ldrh r1, [r4, 0x3C]
|
||||
movs r2, 0x3C
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0x95
|
||||
bgt _08113386
|
||||
adds r0, r1, 0
|
||||
adds r0, 0x8
|
||||
strh r0, [r4, 0x3C]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x95
|
||||
ble _08113386
|
||||
movs r0, 0x96
|
||||
strh r0, [r4, 0x3C]
|
||||
_08113386:
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Cos
|
||||
strh r0, [r4, 0x24]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Sin
|
||||
strh r0, [r4, 0x26]
|
||||
ldrh r0, [r4, 0x36]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x36]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x5
|
||||
ble _081133CE
|
||||
movs r0, 0
|
||||
strh r0, [r4, 0x36]
|
||||
ldrh r1, [r4, 0x38]
|
||||
movs r2, 0x38
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0xF
|
||||
bgt _081133CE
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x38]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0xF
|
||||
ble _081133CE
|
||||
movs r0, 0x10
|
||||
strh r0, [r4, 0x38]
|
||||
_081133CE:
|
||||
ldrh r0, [r4, 0x34]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x34]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x14
|
||||
ble _081133E2
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_081133E2:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_81132E0
|
||||
|
||||
thumb_func_start sub_81133E8
|
||||
sub_81133E8: @ 81133E8
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0xC
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, r0, 2
|
||||
adds r1, r0
|
||||
lsls r1, 3
|
||||
ldr r0, =gTasks
|
||||
adds r4, r1, r0
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl sub_80A8364
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
cmp r0, 0x1
|
||||
bne _08113424
|
||||
ldr r0, =0x04000014
|
||||
str r0, [sp]
|
||||
ldr r0, =gBattle_BG1_X
|
||||
b _0811342A
|
||||
.pool
|
||||
_08113424:
|
||||
ldr r0, =0x04000018
|
||||
str r0, [sp]
|
||||
ldr r0, =gBattle_BG2_X
|
||||
_0811342A:
|
||||
ldrh r0, [r0]
|
||||
strh r0, [r4, 0xC]
|
||||
ldr r0, =0xa2600001
|
||||
str r0, [sp, 0x4]
|
||||
mov r1, sp
|
||||
movs r5, 0
|
||||
movs r0, 0x1
|
||||
strb r0, [r1, 0x8]
|
||||
mov r0, sp
|
||||
strb r5, [r0, 0x9]
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerYCoordWithElevation
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
adds r1, r0, 0
|
||||
subs r1, 0x20
|
||||
strh r1, [r4, 0xE]
|
||||
adds r0, 0x20
|
||||
strh r0, [r4, 0x10]
|
||||
cmp r1, 0
|
||||
bge _0811345A
|
||||
strh r5, [r4, 0xE]
|
||||
_0811345A:
|
||||
ldrh r3, [r4, 0xE]
|
||||
movs r1, 0x10
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r3, r0
|
||||
bgt _08113488
|
||||
ldr r5, =gScanlineEffectRegBuffers
|
||||
movs r0, 0xF0
|
||||
lsls r0, 3
|
||||
adds r6, r5, r0
|
||||
_0811346C:
|
||||
lsls r1, r3, 1
|
||||
adds r2, r1, r5
|
||||
ldrh r0, [r4, 0xC]
|
||||
strh r0, [r2]
|
||||
adds r1, r6
|
||||
ldrh r0, [r4, 0xC]
|
||||
strh r0, [r1]
|
||||
adds r0, r3, 0x1
|
||||
lsls r0, 16
|
||||
lsrs r3, r0, 16
|
||||
movs r1, 0x10
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r3, r0
|
||||
ble _0811346C
|
||||
_08113488:
|
||||
ldr r0, [sp]
|
||||
ldr r1, [sp, 0x4]
|
||||
ldr r2, [sp, 0x8]
|
||||
bl ScanlineEffect_SetParams
|
||||
ldr r0, =sub_81134B8
|
||||
str r0, [r4]
|
||||
add sp, 0xC
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81133E8
|
||||
|
||||
thumb_func_start sub_81134B8
|
||||
sub_81134B8: @ 81134B8
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r3, r0, 24
|
||||
lsls r0, r3, 2
|
||||
adds r0, r3
|
||||
lsls r0, 3
|
||||
ldr r1, =gTasks
|
||||
adds r2, r0, r1
|
||||
movs r1, 0x8
|
||||
ldrsh r0, [r2, r1]
|
||||
cmp r0, 0x4
|
||||
bhi _0811356E
|
||||
lsls r0, 2
|
||||
ldr r1, =_081134E4
|
||||
adds r0, r1
|
||||
ldr r0, [r0]
|
||||
mov pc, r0
|
||||
.pool
|
||||
.align 2, 0
|
||||
_081134E4:
|
||||
.4byte _081134F8
|
||||
.4byte _0811351A
|
||||
.4byte _0811352A
|
||||
.4byte _08113556
|
||||
.4byte _08113568
|
||||
_081134F8:
|
||||
ldrh r0, [r2, 0x16]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x16]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x1
|
||||
ble _0811354E
|
||||
movs r0, 0
|
||||
strh r0, [r2, 0x16]
|
||||
ldrh r0, [r2, 0x14]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x14]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3
|
||||
bne _0811354E
|
||||
b _08113548
|
||||
_0811351A:
|
||||
ldrh r0, [r2, 0xA]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0xA]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3C
|
||||
ble _0811354E
|
||||
b _08113548
|
||||
_0811352A:
|
||||
ldrh r0, [r2, 0x16]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x16]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x1
|
||||
ble _0811354E
|
||||
movs r0, 0
|
||||
strh r0, [r2, 0x16]
|
||||
ldrh r0, [r2, 0x14]
|
||||
subs r0, 0x1
|
||||
strh r0, [r2, 0x14]
|
||||
lsls r0, 16
|
||||
cmp r0, 0
|
||||
bne _0811354E
|
||||
_08113548:
|
||||
ldrh r0, [r2, 0x8]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x8]
|
||||
_0811354E:
|
||||
adds r0, r2, 0
|
||||
bl sub_8113574
|
||||
b _0811356E
|
||||
_08113556:
|
||||
ldr r1, =gScanlineEffect
|
||||
movs r0, 0x3
|
||||
strb r0, [r1, 0x15]
|
||||
ldrh r0, [r2, 0x8]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x8]
|
||||
b _0811356E
|
||||
.pool
|
||||
_08113568:
|
||||
adds r0, r3, 0
|
||||
bl DestroyAnimVisualTask
|
||||
_0811356E:
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_81134B8
|
||||
|
||||
thumb_func_start sub_8113574
|
||||
sub_8113574: @ 8113574
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
adds r5, r0, 0
|
||||
ldrh r3, [r5, 0x12]
|
||||
ldrh r4, [r5, 0xE]
|
||||
movs r1, 0x10
|
||||
ldrsh r0, [r5, r1]
|
||||
cmp r4, r0
|
||||
bgt _081135CA
|
||||
ldr r7, =gScanlineEffectRegBuffers
|
||||
mov r12, r7
|
||||
ldr r0, =gSineTable
|
||||
mov r8, r0
|
||||
ldr r6, =gScanlineEffect
|
||||
_08113592:
|
||||
lsls r2, r4, 1
|
||||
ldrb r1, [r6, 0x14]
|
||||
lsls r0, r1, 4
|
||||
subs r0, r1
|
||||
lsls r0, 7
|
||||
adds r2, r0
|
||||
add r2, r12
|
||||
lsls r0, r3, 1
|
||||
add r0, r8
|
||||
movs r7, 0
|
||||
ldrsh r1, [r0, r7]
|
||||
movs r7, 0x14
|
||||
ldrsh r0, [r5, r7]
|
||||
muls r0, r1
|
||||
asrs r0, 7
|
||||
ldrh r1, [r5, 0xC]
|
||||
adds r0, r1
|
||||
strh r0, [r2]
|
||||
adds r3, 0x8
|
||||
movs r0, 0xFF
|
||||
ands r3, r0
|
||||
adds r0, r4, 0x1
|
||||
lsls r0, 16
|
||||
lsrs r4, r0, 16
|
||||
movs r7, 0x10
|
||||
ldrsh r0, [r5, r7]
|
||||
cmp r4, r0
|
||||
ble _08113592
|
||||
_081135CA:
|
||||
ldrh r0, [r5, 0x12]
|
||||
adds r0, 0x9
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r5, 0x12]
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113574
|
||||
|
||||
thumb_func_start sub_81135EC
|
||||
sub_81135EC: @ 81135EC
|
||||
push {r4-r6,lr}
|
||||
mov r6, r8
|
||||
push {r6}
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
movs r0, 0x4
|
||||
ldrsh r1, [r5, r0]
|
||||
lsls r0, r1, 1
|
||||
adds r0, r1
|
||||
movs r1, 0x5
|
||||
bl __divsi3
|
||||
adds r6, r0, 0
|
||||
ldr r1, =gBattleAnimAttacker
|
||||
mov r8, r1
|
||||
ldrb r0, [r1]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r4, 0x20]
|
||||
mov r2, r8
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r3, [r5, 0x8]
|
||||
adds r0, r3
|
||||
strh r0, [r4, 0x22]
|
||||
movs r1, 0x2
|
||||
ldrsh r0, [r5, r1]
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r5, r2]
|
||||
bl Cos
|
||||
strh r0, [r4, 0x30]
|
||||
movs r3, 0x2
|
||||
ldrsh r0, [r5, r3]
|
||||
lsls r6, 16
|
||||
asrs r6, 16
|
||||
adds r1, r6, 0
|
||||
bl Sin
|
||||
strh r0, [r4, 0x32]
|
||||
ldrh r1, [r4, 0x30]
|
||||
ldrh r2, [r5]
|
||||
adds r3, r2, 0
|
||||
muls r3, r1
|
||||
adds r1, r3, 0
|
||||
ldrh r3, [r4, 0x20]
|
||||
adds r1, r3
|
||||
strh r1, [r4, 0x20]
|
||||
adds r1, r2, 0
|
||||
muls r1, r0
|
||||
adds r0, r1, 0
|
||||
ldrh r2, [r4, 0x22]
|
||||
adds r0, r2
|
||||
strh r0, [r4, 0x22]
|
||||
ldrh r0, [r5, 0x6]
|
||||
strh r0, [r4, 0x34]
|
||||
ldr r0, =sub_811369C
|
||||
str r0, [r4, 0x1C]
|
||||
adds r4, 0x2E
|
||||
ldr r2, =gUnknown_0203A100
|
||||
movs r1, 0x6
|
||||
_08113674:
|
||||
ldrh r0, [r4]
|
||||
strh r0, [r2]
|
||||
adds r4, 0x2
|
||||
adds r2, 0x2
|
||||
subs r1, 0x1
|
||||
cmp r1, 0
|
||||
bge _08113674
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81135EC
|
||||
|
||||
thumb_func_start sub_811369C
|
||||
sub_811369C: @ 811369C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldrh r0, [r4, 0x30]
|
||||
ldrh r1, [r4, 0x36]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x36]
|
||||
ldrh r0, [r4, 0x32]
|
||||
ldrh r2, [r4, 0x38]
|
||||
adds r0, r2
|
||||
strh r0, [r4, 0x38]
|
||||
movs r1, 0x36
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r1, 0xA
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x24]
|
||||
movs r2, 0x38
|
||||
ldrsh r0, [r4, r2]
|
||||
movs r1, 0xA
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x26]
|
||||
ldrh r0, [r4, 0x2E]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x2E]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
movs r2, 0x34
|
||||
ldrsh r1, [r4, r2]
|
||||
cmp r0, r1
|
||||
ble _081136E0
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_081136E0:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_811369C
|
||||
|
||||
.align 2, 0
|
2547
asm/electric.s
Normal file
2547
asm/electric.s
Normal file
File diff suppressed because it is too large
Load Diff
1649
asm/fight.s
Normal file
1649
asm/fight.s
Normal file
File diff suppressed because it is too large
Load Diff
2397
asm/fire.s
Normal file
2397
asm/fire.s
Normal file
File diff suppressed because it is too large
Load Diff
2551
asm/flying.s
Normal file
2551
asm/flying.s
Normal file
File diff suppressed because it is too large
Load Diff
3251
asm/ghost.s
Normal file
3251
asm/ghost.s
Normal file
File diff suppressed because it is too large
Load Diff
1675
asm/ground.s
Normal file
1675
asm/ground.s
Normal file
File diff suppressed because it is too large
Load Diff
1876
asm/normal.s
Normal file
1876
asm/normal.s
Normal file
File diff suppressed because it is too large
Load Diff
306
asm/poison.s
Normal file
306
asm/poison.s
Normal file
@ -0,0 +1,306 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_810DBAC
|
||||
sub_810DBAC: @ 810DBAC
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r4, =gBattleAnimArgs
|
||||
movs r1, 0x6
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DBC2
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAnim
|
||||
_0810DBC2:
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldrh r0, [r4, 0x4]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldr r4, =gBattleAnimTarget
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x32]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x36]
|
||||
ldr r0, =0x0000ffe2
|
||||
strh r0, [r5, 0x38]
|
||||
adds r0, r5, 0
|
||||
bl sub_80A68D4
|
||||
ldr r0, =sub_810DC10
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DBAC
|
||||
|
||||
thumb_func_start sub_810DC10
|
||||
sub_810DC10: @ 810DC10
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DC24
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_0810DC24:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_810DC10
|
||||
|
||||
thumb_func_start sub_810DC2C
|
||||
sub_810DC2C: @ 810DC2C
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0x4
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
movs r1, 0x6
|
||||
ldrsh r0, [r5, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DC44
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAnim
|
||||
_0810DC44:
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
mov r6, sp
|
||||
adds r6, 0x2
|
||||
movs r1, 0x1
|
||||
mov r2, sp
|
||||
adds r3, r6, 0
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DC72
|
||||
ldrh r0, [r5, 0x8]
|
||||
negs r0, r0
|
||||
strh r0, [r5, 0x8]
|
||||
_0810DC72:
|
||||
ldrh r0, [r5, 0x4]
|
||||
strh r0, [r4, 0x2E]
|
||||
mov r1, sp
|
||||
ldrh r0, [r5, 0x8]
|
||||
ldrh r1, [r1]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x32]
|
||||
ldrh r0, [r5, 0xA]
|
||||
ldrh r6, [r6]
|
||||
adds r0, r6
|
||||
strh r0, [r4, 0x36]
|
||||
ldr r0, =0x0000ffe2
|
||||
strh r0, [r4, 0x38]
|
||||
adds r0, r4, 0
|
||||
bl sub_80A68D4
|
||||
ldr r0, =sub_810DCB4
|
||||
str r0, [r4, 0x1C]
|
||||
add sp, 0x4
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DC2C
|
||||
|
||||
thumb_func_start sub_810DCB4
|
||||
sub_810DCB4: @ 810DCB4
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DCC8
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_0810DCC8:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_810DCB4
|
||||
|
||||
thumb_func_start sub_810DCD0
|
||||
sub_810DCD0: @ 810DCD0
|
||||
push {r4,r5,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
ldrh r0, [r5, 0x4]
|
||||
strh r0, [r4, 0x2E]
|
||||
ldrh r0, [r4, 0x20]
|
||||
strh r0, [r4, 0x30]
|
||||
ldrh r1, [r5]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x32]
|
||||
ldrh r0, [r4, 0x22]
|
||||
strh r0, [r4, 0x34]
|
||||
ldrh r1, [r5, 0x2]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x36]
|
||||
adds r0, r4, 0
|
||||
bl sub_80A6E14
|
||||
movs r1, 0x30
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r5, r2]
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x38]
|
||||
movs r1, 0x32
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r5, r2]
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x3A]
|
||||
ldr r0, =sub_810DD24
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DCD0
|
||||
|
||||
thumb_func_start sub_810DD24
|
||||
sub_810DD24: @ 810DD24
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl sub_80A656C
|
||||
ldrh r0, [r4, 0x30]
|
||||
ldrh r1, [r4, 0x38]
|
||||
subs r0, r1
|
||||
strh r0, [r4, 0x30]
|
||||
ldrh r0, [r4, 0x32]
|
||||
ldrh r1, [r4, 0x3A]
|
||||
subs r0, r1
|
||||
strh r0, [r4, 0x32]
|
||||
movs r1, 0x2E
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DD4A
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_0810DD4A:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_810DD24
|
||||
|
||||
thumb_func_start sub_810DD50
|
||||
sub_810DD50: @ 810DD50
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x20
|
||||
adds r3, r4, 0
|
||||
adds r3, 0x22
|
||||
movs r1, 0x1
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DD7C
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
negs r0, r0
|
||||
strh r0, [r1]
|
||||
_0810DD7C:
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r2, [r0]
|
||||
ldrh r1, [r4, 0x20]
|
||||
adds r2, r1
|
||||
strh r2, [r4, 0x20]
|
||||
ldrh r1, [r0, 0x2]
|
||||
ldrh r3, [r4, 0x22]
|
||||
adds r1, r3
|
||||
strh r1, [r4, 0x22]
|
||||
ldrh r3, [r0, 0x8]
|
||||
strh r3, [r4, 0x2E]
|
||||
ldrh r0, [r0, 0x4]
|
||||
adds r2, r0
|
||||
strh r2, [r4, 0x32]
|
||||
adds r1, r3
|
||||
strh r1, [r4, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r4, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r4, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DD50
|
||||
|
||||
thumb_func_start sub_810DDC4
|
||||
sub_810DDC4: @ 810DDC4
|
||||
push {r4,r5,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
movs r1, 0x4
|
||||
ldrsh r0, [r5, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DDE0
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A6980
|
||||
b _0810DE16
|
||||
.pool
|
||||
_0810DDE0:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x20
|
||||
adds r3, r4, 0
|
||||
adds r3, 0x22
|
||||
movs r1, 0x1
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DE06
|
||||
ldrh r0, [r5]
|
||||
negs r0, r0
|
||||
strh r0, [r5]
|
||||
_0810DE06:
|
||||
ldrh r0, [r5]
|
||||
ldrh r1, [r4, 0x20]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x20]
|
||||
ldrh r0, [r5, 0x2]
|
||||
ldrh r1, [r4, 0x22]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x22]
|
||||
_0810DE16:
|
||||
ldr r0, =sub_810DE2C
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DDC4
|
||||
|
||||
.align 2, 0
|
2172
asm/psychic.s
Normal file
2172
asm/psychic.s
Normal file
File diff suppressed because it is too large
Load Diff
1469
asm/rock.s
Normal file
1469
asm/rock.s
Normal file
File diff suppressed because it is too large
Load Diff
3607
asm/water.s
Normal file
3607
asm/water.s
Normal file
File diff suppressed because it is too large
Load Diff
@ -156,7 +156,25 @@ SECTIONS {
|
||||
src/safari_zone.o(.text);
|
||||
asm/contest_link_80FC4F4.o(.text);
|
||||
src/item_use.o(.text);
|
||||
asm/battle_anim_80FE840.o(.text);
|
||||
asm/battle_anim_effects_1.o(.text);
|
||||
asm/battle_anim_effects_2.o(.text);
|
||||
asm/water.o(.text);
|
||||
asm/fire.o(.text);
|
||||
asm/electric.o(.text);
|
||||
asm/ice.o(.text);
|
||||
asm/fight.o(.text);
|
||||
asm/poison.o(.text);
|
||||
asm/flying.o(.text);
|
||||
asm/psychic.o(.text);
|
||||
asm/bug.o(.text);
|
||||
asm/rock.o(.text);
|
||||
asm/ghost.o(.text);
|
||||
asm/dragon.o(.text);
|
||||
asm/dark.o(.text);
|
||||
asm/ground.o(.text);
|
||||
asm/normal.o(.text);
|
||||
asm/battle_anim_utility_funcs.o(.text);
|
||||
asm/battle_intro.o(.text);
|
||||
src/bike.o(.text);
|
||||
src/easy_chat.o(.text);
|
||||
asm/easy_chat.o(.text);
|
||||
|
Loading…
Reference in New Issue
Block a user