Difference between revisions of "Get Sound Effect Data"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 5: Line 5:
 
  00017e84: 3c058003 lui r5,0x8003
 
  00017e84: 3c058003 lui r5,0x8003
 
  00017e88: 24a52a00 addiu r5,r5,0x2a00
 
  00017e88: 24a52a00 addiu r5,r5,0x2a00
  00017e8c: 10400007 beq r2,r0,0x00017eac
+
  00017e8c: 10400007 beq r2,r0,0x00017eac         branch if no address found
 
  00017e90: 00000000 nop
 
  00017e90: 00000000 nop
  00017e94: 8ca20000 lw r2,0x0000(r5)
+
  00017e94: 8ca20000 lw r2,0x0000(r5)             if address found, load address at address
 
  00017e98: 00000000 nop
 
  00017e98: 00000000 nop
  00017e9c: 8c430010 lw r3,0x0010(r2)
+
  00017e9c: 8c430010 lw r3,0x0010(r2)             load byte 10?
 
  00017ea0: 00000000 nop
 
  00017ea0: 00000000 nop
  00017ea4: 1460fffb bne r3,r0,0x00017e94
+
  00017ea4: 1460fffb bne r3,r0,0x00017e94         loop until byte 10 is 0
 
  00017ea8: 24450010 addiu r5,r2,0x0010
 
  00017ea8: 24450010 addiu r5,r2,0x0010
  00017eac: aca40000 sw r4,0x0000(r5)
+
  00017eac: aca40000 sw r4,0x0000(r5)             Store RAM address of file
 
  00017eb0: 03e00008 jr r31
 
  00017eb0: 03e00008 jr r31
  00017eb4: ac800010 sw r0,0x0010(r4)
+
  00017eb4: ac800010 sw r0,0x0010(r4)             store 0 at RAM address byte 10
 
</font>
 
</font>

Latest revision as of 06:18, 14 June 2024

00017e7c: 3c028003 lui r2,0x8003
00017e80: 8c422a00 lw r2,0x2a00(r2)
00017e84: 3c058003 lui r5,0x8003
00017e88: 24a52a00 addiu r5,r5,0x2a00
00017e8c: 10400007 beq r2,r0,0x00017eac          branch if no address found
00017e90: 00000000 nop
00017e94: 8ca20000 lw r2,0x0000(r5)              if address found, load address at address
00017e98: 00000000 nop
00017e9c: 8c430010 lw r3,0x0010(r2)              load byte 10?
00017ea0: 00000000 nop
00017ea4: 1460fffb bne r3,r0,0x00017e94          loop until byte 10 is 0
00017ea8: 24450010 addiu r5,r2,0x0010
00017eac: aca40000 sw r4,0x0000(r5)              Store RAM address of file
00017eb0: 03e00008 jr r31
00017eb4: ac800010 sw r0,0x0010(r4)              store 0 at RAM address byte 10