Handle Tutorial Command: Wait (0x14)
Jump to navigation
Jump to search
8012e720: 27bdffe8 addiu r29,r29,-0x0018 8012e724: afbf0014 sw r31,0x0014(r29) 8012e728: afbe0010 sw r30,0x0010(r29) 8012e72c: 03a0f021 addu r30,r29,r0 8012e730: 0c0498ea jal 0x801263a8 # result_0x1263a8 = 0x1263a8 (); // Returns *0x8018df7c unless it's zero (then it returns 1). 8012e734: 00000000 nop 8012e738: 3c038019 lui r3,0x8019 8012e73c: 94633cb0 lhu r3,0x3cb0(r3) # *0x80193cb0 8012e740: 00000000 nop 8012e744: 00621823 subu r3,r3,r2 # *0x80193cb0 - result_0x1263a8 8012e748: 3c018019 lui r1,0x8019 8012e74c: a4233cb0 sh r3,0x3cb0(r1) # *0x80193cb0 = *0x80193cb0 - result_0x1263a8 8012e750: 3c028019 lui r2,0x8019 8012e754: 84423cb0 lh r2,0x3cb0(r2) # *0x80193cb0 8012e758: 00000000 nop 8012e75c: 1c40000a bgtz r2,0x8012e788 # if (*0x8019ecb0 <= 0) { 8012e760: 00000000 nop 8012e764: 3c018019 lui r1,0x8019 8012e768: a4203cb0 sh r0,0x3cb0(r1) # *0x80193cb0 = 0 8012e76c: 3c03801d lui r3,0x801d 8012e770: 8c63c570 lw r3,-0x3a90(r3) # commandPtr 8012e774: 00000000 nop 8012e778: 24620001 addiu r2,r3,0x0001 # commandPtr + 1 8012e77c: 00401821 addu r3,r2,r0 8012e780: 3c01801d lui r1,0x801d 8012e784: ac23c570 sw r3,-0x3a90(r1) # commandPtr = commandPtr + 1 8012e788: 03c0e821 addu r29,r30,r0 8012e78c: 8fbf0014 lw r31,0x0014(r29) # } 8012e790: 8fbe0010 lw r30,0x0010(r29) 8012e794: 27bd0018 addiu r29,r29,0x0018 8012e798: 03e00008 jr r31 8012e79c: 00000000 nop