From f402e46cd3c8b7236673d6edbae77903a7cc0618 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sat, 15 May 2021 16:59:55 -0700 Subject: Sese's April/May Dump (#37) * splitting lots of pokemon square and labeling lots of other things * actually commit this stuff * more moving data and things * more screen work * split out some pokemon dungeon data * lots of data work * push more data work * split kecleon, decomp another kanghaskhan func, and try to doc UpdateBGControl more * lots of item work * label more item things * subtype -> category and doc types/category --- src/code_800D090.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/code_800D090.c') diff --git a/src/code_800D090.c b/src/code_800D090.c index b263d30..fc93392 100644 --- a/src/code_800D090.c +++ b/src/code_800D090.c @@ -31,7 +31,7 @@ void sub_800D098(void) u32 dispcnt_save; u32 ie_store; - while(REG_VCOUNT <= 159) + while(REG_VCOUNT < 160) ; // Save DISPCNT and set to 0 @@ -40,7 +40,7 @@ void sub_800D098(void) *(u16 *)BG_PLTT = 0xefff; - while(REG_KEYINPUT != 0x3ff) // 0011 1111 1111 (all buttons) + while(REG_KEYINPUT != KEYS_MASK) ; @@ -71,9 +71,9 @@ void sub_800D098(void) REG_IME = 1; - while(REG_VCOUNT <= 159){} + while(REG_VCOUNT < 160){} REG_DISPCNT = dispcnt_save; // restore DISPCNT - while(REG_KEYINPUT != 0x3ff){} // All buttons + while(REG_KEYINPUT != KEYS_MASK){} // All buttons } void sub_800D158(u8 *buffer, const char *text, ...) -- cgit v1.2.3