Copy 0x16e in unit data to misc data, display processing
Jump to navigation
Jump to search
00078148: 27bdffd8 addiu r29,r29,0xffd8 0007814c: afbf0020 sw r31,0x0020(r29) 00078150: afb1001c sw r17,0x001c(r29) 00078154: 0c01d2eb jal 0x00074bac 00078158: afb00018 sw r16,0x0018(r29) 0007815c: 0c011298 jal 0x00044a60 00078160: 00000000 nop 00078164: 3c058004 lui r5,0x8004 00078168: 8ca55944 lw r5,0x5944(r5) 0007816c: 0c04fd48 jal 0x0013f520 00078170: 00402021 addu r4,r2,r0 00078174: 0c01e886 jal 0x0007a218 00078178: 00000000 nop 0007817c: 00408021 addu r16,r2,r0 00078180: 3c02800a lui r2,0x800a 00078184: 8c421c48 lw r2,0x1c48(r2) 00078188: 3c03800a lui r3,0x800a 0007818c: 8c631c4c lw r3,0x1c4c(r3) 00078190: 3c04800a lui r4,0x800a 00078194: 8c841c50 lw r4,0x1c50(r4) 00078198: 00431025 or r2,r2,r3 0007819c: 00441025 or r2,r2,r4 000781a0: 1440005b bne r2,r0,0x00078310 000781a4: 00000000 nop 000781a8: 3c028009 lui r2,0x8009 000781ac: 8c4260c8 lw r2,0x60c8(r2) 000781b0: 00000000 nop 000781b4: 14400056 bne r2,r0,0x00078310 000781b8: 34020200 ori r2,r0,0x0200 000781bc: 3c03800a lui r3,0x800a 000781c0: 8c638d84 lw r3,-0x727c(r3) 000781c4: 00000000 nop 000781c8: 1462001d bne r3,r2,0x00078240 000781cc: 34040008 ori r4,r0,0x0008 000781d0: 34050002 ori r5,r0,0x0002 000781d4: 8e020134 lw r2,0x0134(r16) 000781d8: 00003821 addu r7,r0,r0 000781dc: 9046018a lbu r6,0x018a(r2) 000781e0: 34110001 ori r17,r0,0x0001 000781e4: 0c05066e jal 0x001419b8 000781e8: afb10010 sw r17,0x0010(r29) 000781ec: 34030002 ori r3,r0,0x0002 000781f0: 1443003d bne r2,r3,0x000782e8 000781f4: 00000000 nop 000781f8: 0c050ae9 jal 0x00142ba4 000781fc: 00000000 nop 00078200: 10400039 beq r2,r0,0x000782e8 00078204: 34040008 ori r4,r0,0x0008 function = 8 00078208: 3c028009 lui r2,0x8009 0007820c: 8c4260e4 lw r2,0x60e4(r2) load display 00078210: 8e030134 lw r3,0x0134(r16) 00078214: 00002821 addu r5,r0,r0 00078218: 3c018009 lui r1,0x8009 0007821c: ac2260e8 sw r2,0x60e8(r1) store display 00078220: 9066018a lbu r6,0x018a(r3) 00078224: 00003821 addu r7,r0,r0 00078228: 0c05066e jal 0x001419b8 call function 0007822c: afb10010 sw r17,0x0010(r29) 00078230: 0c01c266 jal 0x00070998 00078234: 00000000 nop 00078238: 0801e0c4 j 0x00078310 0007823c: 00000000 nop 00078240: 8e020134 lw r2,0x0134(r16) 00078244: 00000000 nop 00078248: 9044018a lbu r4,0x018a(r2) 0007824c: 0c060f5c jal 0x00183d70 change of turn check 00078250: 00000000 nop 00078254: 34030001 ori r3,r0,0x0001 00078258: 1443002b bne r2,r3,0x00078308 brach if changing turn? 0007825c: 00000000 nop 00078260: 8e020134 lw r2,0x0134(r16) 00078264: 00000000 nop 00078268: 88430171 lwl r3,0x0171(r2) load target data 0007826c: 9843016e lwr r3,0x016e(r2) 00078270: 88440175 lwl r4,0x0175(r2) load targeting data 00078274: 98440172 lwr r4,0x0172(r2) 00078278: 88450179 lwl r5,0x0179(r2) load targeting data 0007827c: 98450176 lwr r5,0x0176(r2) 00078280: 8846017d lwl r6,0x017d(r2) load targeting data 00078284: 9846017a lwr r6,0x017a(r2) 00078288: aa03015f swl r3,0x015f(r16) Store in misc data 0007828c: ba03015c swr r3,0x015c(r16) 00078290: aa040163 swl r4,0x0163(r16) 00078294: ba040160 swr r4,0x0160(r16) 00078298: aa050167 swl r5,0x0167(r16) 0007829c: ba050164 swr r5,0x0164(r16) 000782a0: aa06016b swl r6,0x016b(r16) 000782a4: ba060168 swr r6,0x0168(r16) 000782a8: 88430181 lwl r3,0x0181(r2) 000782ac: 9843017e lwr r3,0x017e(r2) 000782b0: 00000000 nop 000782b4: aa03016f swl r3,0x016f(r16) 000782b8: ba03016c swr r3,0x016c(r16) 000782bc: 8e020134 lw r2,0x0134(r16) 000782c0: 8e03017c lw r3,0x017c(r16) 000782c4: 94420170 lhu r2,0x0170(r2) load used ability 000782c8: 00000000 nop 000782cc: a6020138 sh r2,0x0138(r16) store used ability 000782d0: 34020003 ori r2,r0,0x0003 000782d4: 14620008 bne r3,r2,0x000782f8 branch if ?? 000782d8: 00000000 nop 000782dc: 92040004 lbu r4,0x0004(r16) load misc unit ID 000782e0: 0c023463 jal 0x0008d18c 000782e4: ae00017c sw r0,0x017c(r16) clear ?? 000782e8: 0c01c402 jal 0x00071008 000782ec: 00000000 nop 000782f0: 0801e0c4 j 0x00078310 000782f4: 00000000 nop 000782f8: 0c01c951 jal 0x00072544 000782fc: 00000000 nop 00078300: 0801e0c4 j 0x00078310 00078304: 00000000 nop 00078308: 0c01c301 jal 0x00070c04 0007830c: 00000000 nop 00078310: 8fbf0020 lw r31,0x0020(r29) 00078314: 8fb1001c lw r17,0x001c(r29) 00078318: 8fb00018 lw r16,0x0018(r29) 0007831c: 27bd0028 addiu r29,r29,0x0028 00078320: 03e00008 jr r31 00078324: 00000000 nop