C(0x02) SysEnqIntRP

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
r4 = Priority chain
r5 = exception handler struct
00001420: 3c0ea000 lui r14,0xa000
00001424: 8dce0100 lw r14,0x0100(r14)       # ptr. to prioty chain pointer list
00001428: 000478c0 sll r15,r4,0x03          # priority chain * 8
0000142c: 01cf1821 addu r3,r14,r15          # first element of priority chain
00001430: 8c660000 lw r6,0x0000(r3)         # pointer to next element in chain
00001434: ac650000 sw r5,0x0000(r3)         # store next element in chain as r5
00001438: 00001021 addu r2,r0,r0            # return 0
0000143c: 03e00008 jr r31
00001440: aca60000 sw r6,0x0000(r5)         # store next element in chain into r5's struct