00019b80 - 00019d84

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

00019b80: 00804821 addu r9,r4,r0            on/off (why is this a long and. not a boolean? whatever.)
00019b84: 3c028003 lui r2,0x8003
00019b88: 8c42ad3c lw r2,-0x52c4(r2)
00019b8c: 00000000 nop
00019b90: 30420001 andi r2,r2,0x0001
00019b94: 10400005 beq r2,r0,0x00019bac
00019b98: 00a04021 addu r8,r5,r0            voice bit
00019b9c: 3c048003 lui r4,0x8003
00019ba0: 24846ef8 addiu r4,r4,0x6ef8
00019ba4: 080066ee j 0x00019bb8
00019ba8: 00071040 sll r2,r7,0x01
00019bac: 3c048003 lui r4,0x8003
00019bb0: 8c84ad44 lw r4,-0x52bc(r4)         voice register 0 (volume left)
00019bb4: 00071040 sll r2,r7,0x01
00019bb8: 00441021 addu r2,r2,r4             
00019bbc: 94430000 lhu r3,0x0000(r2)         
00019bc0: 00061040 sll r2,r6,0x01
00019bc4: 00441021 addu r2,r2,r4
00019bc8: 94420000 lhu r2,0x0000(r2)
00019bcc: 306300ff andi r3,r3,0x00ff         lower halfword of previous flags
00019bd0: 00031c00 sll r3,r3,0x10
00019bd4: 11200033 beq r9,r0,0x00019ca4      branch if turning off
00019bd8: 00435025 or r10,r2,r3              word of previous flags
00019bdc: 34020001 ori r2,r0,0x0001
00019be0: 15220066 bne r9,r2,0x00019d7c      end if on/off is invalid
00019be4: 3c0200ff lui r2,0x00ff

on

00019be8: 3c028003 lui r2,0x8003
00019bec: 8c42ad3c lw r2,-0x52c4(r2)
00019bf0: 00000000 nop
00019bf4: 30420001 andi r2,r2,0x0001
00019bf8: 10400018 beq r2,r0,0x00019c5c
00019bfc: 00061840 sll r3,r6,0x01
00019c00: 3c058003 lui r5,0x8003
00019c04: 24a56ef8 addiu r5,r5,0x6ef8
00019c08: 00651821 addu r3,r3,r5
00019c0c: 00072040 sll r4,r7,0x01
00019c10: 94620000 lhu r2,0x0000(r3)
00019c14: 00852021 addu r4,r4,r5
00019c18: 00481025 or r2,r2,r8
00019c1c: a4620000 sh r2,0x0000(r3)
00019c20: 00081402 srl r2,r8,0x10
00019c24: 94830000 lhu r3,0x0000(r4)
00019c28: 304200ff andi r2,r2,0x00ff
00019c2c: 00621825 or r3,r3,r2
00019c30: 24c2ff3a addiu r2,r6,0xff3a
00019c34: 00021043 sra r2,r2,0x01
00019c38: a4830000 sh r3,0x0000(r4)
00019c3c: 3c038003 lui r3,0x8003
00019c40: 8c63a908 lw r3,-0x56f8(r3)
00019c44: 00491004 sllv r2,r9,r2
00019c48: 00431025 or r2,r2,r3
00019c4c: 3c018003 lui r1,0x8003
00019c50: ac22a908 sw r2,-0x56f8(r1)
00019c54: 08006725 j 0x00019c94
00019c58: 3c0200ff lui r2,0x00ff
00019c5c: 3c058003 lui r5,0x8003
00019c60: 8ca5ad44 lw r5,-0x52bc(r5)          voice register 0
00019c64: 00072040 sll r4,r7,0x01
00019c68: 00651821 addu r3,r3,r5
00019c6c: 94620000 lhu r2,0x0000(r3)
00019c70: 00852021 addu r4,r4,r5
00019c74: 00481025 or r2,r2,r8
00019c78: a4620000 sh r2,0x0000(r3)
00019c7c: 00081402 srl r2,r8,0x10
00019c80: 94830000 lhu r3,0x0000(r4)
00019c84: 304200ff andi r2,r2,0x00ff
00019c88: 00621825 or r3,r3,r2
00019c8c: a4830000 sh r3,0x0000(r4)
00019c90: 3c0200ff lui r2,0x00ff
00019c94: 3442ffff ori r2,r2,0xffff
00019c98: 01021024 and r2,r8,r2
00019c9c: 0800675e j 0x00019d78
00019ca0: 01425025 or r10,r10,r2

off

00019ca4: 3c028003 lui r2,0x8003
00019ca8: 8c42ad3c lw r2,-0x52c4(r2)
00019cac: 00000000 nop
00019cb0: 30420001 andi r2,r2,0x0001
00019cb4: 1040001b beq r2,r0,0x00019d24
00019cb8: 00061840 sll r3,r6,0x01
00019cbc: 3c058003 lui r5,0x8003
00019cc0: 24a56ef8 addiu r5,r5,0x6ef8
00019cc4: 00651821 addu r3,r3,r5
00019cc8: 94620000 lhu r2,0x0000(r3)
00019ccc: 00082027 nor r4,r0,r8
00019cd0: 00441024 and r2,r2,r4
00019cd4: 00072040 sll r4,r7,0x01
00019cd8: 00852021 addu r4,r4,r5
00019cdc: a4620000 sh r2,0x0000(r3)
00019ce0: 00081402 srl r2,r8,0x10
00019ce4: 304200ff andi r2,r2,0x00ff
00019ce8: 94830000 lhu r3,0x0000(r4)
00019cec: 00021027 nor r2,r0,r2
00019cf0: 00621824 and r3,r3,r2
00019cf4: a4830000 sh r3,0x0000(r4)
00019cf8: 24c3ff3a addiu r3,r6,0xff3a
00019cfc: 00031843 sra r3,r3,0x01
00019d00: 34020001 ori r2,r0,0x0001
00019d04: 3c048003 lui r4,0x8003
00019d08: 8c84a908 lw r4,-0x56f8(r4)
00019d0c: 00621004 sllv r2,r2,r3
00019d10: 00441025 or r2,r2,r4
00019d14: 3c018003 lui r1,0x8003
00019d18: ac22a908 sw r2,-0x56f8(r1)
00019d1c: 0800675a j 0x00019d68
00019d20: 3c0200ff lui r2,0x00ff
00019d24: 3c058003 lui r5,0x8003
00019d28: 8ca5ad44 lw r5,-0x52bc(r5)           voice register 0
00019d2c: 00000000 nop
00019d30: 00651821 addu r3,r3,r5
00019d34: 94620000 lhu r2,0x0000(r3)
00019d38: 00082027 nor r4,r0,r8
00019d3c: 00441024 and r2,r2,r4
00019d40: 00072040 sll r4,r7,0x01
00019d44: 00852021 addu r4,r4,r5
00019d48: a4620000 sh r2,0x0000(r3)
00019d4c: 00081402 srl r2,r8,0x10
00019d50: 304200ff andi r2,r2,0x00ff
00019d54: 94830000 lhu r3,0x0000(r4)
00019d58: 00021027 nor r2,r0,r2
00019d5c: 00621824 and r3,r3,r2
00019d60: a4830000 sh r3,0x0000(r4)
00019d64: 3c0200ff lui r2,0x00ff
00019d68: 3442ffff ori r2,r2,0xffff
00019d6c: 01021024 and r2,r8,r2
00019d70: 00021027 nor r2,r0,r2
00019d74: 01425024 and r10,r10,r2

return

00019d78: 3c0200ff lui r2,0x00ff
00019d7c: 3442ffff ori r2,r2,0xffff
00019d80: 03e00008 jr r31
00019d84: 01421024 and r2,r10,r2              return previous flags