rom3 is decompiled
This commit is contained in:
@@ -1572,7 +1572,7 @@ _0806513A:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl LinkOpponentBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
|
||||
@@ -1113,7 +1113,7 @@ _0814B872:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl LinkPartnerBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
|
||||
@@ -1666,7 +1666,7 @@ _0805FFEA:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl OpponentBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
@@ -2607,7 +2607,7 @@ _08060806:
|
||||
ldrb r1, [r0]
|
||||
movs r0, 0x1
|
||||
adds r2, r4, 0
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl OpponentBufferExecCompleted
|
||||
add sp, 0x58
|
||||
pop {r4-r7}
|
||||
@@ -5243,7 +5243,7 @@ sub_8061FB8: @ 8061FB8
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
_08061FD6:
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
_08061FDA:
|
||||
bl OpponentBufferExecCompleted
|
||||
b _08062156
|
||||
@@ -5347,7 +5347,7 @@ _0806209C:
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
adds r2, r4, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _08061FDA
|
||||
.pool
|
||||
_080620C4:
|
||||
@@ -5378,7 +5378,7 @@ _080620C6:
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
adds r2, r4, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _08062152
|
||||
.pool
|
||||
_08062108:
|
||||
@@ -5401,7 +5401,7 @@ _08062108:
|
||||
orrs r2, r4
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _08062152
|
||||
.pool
|
||||
_0806213C:
|
||||
@@ -5413,7 +5413,7 @@ _0806213C:
|
||||
orrs r2, r4
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
_08062152:
|
||||
bl OpponentBufferExecCompleted
|
||||
_08062156:
|
||||
@@ -5435,7 +5435,7 @@ sub_806215C: @ 806215C
|
||||
adds r0, 0xC0
|
||||
ldrb r1, [r0]
|
||||
movs r0, 0x1
|
||||
bl dp01_build_cmdbuf_x23_aa_0
|
||||
bl EmitCmd35
|
||||
bl OpponentBufferExecCompleted
|
||||
pop {r0}
|
||||
bx r0
|
||||
@@ -5550,7 +5550,7 @@ _0806225A:
|
||||
lsrs r1, 24
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
bl OpponentBufferExecCompleted
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
|
||||
@@ -226,7 +226,7 @@ _0805764C:
|
||||
movs r0, 0x1
|
||||
movs r1, 0x3
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _080577C2
|
||||
_08057658:
|
||||
movs r0, 0x20
|
||||
@@ -393,7 +393,7 @@ _080577B2:
|
||||
movs r1, 0xC
|
||||
_080577BC:
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
_080577C2:
|
||||
bl PlayerBufferExecCompleted
|
||||
b _080577E8
|
||||
@@ -518,7 +518,7 @@ _080578A0:
|
||||
orrs r2, r0
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x1
|
||||
bl dp11b_obj_free
|
||||
@@ -1086,7 +1086,7 @@ _08057E14:
|
||||
_08057E1C:
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl PlayerBufferExecCompleted
|
||||
b _08057F9E
|
||||
.pool
|
||||
@@ -3413,7 +3413,7 @@ _080591FE:
|
||||
lsrs r2, 16
|
||||
movs r0, 0x1
|
||||
movs r1, 0xB
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
strb r5, [r4]
|
||||
bl IsDoubleBattle
|
||||
lsls r0, 24
|
||||
@@ -3686,7 +3686,7 @@ _08059430:
|
||||
lsrs r2, 16
|
||||
movs r0, 0x1
|
||||
movs r1, 0xB
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
strb r5, [r4]
|
||||
ldr r0, =sub_8059544
|
||||
str r0, [r6]
|
||||
@@ -4059,14 +4059,14 @@ sub_8059828: @ 8059828
|
||||
ldrb r1, [r0]
|
||||
ldr r2, =gUnknown_0203CF00
|
||||
movs r0, 0x1
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
b _0805987A
|
||||
.pool
|
||||
_08059870:
|
||||
movs r0, 0x1
|
||||
movs r1, 0x6
|
||||
movs r2, 0
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
_0805987A:
|
||||
ldr r1, =gBattleBufferA
|
||||
ldr r0, =gActiveBank
|
||||
@@ -4130,7 +4130,7 @@ sub_80598E0: @ 80598E0
|
||||
ldr r0, =gScriptItemId
|
||||
ldrh r1, [r0]
|
||||
movs r0, 0x1
|
||||
bl dp01_build_cmdbuf_x23_aa_0
|
||||
bl EmitCmd35
|
||||
bl PlayerBufferExecCompleted
|
||||
_08059906:
|
||||
pop {r0}
|
||||
@@ -4291,14 +4291,14 @@ _08059A2C:
|
||||
movs r0, 0x1
|
||||
movs r1, 0xE
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _08059A76
|
||||
.pool
|
||||
_08059A6C:
|
||||
movs r0, 0x1
|
||||
movs r1, 0xD
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
_08059A76:
|
||||
bl PlayerBufferExecCompleted
|
||||
_08059A7A:
|
||||
@@ -4772,7 +4772,7 @@ _08059E4E:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl PlayerBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
@@ -5713,7 +5713,7 @@ _0805A66A:
|
||||
ldrb r1, [r0]
|
||||
movs r0, 0x1
|
||||
adds r2, r4, 0
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl PlayerBufferExecCompleted
|
||||
add sp, 0x58
|
||||
pop {r4-r7}
|
||||
@@ -8658,7 +8658,7 @@ sub_805C158: @ 805C158
|
||||
lsrs r2, 16
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl PlayerBufferExecCompleted
|
||||
_0805C194:
|
||||
pop {r0}
|
||||
@@ -8826,7 +8826,7 @@ _0805C2C8:
|
||||
lsrs r1, 24
|
||||
movs r0, 0x1
|
||||
mov r2, r12
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
bl PlayerBufferExecCompleted
|
||||
b _0805C3BC
|
||||
.pool
|
||||
@@ -9378,7 +9378,7 @@ sub_805C80C: @ 805C80C
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl PlayerBufferExecCompleted
|
||||
pop {r0}
|
||||
bx r0
|
||||
@@ -9390,7 +9390,7 @@ sub_805C820: @ 805C820
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
bl PlayerBufferExecCompleted
|
||||
pop {r0}
|
||||
bx r0
|
||||
@@ -9401,7 +9401,7 @@ sub_805C834: @ 805C834
|
||||
push {lr}
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
bl dp01_build_cmdbuf_x23_aa_0
|
||||
bl EmitCmd35
|
||||
bl PlayerBufferExecCompleted
|
||||
pop {r0}
|
||||
bx r0
|
||||
@@ -9412,7 +9412,7 @@ sub_805C848: @ 805C848
|
||||
push {lr}
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
bl dp01_build_cmdbuf_x24_aa_0
|
||||
bl EmitCmd36
|
||||
bl PlayerBufferExecCompleted
|
||||
pop {r0}
|
||||
bx r0
|
||||
|
||||
@@ -645,7 +645,7 @@ _081BB2E2:
|
||||
lsrs r2, 16
|
||||
movs r0, 0x1
|
||||
movs r1, 0xB
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
strb r5, [r4]
|
||||
bl IsDoubleBattle
|
||||
lsls r0, 24
|
||||
@@ -918,7 +918,7 @@ _081BB514:
|
||||
lsrs r2, 16
|
||||
movs r0, 0x1
|
||||
movs r1, 0xB
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
strb r5, [r4]
|
||||
ldr r0, =sub_81BB628
|
||||
str r0, [r6]
|
||||
@@ -1688,7 +1688,7 @@ _081BBCBE:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl PlayerPartnerBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
@@ -5068,7 +5068,7 @@ _081BDB3C:
|
||||
orrs r2, r5
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl PlayerPartnerBufferExecCompleted
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
@@ -5138,7 +5138,7 @@ _081BDBD0:
|
||||
lsrs r1, 24
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
bl PlayerPartnerBufferExecCompleted
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
|
||||
@@ -1553,7 +1553,7 @@ _0818727E:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl RecordedOpponentBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
@@ -4754,7 +4754,7 @@ sub_8188EF0: @ 8188EF0
|
||||
lsrs r1, 24
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl RecordedOpponentBufferExecCompleted
|
||||
pop {r0}
|
||||
bx r0
|
||||
@@ -4785,7 +4785,7 @@ sub_8188F20: @ 8188F20
|
||||
lsrs r2, 16
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _08188F6C
|
||||
.pool
|
||||
_08188F48:
|
||||
@@ -4803,7 +4803,7 @@ _08188F48:
|
||||
orrs r2, r4
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
_08188F6C:
|
||||
bl RecordedOpponentBufferExecCompleted
|
||||
pop {r4,r5}
|
||||
@@ -4839,7 +4839,7 @@ sub_8188F88: @ 8188F88
|
||||
ldrb r1, [r0]
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
bl RecordedOpponentBufferExecCompleted
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
|
||||
@@ -1489,7 +1489,7 @@ _0818A646:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl RecordedPlayerBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
@@ -4861,7 +4861,7 @@ sub_818C49C: @ 818C49C
|
||||
lsrs r1, 24
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl RecordedPlayerBufferExecCompleted
|
||||
_0818C4C6:
|
||||
pop {r0}
|
||||
@@ -4897,7 +4897,7 @@ _0818C508:
|
||||
lsrs r1, 24
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl RecordedPlayerBufferExecCompleted
|
||||
_0818C522:
|
||||
pop {r0}
|
||||
@@ -4929,7 +4929,7 @@ sub_818C538: @ 818C538
|
||||
lsrs r2, 16
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _0818C584
|
||||
.pool
|
||||
_0818C560:
|
||||
@@ -4947,7 +4947,7 @@ _0818C560:
|
||||
orrs r2, r4
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
_0818C584:
|
||||
bl RecordedPlayerBufferExecCompleted
|
||||
pop {r4,r5}
|
||||
@@ -4983,7 +4983,7 @@ sub_818C5A0: @ 818C5A0
|
||||
ldrb r1, [r0]
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
bl dp01_build_cmdbuf_x22_a_three_bytes
|
||||
bl EmitCmd34
|
||||
bl RecordedPlayerBufferExecCompleted
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
|
||||
@@ -103,13 +103,13 @@ _0815942A:
|
||||
movs r1, 0x7
|
||||
_0815942E:
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
b _08159440
|
||||
_08159436:
|
||||
movs r0, 0x1
|
||||
movs r1, 0x8
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
_08159440:
|
||||
bl SafariBufferExecCompleted
|
||||
b _0815954E
|
||||
@@ -399,7 +399,7 @@ sub_8159698: @ 8159698
|
||||
ldr r0, =gScriptItemId
|
||||
ldrh r1, [r0]
|
||||
movs r0, 0x1
|
||||
bl dp01_build_cmdbuf_x23_aa_0
|
||||
bl EmitCmd35
|
||||
bl SafariBufferExecCompleted
|
||||
_081596BE:
|
||||
pop {r0}
|
||||
|
||||
@@ -153,7 +153,7 @@ _081684CE:
|
||||
movs r1, 0x9
|
||||
_081684E4:
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl WallyBufferExecCompleted
|
||||
ldr r1, [r4]
|
||||
adds r1, 0x94
|
||||
@@ -208,7 +208,7 @@ _08168540:
|
||||
movs r0, 0x1
|
||||
movs r1, 0x1
|
||||
movs r2, 0
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl WallyBufferExecCompleted
|
||||
_08168564:
|
||||
pop {r4,r5}
|
||||
@@ -311,7 +311,7 @@ sub_8168610: @ 8168610
|
||||
ldr r0, =gScriptItemId
|
||||
ldrh r1, [r0]
|
||||
movs r0, 0x1
|
||||
bl dp01_build_cmdbuf_x23_aa_0
|
||||
bl EmitCmd35
|
||||
bl WallyBufferExecCompleted
|
||||
_08168636:
|
||||
pop {r0}
|
||||
@@ -975,7 +975,7 @@ _08168BFA:
|
||||
lsrs r1, 16
|
||||
movs r0, 0x1
|
||||
mov r2, sp
|
||||
bl dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
bl EmitDataTransfer
|
||||
bl WallyBufferExecCompleted
|
||||
add sp, 0x100
|
||||
pop {r4-r6}
|
||||
@@ -3777,7 +3777,7 @@ _0816A550:
|
||||
lsls r2, 1
|
||||
movs r0, 0x1
|
||||
movs r1, 0xA
|
||||
bl EmitCmd_x21
|
||||
bl EmitCmd33
|
||||
bl WallyBufferExecCompleted
|
||||
_0816A574:
|
||||
pop {r4}
|
||||
|
||||
-971
@@ -1,971 +0,0 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start EmitCmd13
|
||||
EmitCmd13: @ 8033E10
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x13
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitCmd13
|
||||
|
||||
thumb_func_start EmitChooseMove
|
||||
EmitChooseMove: @ 8033E30
|
||||
push {r4-r6,lr}
|
||||
adds r5, r3, 0
|
||||
lsls r0, 24
|
||||
lsrs r6, r0, 24
|
||||
ldr r3, =gBattleBuffersTransferData
|
||||
movs r4, 0
|
||||
movs r0, 0x14
|
||||
strb r0, [r3]
|
||||
strb r1, [r3, 0x1]
|
||||
strb r2, [r3, 0x2]
|
||||
strb r4, [r3, 0x3]
|
||||
movs r2, 0
|
||||
adds r1, r3, 0
|
||||
adds r4, r1, 0x4
|
||||
_08033E4C:
|
||||
adds r0, r5, r2
|
||||
ldrb r0, [r0]
|
||||
strb r0, [r4]
|
||||
adds r4, 0x1
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x13
|
||||
bls _08033E4C
|
||||
adds r0, r6, 0
|
||||
movs r2, 0x18
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitChooseMove
|
||||
|
||||
thumb_func_start EmitOpenBag
|
||||
EmitOpenBag: @ 8033E6C
|
||||
push {r4,r5,lr}
|
||||
adds r4, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r5, r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r0, 0x15
|
||||
strb r0, [r1]
|
||||
movs r2, 0
|
||||
adds r3, r1, 0x1
|
||||
_08033E7E:
|
||||
adds r0, r4, r2
|
||||
ldrb r0, [r0]
|
||||
strb r0, [r3]
|
||||
adds r3, 0x1
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x2
|
||||
ble _08033E7E
|
||||
adds r0, r5, 0
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitOpenBag
|
||||
|
||||
thumb_func_start EmitChoosePokemon
|
||||
EmitChoosePokemon: @ 8033EA0
|
||||
push {r4-r6,lr}
|
||||
ldr r6, [sp, 0x10]
|
||||
lsls r0, 24
|
||||
lsrs r5, r0, 24
|
||||
ldr r4, =gBattleBuffersTransferData
|
||||
movs r0, 0x16
|
||||
strb r0, [r4]
|
||||
strb r1, [r4, 0x1]
|
||||
strb r2, [r4, 0x2]
|
||||
strb r3, [r4, 0x3]
|
||||
movs r2, 0
|
||||
adds r1, r4, 0
|
||||
adds r3, r1, 0x4
|
||||
_08033EBA:
|
||||
adds r0, r6, r2
|
||||
ldrb r0, [r0]
|
||||
strb r0, [r3]
|
||||
adds r3, 0x1
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x2
|
||||
ble _08033EBA
|
||||
adds r0, r5, 0
|
||||
movs r2, 0x8
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitChoosePokemon
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x17_17_17_17
|
||||
dp01_build_cmdbuf_x17_17_17_17: @ 8033EDC
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x17
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x17_17_17_17
|
||||
|
||||
thumb_func_start EmitHealthBarUpdate
|
||||
EmitHealthBarUpdate: @ 8033EFC
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
ldr r3, =gBattleBuffersTransferData
|
||||
movs r4, 0
|
||||
movs r2, 0x18
|
||||
strb r2, [r3]
|
||||
strb r4, [r3, 0x1]
|
||||
strb r1, [r3, 0x2]
|
||||
lsls r1, 16
|
||||
asrs r1, 16
|
||||
movs r2, 0xFF
|
||||
lsls r2, 8
|
||||
ands r1, r2
|
||||
asrs r1, 8
|
||||
strb r1, [r3, 0x3]
|
||||
adds r1, r3, 0
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitHealthBarUpdate
|
||||
|
||||
thumb_func_start EmitExpUpdate
|
||||
EmitExpUpdate: @ 8033F34
|
||||
push {r4,lr}
|
||||
adds r4, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r3, 0x19
|
||||
strb r3, [r1]
|
||||
strb r4, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
lsls r2, 16
|
||||
asrs r2, 16
|
||||
movs r3, 0xFF
|
||||
lsls r3, 8
|
||||
ands r2, r3
|
||||
asrs r2, 8
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitExpUpdate
|
||||
|
||||
thumb_func_start EmitStatusIconUpdate
|
||||
EmitStatusIconUpdate: @ 8033F68
|
||||
push {r4-r6,lr}
|
||||
adds r4, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r3, 0x1A
|
||||
strb r3, [r1]
|
||||
strb r4, [r1, 0x1]
|
||||
movs r6, 0xFF
|
||||
lsls r6, 8
|
||||
adds r3, r4, 0
|
||||
ands r3, r6
|
||||
lsrs r3, 8
|
||||
strb r3, [r1, 0x2]
|
||||
movs r5, 0xFF
|
||||
lsls r5, 16
|
||||
adds r3, r4, 0
|
||||
ands r3, r5
|
||||
lsrs r3, 16
|
||||
strb r3, [r1, 0x3]
|
||||
lsrs r4, 24
|
||||
strb r4, [r1, 0x4]
|
||||
strb r2, [r1, 0x5]
|
||||
adds r3, r2, 0
|
||||
ands r3, r6
|
||||
lsrs r3, 8
|
||||
strb r3, [r1, 0x6]
|
||||
adds r3, r2, 0
|
||||
ands r3, r5
|
||||
lsrs r3, 16
|
||||
strb r3, [r1, 0x7]
|
||||
lsrs r2, 24
|
||||
strb r2, [r1, 0x8]
|
||||
movs r2, 0x9
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitStatusIconUpdate
|
||||
|
||||
thumb_func_start EmitStatusAnimation
|
||||
EmitStatusAnimation: @ 8033FBC
|
||||
push {r4,lr}
|
||||
adds r4, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r3, 0x1B
|
||||
strb r3, [r1]
|
||||
strb r4, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
movs r3, 0xFF
|
||||
lsls r3, 8
|
||||
ands r3, r2
|
||||
lsrs r3, 8
|
||||
strb r3, [r1, 0x3]
|
||||
movs r3, 0xFF
|
||||
lsls r3, 16
|
||||
ands r3, r2
|
||||
lsrs r3, 16
|
||||
strb r3, [r1, 0x4]
|
||||
lsrs r2, 24
|
||||
strb r2, [r1, 0x5]
|
||||
movs r2, 0x6
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitStatusAnimation
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x1C_a
|
||||
dp01_build_cmdbuf_x1C_a: @ 8033FF8
|
||||
push {lr}
|
||||
adds r3, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x1C
|
||||
strb r2, [r1]
|
||||
strb r3, [r1, 0x1]
|
||||
movs r2, 0x2
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x1C_a
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
dp01_build_cmdbuf_x1D_1D_numargs_varargs: @ 8034018
|
||||
push {r4-r6,lr}
|
||||
lsls r0, 24
|
||||
lsrs r6, r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r4, r1, 16
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r0, 0x1D
|
||||
strb r0, [r1]
|
||||
strb r0, [r1, 0x1]
|
||||
strb r4, [r1, 0x2]
|
||||
lsrs r0, r4, 8
|
||||
strb r0, [r1, 0x3]
|
||||
adds r5, r1, 0
|
||||
cmp r4, 0
|
||||
beq _08034048
|
||||
adds r1, r5, 0x4
|
||||
adds r3, r4, 0
|
||||
_0803403A:
|
||||
ldrb r0, [r2]
|
||||
strb r0, [r1]
|
||||
adds r2, 0x1
|
||||
adds r1, 0x1
|
||||
subs r3, 0x1
|
||||
cmp r3, 0
|
||||
bne _0803403A
|
||||
_08034048:
|
||||
adds r2, r4, 0x4
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
adds r0, r6, 0
|
||||
adds r1, r5, 0
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x1D_1D_numargs_varargs
|
||||
|
||||
thumb_func_start sub_8034060
|
||||
sub_8034060: @ 8034060
|
||||
push {r4-r6,lr}
|
||||
adds r4, r3, 0
|
||||
lsls r0, 24
|
||||
lsrs r6, r0, 24
|
||||
lsls r2, 16
|
||||
lsrs r5, r2, 16
|
||||
ldr r2, =gBattleBuffersTransferData
|
||||
movs r0, 0x1E
|
||||
strb r0, [r2]
|
||||
strb r1, [r2, 0x1]
|
||||
movs r3, 0xFF
|
||||
lsls r3, 8
|
||||
adds r0, r1, 0
|
||||
ands r0, r3
|
||||
lsrs r0, 8
|
||||
strb r0, [r2, 0x2]
|
||||
movs r0, 0xFF
|
||||
lsls r0, 16
|
||||
ands r0, r1
|
||||
lsrs r0, 16
|
||||
strb r0, [r2, 0x3]
|
||||
lsrs r1, 24
|
||||
strb r1, [r2, 0x4]
|
||||
strb r5, [r2, 0x5]
|
||||
adds r0, r5, 0
|
||||
ands r0, r3
|
||||
lsrs r0, 8
|
||||
strb r0, [r2, 0x6]
|
||||
adds r1, r2, 0
|
||||
cmp r5, 0
|
||||
beq _080340B0
|
||||
adds r3, r1, 0x7
|
||||
adds r2, r5, 0
|
||||
_080340A2:
|
||||
ldrb r0, [r4]
|
||||
strb r0, [r3]
|
||||
adds r4, 0x1
|
||||
adds r3, 0x1
|
||||
subs r2, 0x1
|
||||
cmp r2, 0
|
||||
bne _080340A2
|
||||
_080340B0:
|
||||
adds r2, r5, 0x7
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
adds r0, r6, 0
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8034060
|
||||
|
||||
thumb_func_start sub_80340C8
|
||||
sub_80340C8: @ 80340C8
|
||||
push {r4-r6,lr}
|
||||
lsls r0, 24
|
||||
lsrs r6, r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r4, r1, 16
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r0, 0x1F
|
||||
strb r0, [r1]
|
||||
strb r4, [r1, 0x1]
|
||||
lsrs r0, r4, 8
|
||||
strb r0, [r1, 0x2]
|
||||
adds r5, r1, 0
|
||||
cmp r4, 0
|
||||
beq _080340F6
|
||||
adds r1, r5, 0x3
|
||||
adds r3, r4, 0
|
||||
_080340E8:
|
||||
ldrb r0, [r2]
|
||||
strb r0, [r1]
|
||||
adds r2, 0x1
|
||||
adds r1, 0x1
|
||||
subs r3, 0x1
|
||||
cmp r3, 0
|
||||
bne _080340E8
|
||||
_080340F6:
|
||||
adds r2, r4, 0x3
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
adds r0, r6, 0
|
||||
adds r1, r5, 0
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_80340C8
|
||||
|
||||
thumb_func_start sub_8034110
|
||||
sub_8034110: @ 8034110
|
||||
push {r4-r6,lr}
|
||||
lsls r0, 24
|
||||
lsrs r6, r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r4, r1, 16
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r0, 0x20
|
||||
strb r0, [r1]
|
||||
strb r4, [r1, 0x1]
|
||||
lsrs r0, r4, 8
|
||||
strb r0, [r1, 0x2]
|
||||
adds r5, r1, 0
|
||||
cmp r4, 0
|
||||
beq _0803413E
|
||||
adds r1, r5, 0x3
|
||||
adds r3, r4, 0
|
||||
_08034130:
|
||||
ldrb r0, [r2]
|
||||
strb r0, [r1]
|
||||
adds r2, 0x1
|
||||
adds r1, 0x1
|
||||
subs r3, 0x1
|
||||
cmp r3, 0
|
||||
bne _08034130
|
||||
_0803413E:
|
||||
adds r2, r4, 0x3
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
adds r0, r6, 0
|
||||
adds r1, r5, 0
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8034110
|
||||
|
||||
thumb_func_start EmitCmd_x21
|
||||
EmitCmd_x21: @ 8034158
|
||||
push {r4,lr}
|
||||
adds r4, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r3, 0x21
|
||||
strb r3, [r1]
|
||||
strb r4, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
lsrs r2, 8
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitCmd_x21
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x22_a_three_bytes
|
||||
dp01_build_cmdbuf_x22_a_three_bytes: @ 8034184
|
||||
push {r4,r5,lr}
|
||||
adds r4, r2, 0
|
||||
lsls r0, 24
|
||||
lsrs r5, r0, 24
|
||||
ldr r2, =gBattleBuffersTransferData
|
||||
movs r0, 0x22
|
||||
strb r0, [r2]
|
||||
strb r1, [r2, 0x1]
|
||||
movs r3, 0
|
||||
adds r1, r2, 0x2
|
||||
_08034198:
|
||||
adds r0, r4, r3
|
||||
ldrb r0, [r0]
|
||||
strb r0, [r1]
|
||||
adds r1, 0x1
|
||||
adds r3, 0x1
|
||||
cmp r3, 0x2
|
||||
ble _08034198
|
||||
adds r0, r5, 0
|
||||
adds r1, r2, 0
|
||||
movs r2, 0x5
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x22_a_three_bytes
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x23_aa_0
|
||||
dp01_build_cmdbuf_x23_aa_0: @ 80341BC
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
ldr r3, =gBattleBuffersTransferData
|
||||
movs r4, 0
|
||||
movs r2, 0x23
|
||||
strb r2, [r3]
|
||||
strb r1, [r3, 0x1]
|
||||
lsrs r1, 8
|
||||
strb r1, [r3, 0x2]
|
||||
strb r4, [r3, 0x3]
|
||||
adds r1, r3, 0
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x23_aa_0
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x24_aa_0
|
||||
dp01_build_cmdbuf_x24_aa_0: @ 80341E8
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
ldr r3, =gBattleBuffersTransferData
|
||||
movs r4, 0
|
||||
movs r2, 0x24
|
||||
strb r2, [r3]
|
||||
strb r1, [r3, 0x1]
|
||||
lsrs r1, 8
|
||||
strb r1, [r3, 0x2]
|
||||
strb r4, [r3, 0x3]
|
||||
adds r1, r3, 0
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x24_aa_0
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x25_25_25_25
|
||||
dp01_build_cmdbuf_x25_25_25_25: @ 8034214
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x25
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x25_25_25_25
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x26_a
|
||||
dp01_build_cmdbuf_x26_a: @ 8034234
|
||||
push {lr}
|
||||
adds r3, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x26
|
||||
strb r2, [r1]
|
||||
strb r3, [r1, 0x1]
|
||||
movs r2, 0x2
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x26_a
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x27_27_27_27
|
||||
dp01_build_cmdbuf_x27_27_27_27: @ 8034254
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x27
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x27_27_27_27
|
||||
|
||||
thumb_func_start dp01_build_cmdbuf_x28_28_28_28
|
||||
dp01_build_cmdbuf_x28_28_28_28: @ 8034274
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x28
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end dp01_build_cmdbuf_x28_28_28_28
|
||||
|
||||
thumb_func_start EmitHitAnimation
|
||||
EmitHitAnimation: @ 8034294
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x29
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitHitAnimation
|
||||
|
||||
thumb_func_start Emit_x2A
|
||||
Emit_x2A: @ 80342B4
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x2A
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end Emit_x2A
|
||||
|
||||
thumb_func_start EmitEffectivenessSound
|
||||
EmitEffectivenessSound: @ 80342D4
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
ldr r3, =gBattleBuffersTransferData
|
||||
movs r4, 0
|
||||
movs r2, 0x2B
|
||||
strb r2, [r3]
|
||||
strb r1, [r3, 0x1]
|
||||
lsrs r1, 8
|
||||
strb r1, [r3, 0x2]
|
||||
strb r4, [r3, 0x3]
|
||||
adds r1, r3, 0
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitEffectivenessSound
|
||||
|
||||
thumb_func_start EmitPlaySound
|
||||
EmitPlaySound: @ 8034300
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
ldr r4, =gBattleBuffersTransferData
|
||||
movs r3, 0x2C
|
||||
strb r3, [r4]
|
||||
strb r1, [r4, 0x1]
|
||||
lsrs r1, 8
|
||||
strb r1, [r4, 0x2]
|
||||
strb r2, [r4, 0x3]
|
||||
adds r1, r4, 0
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitPlaySound
|
||||
|
||||
thumb_func_start EmitFaintingCry
|
||||
EmitFaintingCry: @ 803432C
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x2D
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitFaintingCry
|
||||
|
||||
thumb_func_start EmitIntroSlide
|
||||
EmitIntroSlide: @ 803434C
|
||||
push {lr}
|
||||
adds r3, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x2E
|
||||
strb r2, [r1]
|
||||
strb r3, [r1, 0x1]
|
||||
movs r2, 0x2
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitIntroSlide
|
||||
|
||||
thumb_func_start EmitIntroTrainerBallThrow
|
||||
EmitIntroTrainerBallThrow: @ 803436C
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x2F
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitIntroTrainerBallThrow
|
||||
|
||||
thumb_func_start EmitDrawPartyStatusSummary
|
||||
EmitDrawPartyStatusSummary: @ 803438C
|
||||
push {r4,r5,lr}
|
||||
adds r4, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r5, r0, 24
|
||||
lsls r2, 24
|
||||
lsrs r2, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r3, 0x30
|
||||
strb r3, [r1]
|
||||
movs r0, 0x7F
|
||||
ands r0, r2
|
||||
strb r0, [r1, 0x1]
|
||||
movs r0, 0x80
|
||||
ands r0, r2
|
||||
lsls r0, 24
|
||||
lsrs r0, 31
|
||||
strb r0, [r1, 0x2]
|
||||
strb r3, [r1, 0x3]
|
||||
movs r2, 0
|
||||
adds r3, r1, 0x4
|
||||
_080343B4:
|
||||
adds r0, r4, r2
|
||||
ldrb r0, [r0]
|
||||
strb r0, [r3]
|
||||
adds r3, 0x1
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x2F
|
||||
ble _080343B4
|
||||
adds r0, r5, 0
|
||||
movs r2, 0x34
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitDrawPartyStatusSummary
|
||||
|
||||
thumb_func_start EmitCmd49
|
||||
EmitCmd49: @ 80343D4
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x31
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitCmd49
|
||||
|
||||
thumb_func_start Emit_x32
|
||||
Emit_x32: @ 80343F4
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x32
|
||||
strb r2, [r1]
|
||||
strb r2, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end Emit_x32
|
||||
|
||||
thumb_func_start EmitSpriteInvisibility
|
||||
EmitSpriteInvisibility: @ 8034414
|
||||
push {lr}
|
||||
adds r3, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x33
|
||||
strb r2, [r1]
|
||||
strb r3, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitSpriteInvisibility
|
||||
|
||||
thumb_func_start EmitBattleAnimation
|
||||
EmitBattleAnimation: @ 8034438
|
||||
push {r4,lr}
|
||||
adds r4, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r2, 16
|
||||
lsrs r2, 16
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r3, 0x34
|
||||
strb r3, [r1]
|
||||
strb r4, [r1, 0x1]
|
||||
strb r2, [r1, 0x2]
|
||||
lsrs r2, 8
|
||||
strb r2, [r1, 0x3]
|
||||
movs r2, 0x4
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitBattleAnimation
|
||||
|
||||
thumb_func_start EmitLinkStandbyMsg
|
||||
EmitLinkStandbyMsg: @ 8034464
|
||||
push {r4,r5,lr}
|
||||
lsls r0, 24
|
||||
lsrs r5, r0, 24
|
||||
lsls r2, 24
|
||||
lsrs r2, 24
|
||||
ldr r4, =gBattleBuffersTransferData
|
||||
movs r0, 0x35
|
||||
strb r0, [r4]
|
||||
strb r1, [r4, 0x1]
|
||||
cmp r2, 0
|
||||
beq _0803448C
|
||||
adds r0, r4, 0x4
|
||||
bl sub_81850DC
|
||||
strb r0, [r4, 0x2]
|
||||
strb r0, [r4, 0x3]
|
||||
b _08034490
|
||||
.pool
|
||||
_0803448C:
|
||||
strb r2, [r4, 0x2]
|
||||
strb r2, [r4, 0x3]
|
||||
_08034490:
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
ldrb r2, [r1, 0x2]
|
||||
adds r2, 0x4
|
||||
adds r0, r5, 0
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitLinkStandbyMsg
|
||||
|
||||
thumb_func_start EmitResetActionMoveSelection
|
||||
EmitResetActionMoveSelection: @ 80344A8
|
||||
push {lr}
|
||||
adds r3, r1, 0
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gBattleBuffersTransferData
|
||||
movs r2, 0x36
|
||||
strb r2, [r1]
|
||||
strb r3, [r1, 0x1]
|
||||
movs r2, 0x2
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end EmitResetActionMoveSelection
|
||||
|
||||
thumb_func_start Emit_x37
|
||||
Emit_x37: @ 80344C8
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
lsls r5, 24
|
||||
lsrs r5, 24
|
||||
ldr r4, =gBattleBuffersTransferData
|
||||
movs r0, 0x37
|
||||
strb r0, [r4]
|
||||
strb r1, [r4, 0x1]
|
||||
ldr r0, =gSaveBlock2Ptr
|
||||
ldr r1, [r0]
|
||||
ldr r0, =0x00000ca9
|
||||
adds r1, r0
|
||||
ldrb r0, [r1]
|
||||
lsls r0, 28
|
||||
lsrs r0, 31
|
||||
strb r0, [r4, 0x2]
|
||||
ldrb r0, [r1]
|
||||
lsls r0, 28
|
||||
lsrs r0, 31
|
||||
strb r0, [r4, 0x3]
|
||||
adds r0, r4, 0x6
|
||||
bl sub_81850DC
|
||||
strb r0, [r4, 0x4]
|
||||
strb r0, [r4, 0x5]
|
||||
ldrb r2, [r4, 0x4]
|
||||
adds r2, 0x6
|
||||
adds r0, r5, 0
|
||||
adds r1, r4, 0
|
||||
bl PrepareBufferDataTransfer
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end Emit_x37
|
||||
|
||||
.align 2, 0 @ Don't pad with nop.
|
||||
Reference in New Issue
Block a user