Change Clear RCnt

From Final Fantasy Hacktics Wiki
Revision as of 01:59, 4 September 2016 by Glain (talk | contribs) (Created page with " # ROUTINE: CHANGE CLEAR RCNT # Parameters: # r4 = (System call input parameter - int n) # r5 = (System call input parameter - int val) # Returns: r2 = ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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