Change Clear RCnt

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
# ROUTINE: CHANGE CLEAR RCNT
#    Parameters: 
#       r4 = (System call input parameter - int n)
#       r5 = (System call input parameter - int val)
#    Returns: r2 = (System call return value - int)   

#   The kernel function being called here has the signature: int ChangeClearRCnt(int n, int val)  
00022104: 240a00c0 addiu r10,r0,0x00c0
00022108: 01400008 jr r10                   # System call: Jump to 0xC0, with r10 (t2) = 0xc0, and r9 (t1) = 0x0a (10). This calls the PSX kernel function ChangeClearRCnt.
0002210c: 2409000a addiu r9,r0,0x000a