summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-04-28 21:18:01 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-04-28 21:18:01 -0400
commite79f35324a846fa99be5f2a6e368c6fddf34d8a1 (patch)
treee50d3be8f28ddee1d3d161cb1a223807f15cfd74 /src
parentda9b567dfd4ec56b50710ee6617e06e629c80bb3 (diff)
Finish decompilation of pokedex_cry_screen.o(.text)
Diffstat (limited to 'src')
-rw-r--r--src/pokedex_cry_screen.c38
1 files changed, 36 insertions, 2 deletions
diff --git a/src/pokedex_cry_screen.c b/src/pokedex_cry_screen.c
index ef5a5c2fc..4c21a9743 100644
--- a/src/pokedex_cry_screen.c
+++ b/src/pokedex_cry_screen.c
@@ -44,7 +44,7 @@ void sub_811A124(void);
void sub_811A15C(u8);
void sub_811A1C8(u8, u8);
void sub_811A324(void);
-void sub_811A350(u8, u8, u8);
+void sub_811A350(u8, u16, u8);
void sub_811A6D8(s8);
extern u8 gUnknown_03005E98;
@@ -653,7 +653,41 @@ NAKED void sub_811A1C8(u8 a0, u8 a1)
}
#endif // NONMATCHING
-asm(".section .text.ShowPokedexCryScreen");
+void sub_811A324(void)
+{
+ DmaCopy16(3, ePokedexCryScreenGfx.unk0000, VRAM + ePokedexCryScreen.unk0014, 0x1c00);
+}
+
+void sub_811A350(u8 a0, u16 a1, u8 a2)
+{
+ switch (a0)
+ {
+ case 0:
+ if (a2)
+ REG_BG0VOFS = a1;
+ else
+ REG_BG0HOFS = a1;
+ break;
+ case 1:
+ if (a2)
+ REG_BG1VOFS = a1;
+ else
+ REG_BG1HOFS = a1;
+ break;
+ case 2:
+ if (a2)
+ REG_BG2VOFS = a1;
+ else
+ REG_BG2HOFS = a1;
+ break;
+ case 3:
+ if (a2)
+ REG_BG3VOFS = a1;
+ else
+ REG_BG3HOFS = a1;
+ break;
+ }
+}
u8 ShowPokedexCryScreen(struct CryRelatedStruct *cry, u8 arg1) {
int returnVal = FALSE;