Menu Scroll Related (0xebdcc)
Jump to navigation
Jump to search
800ebdcc: 27bdffe0 addiu r29,r29,-0x0020 800ebdd0: afb10014 sw r17,0x0014(r29) 800ebdd4: 00808821 addu r17,r4,r0 # p1 800ebdd8: afb00010 sw r16,0x0010(r29) 800ebddc: afbf0018 sw r31,0x0018(r29) 800ebde0: 0c03ae8c jal 0x800eba30 # result_0xeba30 = ? 0xeba30 (); 800ebde4: 00a08021 addu r16,r5,r0 # p1 (stack pointer) 800ebde8: 1040001e beq r2,r0,0x800ebe64 # if (result_0xeba30 == 0) return; 800ebdec: 00000000 nop 800ebdf0: 3c028019 lui r2,0x8019 800ebdf4: 8c425c34 lw r2,0x5c34(r2) # newButtonInput (*0x80195c34) 800ebdf8: 00000000 nop 800ebdfc: 30421000 andi r2,r2,0x1000 800ebe00: 10400008 beq r2,r0,0x800ebe24 # if (newButtonInput & 0x1000) { // Up button pressed 800ebe04: 00000000 nop 800ebe08: 8e020000 lw r2,0x0000(r16) # *p2 (cursor placement) 800ebe0c: 00000000 nop 800ebe10: 14400002 bne r2,r0,0x800ebe1c 800ebe14: 2442ffff addiu r2,r2,-0x0001 # value = *p2 - 1 (cursor placement invalid) # if (*p2 == 0) { 800ebe18: 8622001e lh r2,0x001e(r17) # value = p1.0x1e # } 800ebe1c: 0c0387b6 jal 0x800e1ed8 # Set Scroll Sound Effect (WORLD.BIN) (); 800ebe20: ae020000 sw r2,0x0000(r16) # *p2 = value (store cursor placement # } 800ebe24: 3c028019 lui r2,0x8019 800ebe28: 8c425c34 lw r2,0x5c34(r2) # newButtonInput (*0x80195c34) 800ebe2c: 00000000 nop 800ebe30: 30424000 andi r2,r2,0x4000 800ebe34: 1040000b beq r2,r0,0x800ebe64 # if (newButtonInput & 0x4000) { // Down button pressed 800ebe38: 00000000 nop 800ebe3c: 8622001e lh r2,0x001e(r17) # p1.0x1e 800ebe40: 8e030000 lw r3,0x0000(r16) # *p2 (cursor) 800ebe44: 00000000 nop 800ebe48: 14620003 bne r3,r2,0x800ebe58 800ebe4c: 24620001 addiu r2,r3,0x0001 # *p2 + 1 # if (p1.0x1e == *p2) { 800ebe50: 0803af97 j 0x800ebe5c 800ebe54: ae000000 sw r0,0x0000(r16) # *p2 = 0 # } else { 800ebe58: ae020000 sw r2,0x0000(r16) # *p2 = *p2 + 1 (cursor) # } 800ebe5c: 0c0387b6 jal 0x800e1ed8 # Set Scroll Sound Effect (WORLD.BIN) (); 800ebe60: 00000000 nop # } 800ebe64: 8fbf0018 lw r31,0x0018(r29) 800ebe68: 8fb10014 lw r17,0x0014(r29) 800ebe6c: 8fb00010 lw r16,0x0010(r29) 800ebe70: 27bd0020 addiu r29,r29,0x0020 800ebe74: 03e00008 jr r31 800ebe78: 00000000 nop