Difference between revisions of "GetRCnt"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (Talcall moved page 000221b4 - 000221e8 to GetRCnt)
m
 
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
 
   
 
   
  000221b4: 3083ffff andi r3,r4,0xffff
+
  000221b4: 3083ffff andi r3,r4,0xffff            
  000221b8: 28620003 slti r2,r3,0x0003
+
  000221b8: 28620003 slti r2,r3,0x0003            
  000221bc: 10400008 beq r2,r0,0x000221e0
+
  000221bc: 10400008 beq r2,r0,0x000221e0         return 0 if asking for illegal Root counter
 
  000221c0: 00031900 sll r3,r3,0x04
 
  000221c0: 00031900 sll r3,r3,0x04
 
  000221c4: 3c028003 lui r2,0x8003
 
  000221c4: 3c028003 lui r2,0x8003
  000221c8: 8c421c9c lw r2,0x1c9c(r2)
+
  000221c8: 8c421c9c lw r2,0x1c9c(r2)            
 
  000221cc: 00000000 nop
 
  000221cc: 00000000 nop
 
  000221d0: 00621821 addu r3,r3,r2
 
  000221d0: 00621821 addu r3,r3,r2
 
  000221d4: 94620000 lhu r2,0x0000(r3)
 
  000221d4: 94620000 lhu r2,0x0000(r3)
  000221d8: 08008879 j 0x000221e4
+
  000221d8: 08008879 j 0x000221e4                 return RCnt timer value
 
  000221dc: 00000000 nop
 
  000221dc: 00000000 nop
 
  000221e0: 00001021 addu r2,r0,r0
 
  000221e0: 00001021 addu r2,r0,r0

Latest revision as of 11:16, 15 June 2024

000221b4: 3083ffff andi r3,r4,0xffff             
000221b8: 28620003 slti r2,r3,0x0003             
000221bc: 10400008 beq r2,r0,0x000221e0          return 0 if asking for illegal Root counter
000221c0: 00031900 sll r3,r3,0x04
000221c4: 3c028003 lui r2,0x8003
000221c8: 8c421c9c lw r2,0x1c9c(r2)              
000221cc: 00000000 nop
000221d0: 00621821 addu r3,r3,r2
000221d4: 94620000 lhu r2,0x0000(r3)
000221d8: 08008879 j 0x000221e4                  return RCnt timer value
000221dc: 00000000 nop
000221e0: 00001021 addu r2,r0,r0
000221e4: 03e00008 jr r31
000221e8: 00000000 nop