summaryrefslogtreecommitdiff
path: root/asm/pokemon_3.s
diff options
context:
space:
mode:
authorDennis <dhilhorst2000@gmail.com>2021-07-26 06:11:01 +0200
committerGitHub <noreply@github.com>2021-07-25 21:11:01 -0700
commit645c45431b0e091234699c3706ff90d1654cfb57 (patch)
tree412551a72247c0d9b21049d5addcbe34014419d3 /asm/pokemon_3.s
parentbad7f7f688253c87c2cb2d063ea57c884cb6adff (diff)
Pokemon related decomp (#47)
* decompile last function in pokemon_1.s * some pokemon related decomp * more decomp * decomp another function * decompile function * another one * decompile GetPokemonLevelData * decompile more * more decomp * more structure and decomp * decomp another function (need to do some renaming) * rename some stuff * I cant do anything without committing these 2 files
Diffstat (limited to 'asm/pokemon_3.s')
-rw-r--r--asm/pokemon_3.s65
1 files changed, 0 insertions, 65 deletions
diff --git a/asm/pokemon_3.s b/asm/pokemon_3.s
index e3647fc..f0308d7 100644
--- a/asm/pokemon_3.s
+++ b/asm/pokemon_3.s
@@ -5,71 +5,6 @@
.text
- thumb_func_start sub_808ED00
-sub_808ED00:
- push {r4-r7,lr}
- mov r7, r8
- push {r7}
- sub sp, 0x10
- mov r0, sp
- bl sub_808D580
- adds r6, r0, 0
- movs r4, 0
- cmp r4, r6
- bge _0808ED44
- movs r0, 0x58
- mov r8, r0
- mov r7, sp
- movs r5, 0
- adds r4, r6, 0
-_0808ED20:
- ldr r0, _0808ED70
- ldr r1, [r0]
- adds r0, r1, r5
- ldr r2, _0808ED74
- adds r0, r2
- ldm r7!, {r2}
- mov r3, r8
- muls r3, r2
- adds r2, r3, 0
- adds r1, r2
- movs r2, 0x58
- bl memcpy
- adds r5, 0x58
- subs r4, 0x1
- cmp r4, 0
- bne _0808ED20
- adds r4, r6, 0
-_0808ED44:
- cmp r4, 0x3
- bgt _0808ED64
- ldr r5, _0808ED70
- ldr r3, _0808ED74
- movs r2, 0
- movs r0, 0x58
- adds r1, r4, 0
- muls r1, r0
-_0808ED54:
- ldr r0, [r5]
- adds r0, r1
- adds r0, r3
- strh r2, [r0]
- adds r1, 0x58
- adds r4, 0x1
- cmp r4, 0x3
- ble _0808ED54
-_0808ED64:
- add sp, 0x10
- pop {r3}
- mov r8, r3
- pop {r4-r7}
- pop {r0}
- bx r0
- .align 2, 0
-_0808ED70: .4byte gRecruitedPokemonRef
-_0808ED74: .4byte 0x00008f88
- thumb_func_end sub_808ED00
-
thumb_func_start SaveRecruitedPokemon
SaveRecruitedPokemon:
push {r4-r7,lr}