P06 AddPrim

From Final Fantasy Hacktics Wiki
(Redirected from 00023bb4 - 00023bec)
Jump to navigation Jump to search

00023bb4: 3c0600ff lui r6,0x00ff
00023bb8: 34c6ffff ori r6,r6,0xffff          address bitmask
00023bbc: 3c07ff00 lui r7,0xff00             primative func. bitmask
00023bc0: 8ca30000 lw r3,0x0000(r5)          load address of p2 next primative
00023bc4: 8c820000 lw r2,0x0000(r4)          load address of p1 next primative
00023bc8: 00671824 and r3,r3,r7              p2 primative func.
00023bcc: 00461024 and r2,r2,r6              p1 next primative address
00023bd0: 00621825 or r3,r3,r2               p1 next prim. address OR p2 prim. func
00023bd4: aca30000 sw r3,0x0000(r5)          store p1 next prim. address and p2's prim. func in p2's primative
00023bd8: 8c820000 lw r2,0x0000(r4)          address of p1 next primative
00023bdc: 00a62824 and r5,r5,r6
00023be0: 00471024 and r2,r2,r7
00023be4: 00451025 or r2,r2,r5               bit combine p1. prim. address OR p1's prim. func
00023be8: 03e00008 jr r31
00023bec: ac820000 sw r2,0x0000(r4)          store having implemented p2 primative into the primative loop (occurs after p1 primative)