C(0x0a) ChangeClearRCnt

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
r4 = timer
r5 = flag
000015d8: 3c0f0001 lui r15,0x0001
000015dc: 25ef8600 addiu r15,r15,-0x7a00   # timer handler 0
000015e0: 00047080 sll r14,r4,0x02         # timer * 4
000015e4: 01cf3021 addu r6,r14,r15         # timer handler p1
000015e8: 8cc30000 lw r3,0x0000(r6)
000015ec: acc50000 sw r5,0x0000(r6)        # store new flag
000015f0: 03e00008 jr r31
000015f4: 00601021 addu r2,r3,r0           # return old flag