Skip to content

Commit

Permalink
Merge pull request #854 from AreaZeroArven/Work-2
Browse files Browse the repository at this point in the history
pokedex: Un-assembler nonmatchings
  • Loading branch information
RevoSucks authored Jan 7, 2023
2 parents 79ac263 + dbd5aa7 commit df0a97c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/pokedex.c
Original file line number Diff line number Diff line change
Expand Up @@ -3792,8 +3792,8 @@ static void sub_8090750(u8 taskId)

switch (gTasks[taskId].data[0])
{
case 0:
default:
case 0:
if (!gPaletteFade.active)
{
gPokedexVBlankCB = gMain.vblankCallback;
Expand All @@ -3807,10 +3807,9 @@ static void sub_8090750(u8 taskId)
LZ77UnCompVram(gUnknown_08E96BD4, (void *)(VRAM + 0x7800));
for (i = 0; i < 0x280; i++)
{
#ifndef NONMATCHING
asm("");
#endif
*(u16 *)(BG_VRAM + 0x7800 + 2 * i) += 0x2000;
u16 temp = *(u16 *)(BG_VRAM + 0x7800 + 2 * i);
temp += 0x2000;
*(u16 *)(BG_VRAM + 0x7800 + 2 * i) = temp;
}
PrintFootprint(gTasks[taskId].data[1], 2, 0x3FC);
ResetPaletteFade();
Expand Down Expand Up @@ -5323,11 +5322,10 @@ static void PrintSearchParameterText(u8 taskId)
u16 j;

Menu_EraseWindowRect(18, 1, 28, 12);
for (i = 0, j = *r7; i < 6 && r6[j].title != NULL; i++, j++)
for (i = 0, j = *r7; i < 6; i++, j++)
{
#ifndef NONMATCHING
j += 0; // Useless statement needed to match
#endif
if (r6[j].title == NULL)
break;
Menu_PrintText(r6[j].title, 18, i * 2 + 1);
}
EraseAndPrintSearchTextBox(r6[*r8 + *r7].description);
Expand Down

0 comments on commit df0a97c

Please sign in to comment.