Handle Tutorial Command: Wait (Time)
Jump to navigation
Jump to search
8012ea44: 27bdffe8 addiu r29,r29,-0x0018 8012ea48: afbf0014 sw r31,0x0014(r29) 8012ea4c: afbe0010 sw r30,0x0010(r29) 8012ea50: 03a0f021 addu r30,r29,r0 8012ea54: 3c02801d lui r2,0x801d 8012ea58: 8c42c574 lw r2,-0x3a8c(r2) # *0x801cc574 8012ea5c: 00000000 nop 8012ea60: 10400018 beq r2,r0,0x8012eac4 # if (*0x801cc574 != 0) { 8012ea64: 00000000 nop 8012ea68: 0c0498ea jal 0x801263a8 # result_0x1263a8 = 0x1263a8 (); // Returns *0x8018df7c unless it's zero (then it returns 1). 8012ea6c: 00000000 nop 8012ea70: 3c03801d lui r3,0x801d 8012ea74: 9463a764 lhu r3,-0x589c(r3) # *0x801ca764 8012ea78: 00000000 nop 8012ea7c: 00621823 subu r3,r3,r2 # *0x801ca764 - result_0x1263a8 8012ea80: 3c01801d lui r1,0x801d 8012ea84: a423a764 sh r3,-0x589c(r1) # *0x801ca764 = *0x801ca764 - result_0x1263a8 8012ea88: 3c02801d lui r2,0x801d 8012ea8c: 8442a764 lh r2,-0x589c(r2) # *0x801ca764 8012ea90: 00000000 nop 8012ea94: 04410009 bgez r2,0x8012eabc # if (*0x801ca764 < 0) { 8012ea98: 00000000 nop 8012ea9c: 3c01801d lui r1,0x801d 8012eaa0: ac20c574 sw r0,-0x3a8c(r1) # *0x801cc574 = 0 8012eaa4: 3c02801d lui r2,0x801d 8012eaa8: 8c42c570 lw r2,-0x3a90(r2) # commandPtr 8012eaac: 00000000 nop 8012eab0: 24430002 addiu r3,r2,0x0002 # commandPtr + 2 8012eab4: 3c01801d lui r1,0x801d 8012eab8: ac23c570 sw r3,-0x3a90(r1) # commandPtr = commandPtr + 2 8012eabc: 0804babc j 0x8012eaf0 # } 8012eac0: 00000000 nop # } else { 8012eac4: 34020001 ori r2,r0,0x0001 8012eac8: 3c01801d lui r1,0x801d 8012eacc: ac22c574 sw r2,-0x3a8c(r1) # *0x801cc574 = 1 8012ead0: 3c03801d lui r3,0x801d 8012ead4: 8c63c570 lw r3,-0x3a90(r3) # commandPtr 8012ead8: 00000000 nop 8012eadc: 24620001 addiu r2,r3,0x0001 # commandPtr + 1 8012eae0: 00401821 addu r3,r2,r0 8012eae4: 90620000 lbu r2,0x0000(r3) # *(commandPtr + 1) 8012eae8: 3c01801d lui r1,0x801d 8012eaec: a422a764 sh r2,-0x589c(r1) # *0x801ca764 = *(commandPtr + 1) # } 8012eaf0: 03c0e821 addu r29,r30,r0 8012eaf4: 8fbf0014 lw r31,0x0014(r29) 8012eaf8: 8fbe0010 lw r30,0x0010(r29) 8012eafc: 27bd0018 addiu r29,r29,0x0018 8012eb00: 03e00008 jr r31 8012eb04: 00000000 nop