00017098 - 000170d4

From Final Fantasy Hacktics Wiki
Revision as of 07:03, 31 August 2025 by Talcall (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
00017098: 24a600b8 addiu r6,r5,0x00b8               channel data pointer
0001709c: 90a30016 lbu r3,0x0016(r5)                get song's number of channels
000170a0: 24a500ba addiu r5,r5,0x00ba               channel data field 2?
000170a4: 94c20000 lhu r2,0x0000(r6)                does channel have sound?
000170a8: 00000000 nop
000170ac: 10400005 beq r2,r0,0x000170c4             end of loop if no
000170b0: 24c60160 addiu r6,r6,0x0160               go to next channel
000170b4: 94a20000 lhu r2,0x0000(r5)                
000170b8: 00000000 nop
000170bc: 00821025 or r2,r4,r2                      add p1 bitflags.
000170c0: a4a20000 sh r2,0x0000(r5)
000170c4: 2463ffff addiu r3,r3,0xffff
000170c8: 1460fff6 bne r3,r0,0x000170a4             loop r3 times
000170cc: 24a50160 addiu r5,r5,0x0160
000170d0: 03e00008 jr r31
000170d4: 00000000 nop