B(0x03) get timer
Jump to navigation
Jump to search
000016ac: 3084ffff andi r4,r4,0xffff 000016b0: 28810003 slti r1,r4,0x0003 000016b4: 14200003 bne r1,r0,0x000016c4 # branch if legal timer 000016b8: 00000000 nop 000016bc: 03e00008 jr r31 # if VBLANK, RETURN 0 000016c0: 00001021 addu r2,r0,r0
if not VBLANK
000016c4: 3c0e0000 lui r14,0x0000 000016c8: 8dce6d44 lw r14,0x6d44(r14) # hardware timer 0 addr 000016cc: 00047900 sll r15,r4,0x04 000016d0: 01cfc021 addu r24,r14,r15 # harder timer p1 addr 000016d4: 97020000 lhu r2,0x0000(r24) # RETURN timer[p1].val 000016d8: 00000000 nop 000016dc: 03e00008 jr r31 000016e0: 00000000 nop