mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
Nearly finished with battle_dome_cards
This commit is contained in:
parent
057894f3c5
commit
63ff09e806
@ -5,199 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_818D820
|
||||
sub_818D820: @ 818D820
|
||||
push {lr}
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
bl sub_818D5B0
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818D820
|
||||
|
||||
thumb_func_start sub_818D834
|
||||
sub_818D834: @ 818D834
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0xC
|
||||
ldr r4, [sp, 0x18]
|
||||
ldr r5, [sp, 0x1C]
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
lsls r3, 24
|
||||
lsrs r3, 24
|
||||
lsls r4, 24
|
||||
lsrs r4, 24
|
||||
lsls r5, 24
|
||||
lsrs r5, 24
|
||||
str r4, [sp]
|
||||
str r5, [sp, 0x4]
|
||||
movs r4, 0
|
||||
str r4, [sp, 0x8]
|
||||
bl sub_818D65C
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
add sp, 0xC
|
||||
pop {r4,r5}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818D834
|
||||
|
||||
thumb_func_start sub_818D864
|
||||
sub_818D864: @ 818D864
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
sub sp, 0x14
|
||||
ldr r4, [sp, 0x2C]
|
||||
ldr r5, [sp, 0x30]
|
||||
ldr r6, [sp, 0x34]
|
||||
ldr r7, [sp, 0x38]
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
lsls r3, 24
|
||||
lsrs r3, 24
|
||||
lsls r4, 16
|
||||
lsrs r4, 16
|
||||
lsls r5, 16
|
||||
lsrs r5, 16
|
||||
lsls r6, 24
|
||||
lsrs r6, 24
|
||||
lsls r7, 24
|
||||
lsrs r7, 24
|
||||
str r4, [sp]
|
||||
str r5, [sp, 0x4]
|
||||
str r6, [sp, 0x8]
|
||||
str r7, [sp, 0xC]
|
||||
movs r4, 0
|
||||
str r4, [sp, 0x10]
|
||||
bl sub_818D6CC
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
add sp, 0x14
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r7}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818D864
|
||||
|
||||
thumb_func_start sub_818D8AC
|
||||
sub_818D8AC: @ 818D8AC
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x14
|
||||
adds r5, r1, 0
|
||||
ldr r1, [sp, 0x20]
|
||||
ldr r4, [sp, 0x24]
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
lsls r5, 24
|
||||
lsrs r5, 24
|
||||
lsls r1, 24
|
||||
lsrs r1, 24
|
||||
lsls r4, 16
|
||||
lsrs r4, 16
|
||||
lsls r2, 16
|
||||
asrs r2, 16
|
||||
str r2, [sp]
|
||||
lsls r3, 16
|
||||
asrs r3, 16
|
||||
str r3, [sp, 0x4]
|
||||
str r1, [sp, 0x8]
|
||||
str r4, [sp, 0xC]
|
||||
movs r1, 0x1
|
||||
str r1, [sp, 0x10]
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
adds r3, r5, 0
|
||||
bl sub_818D384
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
add sp, 0x14
|
||||
pop {r4,r5}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818D8AC
|
||||
|
||||
thumb_func_start sub_818D8F0
|
||||
sub_818D8F0: @ 818D8F0
|
||||
push {lr}
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
bl sub_818D5B0
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818D8F0
|
||||
|
||||
thumb_func_start sub_818D904
|
||||
sub_818D904: @ 818D904
|
||||
push {r4,lr}
|
||||
sub sp, 0xC
|
||||
adds r4, r1, 0
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
lsls r4, 24
|
||||
lsrs r4, 24
|
||||
lsls r2, 24
|
||||
lsrs r2, 24
|
||||
lsls r3, 24
|
||||
lsrs r3, 24
|
||||
str r2, [sp]
|
||||
str r3, [sp, 0x4]
|
||||
movs r1, 0x1
|
||||
str r1, [sp, 0x8]
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
adds r3, r4, 0
|
||||
bl sub_818D65C
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
add sp, 0xC
|
||||
pop {r4}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818D904
|
||||
|
||||
thumb_func_start sub_818D938
|
||||
sub_818D938: @ 818D938
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x14
|
||||
adds r5, r1, 0
|
||||
ldr r1, [sp, 0x20]
|
||||
ldr r4, [sp, 0x24]
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
lsls r5, 24
|
||||
lsrs r5, 24
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
lsls r3, 16
|
||||
lsrs r3, 16
|
||||
lsls r1, 24
|
||||
lsrs r1, 24
|
||||
lsls r4, 24
|
||||
lsrs r4, 24
|
||||
str r2, [sp]
|
||||
str r3, [sp, 0x4]
|
||||
str r1, [sp, 0x8]
|
||||
str r4, [sp, 0xC]
|
||||
movs r1, 0x1
|
||||
str r1, [sp, 0x10]
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
adds r3, r5, 0
|
||||
bl sub_818D6CC
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
add sp, 0x14
|
||||
pop {r4,r5}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818D938
|
||||
|
||||
thumb_func_start sub_818D97C
|
||||
sub_818D97C: @ 818D97C
|
||||
push {lr}
|
||||
|
@ -20,6 +20,7 @@ extern const union AnimCmd *const *const gUnknown_08309AAC[NUM_SPECIES];
|
||||
extern const union AnimCmd *const *const gUnknown_0830536C[];
|
||||
extern const struct OamData gUnknown_0860B064;
|
||||
extern const struct OamData gUnknown_0860B06C;
|
||||
extern const u8 gUnknown_0831F578[];
|
||||
|
||||
// Static type declarations
|
||||
|
||||
@ -372,3 +373,52 @@ u16 sub_818D7D8(u16 species, u32 otId, u32 personality, bool8 isFrontPic, s16 x,
|
||||
{
|
||||
return sub_818D778(species, otId, personality, isFrontPic, x, y, paletteSlot, paletteTag, FALSE);
|
||||
}
|
||||
|
||||
u16 sub_818D820(u16 spriteId)
|
||||
{
|
||||
return sub_818D5B0(spriteId);
|
||||
}
|
||||
|
||||
u16 sub_818D834(u16 species, u32 otId, u32 personality, bool8 isFrontPic, u8 paletteSlot, u8 windowId)
|
||||
{
|
||||
return sub_818D65C(species, otId, personality, isFrontPic, paletteSlot, windowId, FALSE);
|
||||
}
|
||||
|
||||
u16 sub_818D864(u16 species, u32 otId, u32 personality, bool8 isFrontPic, u16 destX, u16 destY, u8 paletteSlot, u8 windowId)
|
||||
{
|
||||
return sub_818D6CC(species, otId, personality, isFrontPic, destX, destY, paletteSlot, windowId, FALSE);
|
||||
}
|
||||
|
||||
u16 sub_818D8AC(u16 species, bool8 isFrontPic, s16 x, s16 y, u8 paletteSlot, u16 paletteTag)
|
||||
{
|
||||
return sub_818D384(species, 0, 0, isFrontPic, x, y, paletteSlot, paletteTag, TRUE);
|
||||
}
|
||||
|
||||
u16 sub_818D8F0(u16 spriteId)
|
||||
{
|
||||
return sub_818D5B0(spriteId);
|
||||
}
|
||||
|
||||
u16 sub_818D904(u16 species, bool8 isFrontPic, u8 paletteSlot, u8 windowId)
|
||||
{
|
||||
return sub_818D65C(species, 0, 0, isFrontPic, paletteSlot, windowId, TRUE);
|
||||
}
|
||||
|
||||
u16 sub_818D938(u16 species, bool8 isFrontPic, u16 destX, u16 destY, u8 paletteSlot, u8 windowId)
|
||||
{
|
||||
return sub_818D6CC(species, 0, 0, isFrontPic, destX, destY, paletteSlot, windowId, TRUE);
|
||||
}
|
||||
|
||||
//u8 sub_818D97C(u8 a0, u8 a1)
|
||||
//{
|
||||
// u8 id;
|
||||
// if (a1 == 1 && a0)
|
||||
// {
|
||||
// id = gUnknown_0831F578[0x3F];
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// id = gUnknown_0831F578[0x3C];
|
||||
// }
|
||||
// return id;
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user