BUNIT.OUT Create Ability List
Jump to navigation
Jump to search
See: JOBSTTS.OUT Create Ability List find at some point: the world routine for the same thing
001c7444: 27bdffc0 addiu r29,r29,0xffc0 001c7448: afb30024 sw r19,0x0024(r29) 001c744c: 00809821 addu r19,r4,r0 001c7450: afb00018 sw r16,0x0018(r29) 001c7454: 00058400 sll r16,r5,0x10 p2 = job ID 001c7458: 00108403 sra r16,r16,0x10 001c745c: afb5002c sw r21,0x002c(r29) 001c7460: 8fb50050 lw r21,0x0050(r29) 001c7464: 02002021 addu r4,r16,r0 job ID 001c7468: afb20020 sw r18,0x0020(r29) 001c746c: 00c09021 addu r18,r6,r0 001c7470: afb70034 sw r23,0x0034(r29) 001c7474: 00e0b821 addu r23,r7,r0 001c7478: afbf0038 sw r31,0x0038(r29) 001c747c: afb60030 sw r22,0x0030(r29) 001c7480: afb40028 sw r20,0x0028(r29) 001c7484: 0c071d08 jal 0x001c7420 BUNIT.OUT Get Job Skillset 001c7488: afb1001c sw r17,0x001c(r29) 001c748c: 00408821 addu r17,r2,r0 skillset ID 001c7490: 0c071c6a jal 0x001c71a8 BUNIT.OUT Get generic job index 001c7494: 02002021 addu r4,r16,r0 job ID 001c7498: 02202021 addu r4,r17,r0 skillset ID 001c749c: 0c071c75 jal 0x001c71d4 JOBSTTS.OUT Get first job that matches Skillset ID 001c74a0: 0040b021 addu r22,r2,r0 001c74a4: 2403ffff addiu r3,r0,0xffff 001c74a8: 14430008 bne r2,r3,0x001c74cc 001c74ac: 0260a021 addu r20,r19,r0 001c74b0: 00131400 sll r2,r19,0x10 001c74b4: 00021383 sra r2,r2,0x0e 001c74b8: 3c01801f lui r1,0x801f 001c74bc: 00220821 addu r1,r1,r2 001c74c0: 8c22caf8 lw r2,-0x3508(r1) 001c74c4: 00000000 nop 001c74c8: 8451005e lh r17,0x005e(r2) 001c74cc: 00000000 nop 001c74d0: 02202021 addu r4,r17,r0 001c74d4: 0c01698e jal 0x0005a638 001c74d8: 3405000f ori r5,r0,0x000f 001c74dc: 16400004 bne r18,r0,0x001c74f0 001c74e0: 00408821 addu r17,r2,r0 001c74e4: 34030001 ori r3,r0,0x0001 001c74e8: 08071d4b j 0x001c752c 001c74ec: 340201a5 ori r2,r0,0x01a5 001c74f0: 34020001 ori r2,r0,0x0001 001c74f4: 16420004 bne r18,r2,0x001c7508 001c74f8: 34020002 ori r2,r0,0x0002 001c74fc: 340301a6 ori r3,r0,0x01a6 001c7500: 08071d4b j 0x001c752c 001c7504: 340201c5 ori r2,r0,0x01c5 001c7508: 16420004 bne r18,r2,0x001c751c 001c750c: 34020003 ori r2,r0,0x0003 001c7510: 340301c6 ori r3,r0,0x01c6 001c7514: 08071d4b j 0x001c752c 001c7518: 340201e5 ori r2,r0,0x01e5 001c751c: 16420002 bne r18,r2,0x001c7528 001c7520: 34030001 ori r3,r0,0x0001 001c7524: 340301e6 ori r3,r0,0x01e6 001c7528: 340201fd ori r2,r0,0x01fd 001c752c: 00008021 addu r16,r0,r0 001c7530: 00603021 addu r6,r3,r0 001c7534: 00402821 addu r5,r2,r0 001c7538: 02202021 addu r4,r17,r0 001c753c: 84830000 lh r3,0x0000(r4) 001c7540: 00000000 nop 001c7544: 0066102a slt r2,r3,r6 001c7548: 14400003 bne r2,r0,0x001c7558 001c754c: 00a3102a slt r2,r5,r3 001c7550: 10400002 beq r2,r0,0x001c755c 001c7554: 00000000 nop 001c7558: a4800000 sh r0,0x0000(r4) 001c755c: 26100001 addiu r16,r16,0x0001 001c7560: 2a020018 slti r2,r16,0x0018 001c7564: 1440fff5 bne r2,r0,0x001c753c 001c7568: 24840002 addiu r4,r4,0x0002 001c756c: 00009021 addu r18,r0,r0 001c7570: 00008021 addu r16,r0,r0 001c7574: 00141400 sll r2,r20,0x10 001c7578: 3c03801f lui r3,0x801f 001c757c: 2463caf8 addiu r3,r3,0xcaf8 001c7580: 00021383 sra r2,r2,0x0e 001c7584: 00431021 addu r2,r2,r3 001c7588: 0040a021 addu r20,r2,r0 001c758c: 02209821 addu r19,r17,r0 001c7590: 02e08821 addu r17,r23,r0 001c7594: 8e830000 lw r3,0x0000(r20) 001c7598: 00161400 sll r2,r22,0x10 001c759c: 00021403 sra r2,r2,0x10 001c75a0: 00022040 sll r4,r2,0x01 001c75a4: 00822021 addu r4,r4,r2 001c75a8: 24840078 addiu r4,r4,0x0078 001c75ac: 0c072ff1 jal 0x001cbfc4 001c75b0: 00832021 addu r4,r4,r3 001c75b4: 8e820000 lw r2,0x0000(r20) 001c75b8: 00000000 nop 001c75bc: 84440024 lh r4,0x0024(r2) 001c75c0: 0c071a0d jal 0x001c6834 001c75c4: 00000000 nop 001c75c8: 1440000e bne r2,r0,0x001c7604 001c75cc: 34040001 ori r4,r0,0x0001 001c75d0: 8e820000 lw r2,0x0000(r20) 001c75d4: 00000000 nop 001c75d8: 8442003e lh r2,0x003e(r2) 001c75dc: 00000000 nop 001c75e0: 10400005 beq r2,r0,0x001c75f8 001c75e4: 2a020003 slti r2,r16,0x0003 001c75e8: 10400026 beq r2,r0,0x001c7684 001c75ec: 34020003 ori r2,r0,0x0003 001c75f0: 08071d81 j 0x001c7604 001c75f4: 00000000 nop 001c75f8: 0c072ff8 jal 0x001cbfe0 001c75fc: 34040001 ori r4,r0,0x0001 001c7600: 00402021 addu r4,r2,r0 001c7604: 86620000 lh r2,0x0000(r19) 001c7608: 00000000 nop 001c760c: 10400018 beq r2,r0,0x001c7670 001c7610: 00401821 addu r3,r2,r0 001c7614: 16a0000f bne r21,r0,0x001c7654 001c7618: 00000000 nop 001c761c: 1480000b bne r4,r0,0x001c764c 001c7620: 000210c0 sll r2,r2,0x03 001c7624: 3c018006 lui r1,0x8006 001c7628: 00220821 addu r1,r1,r2 001c762c: 9022ebf3 lbu r2,-0x140d(r1) 001c7630: 00000000 nop 001c7634: 000211c2 srl r2,r2,0x07 001c7638: 14400003 bne r2,r0,0x001c7648 001c763c: 00000000 nop 001c7640: 08071d93 j 0x001c764c 001c7644: 34634000 ori r3,r3,0x4000 001c7648: 34636000 ori r3,r3,0x6000 001c764c: 08071d9a j 0x001c7668 001c7650: a6230000 sh r3,0x0000(r17) 001c7654: 34020003 ori r2,r0,0x0003 001c7658: 16a20005 bne r21,r2,0x001c7670 001c765c: 00000000 nop 001c7660: 14800003 bne r4,r0,0x001c7670 001c7664: 00000000 nop 001c7668: 26310002 addiu r17,r17,0x0002 001c766c: 26520001 addiu r18,r18,0x0001 001c7670: 26100001 addiu r16,r16,0x0001 001c7674: 2a020018 slti r2,r16,0x0018 001c7678: 1440ffce bne r2,r0,0x001c75b4 001c767c: 26730002 addiu r19,r19,0x0002 001c7680: 34020003 ori r2,r0,0x0003 001c7684: 12a20004 beq r21,r2,0x001c7698 001c7688: 00121040 sll r2,r18,0x01 001c768c: 00571021 addu r2,r2,r23 001c7690: 2403ffff addiu r3,r0,0xffff 001c7694: a4430000 sh r3,0x0000(r2) 001c7698: 02401021 addu r2,r18,r0 001c769c: 8fbf0038 lw r31,0x0038(r29) 001c76a0: 8fb70034 lw r23,0x0034(r29) 001c76a4: 8fb60030 lw r22,0x0030(r29) 001c76a8: 8fb5002c lw r21,0x002c(r29) 001c76ac: 8fb40028 lw r20,0x0028(r29) 001c76b0: 8fb30024 lw r19,0x0024(r29) 001c76b4: 8fb20020 lw r18,0x0020(r29) 001c76b8: 8fb1001c lw r17,0x001c(r29) 001c76bc: 8fb00018 lw r16,0x0018(r29) 001c76c0: 27bd0040 addiu r29,r29,0x0040 001c76c4: 03e00008 jr r31 001c76c8: 00000000 nop