sub_80E8AF0

This commit is contained in:
PikalaxALT 2017-10-23 18:35:06 -04:00
parent 88230e8d16
commit eb49cfcab2
3 changed files with 29 additions and 31 deletions

View File

@ -5,37 +5,6 @@
.text
thumb_func_start sub_80E8AF0
sub_80E8AF0: @ 80E8AF0
push {r4,lr}
sub sp, 0x4
adds r4, r0, 0
movs r0, 0
str r0, [sp]
ldr r2, =0x01000028
mov r0, sp
adds r1, r4, 0
bl CpuFastSet
movs r2, 0
adds r4, 0x2
movs r3, 0xFF
_080E8B0A:
adds r0, r4, r2
ldrb r1, [r0]
orrs r1, r3
strb r1, [r0]
adds r0, r2, 0x1
lsls r0, 16
lsrs r2, r0, 16
cmp r2, 0x6
bls _080E8B0A
add sp, 0x4
pop {r4}
pop {r0}
bx r0
.pool
thumb_func_end sub_80E8AF0
thumb_func_start ResetSecretBases
ResetSecretBases: @ 80E8B28
push {r4,r5,lr}

View File

@ -147,6 +147,7 @@ SECTIONS {
src/money.o(.text);
asm/contest_effect.o(.text);
asm/record_mixing.o(.text);
src/secret_base.o(.text);
asm/secret_base.o(.text);
src/tv.o(.text);
asm/contest_link_80F57C4.o(.text);

28
src/secret_base.c Normal file
View File

@ -0,0 +1,28 @@
// Includes
#include "global.h"
#include "decoration.h"
#include "decoration_inventory.h"
#include "text.h"
#include "secret_base.h"
// Static type declarations
// Static RAM declarations
// Static ROM declarations
void sub_80E8AF0(struct SecretBaseRecord *sbr)
{
u16 i;
CpuFastFill16(0, sbr, sizeof(struct SecretBaseRecord));
for (i = 0; i < 7; i ++)
{
sbr->trainerName[i] = EOS;
}
}
// .rodata
// .text