JOBSTTS.OUT Get first job that matches Skillset ID
Revision as of 22:53, 25 May 2024 by Talcall (talk | contribs) (Talcall moved page JOBSTTS.OUT 001e0314 - 001e0368 to JOBSTTS.OUT Get first job that matches Skillset ID)
001e0314: 27bdffe0 addiu r29,r29,0xffe0 001e0318: afb10014 sw r17,0x0014(r29) 001e031c: 00808821 addu r17,r4,r0 skillset ID 001e0320: afb00010 sw r16,0x0010(r29) 001e0324: 00008021 addu r16,r0,r0 001e0328: afbf0018 sw r31,0x0018(r29) 001e032c: 0c016a29 jal 0x0005a8a4 Get Job Data Pointer 001e0330: 02002021 addu r4,r16,r0 001e0334: 90420000 lbu r2,0x0000(r2) 001e0338: 00000000 nop 001e033c: 10510005 beq r2,r17,0x001e0354 continue for first job ID matches input skillset 001e0340: 02001021 addu r2,r16,r0 return first job ID that matches input skillset 001e0344: 26100001 addiu r16,r16,0x0001 001e0348: 2a0200a0 slti r2,r16,0x00a0 001e034c: 1440fff7 bne r2,r0,0x001e032c loop for all jobs 001e0350: 2402ffff addiu r2,r0,0xffff otherwise return -1 001e0354: 8fbf0018 lw r31,0x0018(r29) 001e0358: 8fb10014 lw r17,0x0014(r29) 001e035c: 8fb00010 lw r16,0x0010(r29) 001e0360: 27bd0020 addiu r29,r29,0x0020 001e0364: 03e00008 jr r31 001e0368: 00000000 nop