Difference between revisions of "Set Instrument"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (Talcall moved page 00016fb4 - 00017094 to Set Instrument)
m
 
Line 3: Line 3:
 
  00016fb4: a0a4002c sb r4,0x002c(r5)            store instrument ID
 
  00016fb4: a0a4002c sb r4,0x002c(r5)            store instrument ID
 
  00016fb8: 00042400 sll r4,r4,0x10
 
  00016fb8: 00042400 sll r4,r4,0x10
  00016fbc: 00042303 sra r4,r4,0x0c              * 4
+
  00016fbc: 00042303 sra r4,r4,0x0c              * 0x10
 
  00016fc0: 8ca30030 lw r3,0x0030(r5)            ?
 
  00016fc0: 8ca30030 lw r3,0x0030(r5)            ?
 
  00016fc4: 24840030 addiu r4,r4,0x0030          + 0x30
 
  00016fc4: 24840030 addiu r4,r4,0x0030          + 0x30
  00016fc8: 00642021 addu r4,r3,r4
+
  00016fc8: 00642021 addu r4,r3,r4               instrument's data
  00016fcc: 8c820000 lw r2,0x0000(r4)
+
  00016fcc: 8c820000 lw r2,0x0000(r4)  
 
  00016fd0: 8c630028 lw r3,0x0028(r3)
 
  00016fd0: 8c630028 lw r3,0x0028(r3)
 
  00016fd4: 00000000 nop
 
  00016fd4: 00000000 nop
Line 28: Line 28:
 
  00017018: 90820008 lbu r2,0x0008(r4)
 
  00017018: 90820008 lbu r2,0x0008(r4)
 
  0001701c: 00000000 nop
 
  0001701c: 00000000 nop
  00017020: a4a20064 sh r2,0x0064(r5)
+
  00017020: a4a20064 sh r2,0x0064(r5)         store instrument's attack time
 
  00017024: 90820009 lbu r2,0x0009(r4)
 
  00017024: 90820009 lbu r2,0x0009(r4)
 
  00017028: 00000000 nop
 
  00017028: 00000000 nop
Line 34: Line 34:
 
  00017030: 9082000a lbu r2,0x000a(r4)
 
  00017030: 9082000a lbu r2,0x000a(r4)
 
  00017034: 00000000 nop
 
  00017034: 00000000 nop
  00017038: a4a20068 sh r2,0x0068(r5)
+
  00017038: a4a20068 sh r2,0x0068(r5)         store instrument's sustain
 
  0001703c: 9082000b lbu r2,0x000b(r4)
 
  0001703c: 9082000b lbu r2,0x000b(r4)
 
  00017040: 00000000 nop
 
  00017040: 00000000 nop
  00017044: a4a2002e sh r2,0x002e(r5)
+
  00017044: a4a2002e sh r2,0x002e(r5)        
 
  00017048: a4a2006a sh r2,0x006a(r5)
 
  00017048: a4a2006a sh r2,0x006a(r5)
 
  0001704c: 9082000c lbu r2,0x000c(r4)
 
  0001704c: 9082000c lbu r2,0x000c(r4)
 
  00017050: 00000000 nop
 
  00017050: 00000000 nop
  00017054: a4a2006c sh r2,0x006c(r5)
+
  00017054: a4a2006c sh r2,0x006c(r5)         store instrument's sustain 2
 
  00017058: 94820006 lhu r2,0x0006(r4)
 
  00017058: 94820006 lhu r2,0x0006(r4)
 
  0001705c: 00000000 nop
 
  0001705c: 00000000 nop

Latest revision as of 01:16, 20 June 2024

00016fb4: a0a4002c sb r4,0x002c(r5)             store instrument ID
00016fb8: 00042400 sll r4,r4,0x10
00016fbc: 00042303 sra r4,r4,0x0c               * 0x10
00016fc0: 8ca30030 lw r3,0x0030(r5)             ?
00016fc4: 24840030 addiu r4,r4,0x0030           + 0x30
00016fc8: 00642021 addu r4,r3,r4                instrument's data
00016fcc: 8c820000 lw r2,0x0000(r4) 
00016fd0: 8c630028 lw r3,0x0028(r3)
00016fd4: 00000000 nop
00016fd8: 00431021 addu r2,r2,r3
00016fdc: aca20050 sw r2,0x0050(r5)
00016fe0: 94820004 lhu r2,0x0004(r4)
00016fe4: 8c830000 lw r3,0x0000(r4)
00016fe8: 00000000 nop
00016fec: 00431021 addu r2,r2,r3
00016ff0: aca20054 sw r2,0x0054(r5)
00016ff4: 9082000d lbu r2,0x000d(r4)
00016ff8: 94a30000 lhu r3,0x0000(r5)
00016ffc: aca20058 sw r2,0x0058(r5)
00017000: 9082000e lbu r2,0x000e(r4)
00017004: 00000000 nop
00017008: aca2005c sw r2,0x005c(r5)
0001700c: 9082000f lbu r2,0x000f(r4)
00017010: 00000000 nop
00017014: aca20060 sw r2,0x0060(r5)
00017018: 90820008 lbu r2,0x0008(r4)
0001701c: 00000000 nop
00017020: a4a20064 sh r2,0x0064(r5)          store instrument's attack time
00017024: 90820009 lbu r2,0x0009(r4)
00017028: 00000000 nop
0001702c: a4a20066 sh r2,0x0066(r5)
00017030: 9082000a lbu r2,0x000a(r4)
00017034: 00000000 nop
00017038: a4a20068 sh r2,0x0068(r5)          store instrument's sustain
0001703c: 9082000b lbu r2,0x000b(r4)
00017040: 00000000 nop
00017044: a4a2002e sh r2,0x002e(r5)          
00017048: a4a2006a sh r2,0x006a(r5)
0001704c: 9082000c lbu r2,0x000c(r4)
00017050: 00000000 nop
00017054: a4a2006c sh r2,0x006c(r5)          store instrument's sustain 2
00017058: 94820006 lhu r2,0x0006(r4)
0001705c: 00000000 nop
00017060: a4a20084 sh r2,0x0084(r5)
00017064: 3062000c andi r2,r3,0x000c
00017068: 10400008 beq r2,r0,0x0001708c
0001706c: 34628000 ori r2,r3,0x8000
00017070: 94a20002 lhu r2,0x0002(r5)
00017074: 94a30004 lhu r3,0x0004(r5)
00017078: 34420300 ori r2,r2,0x0300
0001707c: 346301ff ori r3,r3,0x01ff
00017080: a4a20002 sh r2,0x0002(r5)
00017084: 08005c24 j 0x00017090
00017088: a4a30004 sh r3,0x0004(r5)
0001708c: a4a20000 sh r2,0x0000(r5)
00017090: 03e00008 jr r31
00017094: 00000000 nop