BUNIT.OUT Calculate Base Job

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
001c722c: 00042400 sll r4,r4,0x10
001c7230: 00042383 sra r4,r4,0x0e            int * 4
001c7234: 3c01801f lui r1,0x801f
001c7238: 00240821 addu r1,r1,r4
001c723c: 8c24caf8 lw r4,-0x3508(r1)         jobstts.out bunit.out unit data pointer
001c7240: 00000000 nop
001c7244: 90830074 lbu r3,0x0074(r4)         load unit base job
001c7248: 34020082 ori r2,r0,0x0082
001c724c: 14620004 bne r3,r2,0x001c7260      branch if not monster
001c7250: 00000000 nop
001c7254: 84830024 lh r3,0x0024(r4)          load monster's. well. job.
001c7258: 08071c9c j 0x001c7270
001c725c: 00000000 nop
001c7260: 2c620080 sltiu r2,r3,0x0080
001c7264: 14400002 bne r2,r0,0x001c7270      branch if generic unit
001c7268: 00000000 nop
001c726c: 3403004a ori r3,r0,0x004a          else return squire
001c7270: 03e00008 jr r31
001c7274: 00601021 addu r2,r3,r0             return base job