Difference between revisions of "Effect Related (0x1a13bc)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 56: Line 56:
 
  801a1490: 0c0684a9 jal 0x801a12a4
 
  801a1490: 0c0684a9 jal 0x801a12a4
 
  801a1494: 02003021 addu r6,r16,r0
 
  801a1494: 02003021 addu r6,r16,r0
  801a1498: 8fa40010 lw r4,0x0010(r29)
+
  801a1498: 8fa40010 lw r4,0x0010(r29)           // LBA sector
  801a149c: 8fa50014 lw r5,0x0014(r29)
+
  801a149c: 8fa50014 lw r5,0x0014(r29)           // filesize
  801a14a0: 0c0111a5 jal 0x80044694
+
  801a14a0: 0c0111a5 jal 0x80044694             // [[Load Data From Disc (0x44694)]]
 
  801a14a4: 02203021 addu r6,r17,r0
 
  801a14a4: 02203021 addu r6,r17,r0
 
  801a14a8: 00402021 addu r4,r2,r0
 
  801a14a8: 00402021 addu r4,r2,r0

Latest revision as of 09:42, 13 June 2024

801a13bc: 3c028001 lui r2,0x8001
801a13c0: 8c420008 lw r2,0x0008(r2)             #   *0x80010008 ( = 0x801bf000 )
801a13c4: 3c03801c lui r3,0x801c
801a13c8: 846324d0 lh r3,0x24d0(r3)             #   EffectID
801a13cc: 27bdffd0 addiu r29,r29,-0x0030
801a13d0: afbf0028 sw r31,0x0028(r29)
801a13d4: afb10024 sw r17,0x0024(r29)
801a13d8: afb00020 sw r16,0x0020(r29)
801a13dc: 0460006e bltz r3,0x801a1598           #   if (EffectID < 0) return 0;
801a13e0: 24513500 addiu r17,r2,0x3500          #   *0x80010008 + 0x3500    ( = 0x801c2500 )
801a13e4: 3c03801c lui r3,0x801c
801a13e8: 906324c8 lbu r3,0x24c8(r3)            #   *0x801c24c8
801a13ec: 34020001 ori r2,r0,0x0001             #   1
801a13f0: 10620032 beq r3,r2,0x801a14bc         #   if (*0x801c24c8 != 1) {
801a13f4: 28620002 slti r2,r3,0x0002
801a13f8: 10400005 beq r2,r0,0x801a1410
801a13fc: 00000000 nop
801a1400: 1060000a beq r3,r0,0x801a142c
801a1404: 00000000 nop
801a1408: 0806855c j 0x801a1570
801a140c: 00000000 nop

801a1410: 34020002 ori r2,r0,0x0002
801a1414: 10620032 beq r3,r2,0x801a14e0
801a1418: 34020003 ori r2,r0,0x0003
801a141c: 1062004f beq r3,r2,0x801a155c
801a1420: 00000000 nop
801a1424: 0806855c j 0x801a1570
801a1428: 00000000 nop

801a142c: 3c02801c lui r2,0x801c
801a1430: 9042bf64 lbu r2,-0x409c(r2)
801a1434: 00000000 nop
801a1438: 10400005 beq r2,r0,0x801a1450
801a143c: 3402003c ori r2,r0,0x003c
801a1440: 3c01801c lui r1,0x801c
801a1444: a422895c sh r2,-0x76a4(r1)
801a1448: 08068517 j 0x801a145c
801a144c: 27a50010 addiu r5,r29,0x0010
801a1450: 3c01801c lui r1,0x801c
801a1454: a420895c sh r0,-0x76a4(r1)
801a1458: 27a50010 addiu r5,r29,0x0010
801a145c: 27b00014 addiu r16,r29,0x0014
801a1460: 3c04801c lui r4,0x801c
801a1464: 848424d0 lh r4,0x24d0(r4)
801a1468: 0c0684a9 jal 0x801a12a4
801a146c: 02003021 addu r6,r16,r0
801a1470: 8fa20014 lw r2,0x0014(r29)
801a1474: 00000000 nop
801a1478: 14400007 bne r2,r0,0x801a1498
801a147c: 34020001 ori r2,r0,0x0001
801a1480: 3c01801c lui r1,0x801c
801a1484: a42224d0 sh r2,0x24d0(r1)
801a1488: 34040001 ori r4,r0,0x0001
801a148c: 27a50010 addiu r5,r29,0x0010
801a1490: 0c0684a9 jal 0x801a12a4
801a1494: 02003021 addu r6,r16,r0
801a1498: 8fa40010 lw r4,0x0010(r29)           // LBA sector
801a149c: 8fa50014 lw r5,0x0014(r29)           // filesize
801a14a0: 0c0111a5 jal 0x80044694              // Load Data From Disc (0x44694)
801a14a4: 02203021 addu r6,r17,r0
801a14a8: 00402021 addu r4,r2,r0
801a14ac: 14800030 bne r4,r0,0x801a1570
801a14b0: 34020001 ori r2,r0,0x0001
801a14b4: 08068534 j 0x801a14d0
801a14b8: 00000000 nop                          #   } else {
801a14bc: 0c0111b2 jal 0x800446c8
801a14c0: 00000000 nop
801a14c4: 00402021 addu r4,r2,r0
801a14c8: 14800029 bne r4,r0,0x801a1570
801a14cc: 34020002 ori r2,r0,0x0002
                                                #   }
801a14d0: 3c01801c lui r1,0x801c
801a14d4: a02224c8 sb r2,0x24c8(r1)

801a14d8: 0806855c j 0x801a1570
801a14dc: 34040001 ori r4,r0,0x0001

801a14e0: 3c02801c lui r2,0x801c
801a14e4: 8442895c lh r2,-0x76a4(r2)
801a14e8: 00000000 nop
801a14ec: 14400022 bne r2,r0,0x801a1578
801a14f0: 34040001 ori r4,r0,0x0001
801a14f4: 3c04801c lui r4,0x801c
801a14f8: 9084bf64 lbu r4,-0x409c(r4)
801a14fc: 00000000 nop
801a1500: 10800003 beq r4,r0,0x801a1510
801a1504: 00000000 nop
801a1508: 0c06b6c3 jal 0x801adb0c
801a150c: 00000000 nop
801a1510: 3c04801c lui r4,0x801c
801a1514: 848424d0 lh r4,0x24d0(r4)
801a1518: 34020003 ori r2,r0,0x0003
801a151c: 3c01801c lui r1,0x801c
801a1520: a02224c8 sb r2,0x24c8(r1)
801a1524: 0c068466 jal 0x801a1198
801a1528: 00000000 nop
801a152c: 3c02801c lui r2,0x801c
801a1530: 8c42acc8 lw r2,-0x5338(r2)
801a1534: 00000000 nop
801a1538: 8c420000 lw r2,0x0000(r2)
801a153c: 00000000 nop
801a1540: 30420010 andi r2,r2,0x0010
801a1544: 1040ffe4 beq r2,r0,0x801a14d8
801a1548: 34040040 ori r4,r0,0x0040

801a154c: 0c010ed5 jal 0x80043b54
801a1550: 340500f0 ori r5,r0,0x00f0
801a1554: 0806855c j 0x801a1570
801a1558: 34040001 ori r4,r0,0x0001

801a155c: 3c04801c lui r4,0x801c
801a1560: 9084bf64 lbu r4,-0x409c(r4)
801a1564: 0c06b6b8 jal 0x801adae0
801a1568: 00000000 nop
801a156c: 0002202b sltu r4,r0,r2
801a1570: 3c02801c lui r2,0x801c
801a1574: 8442895c lh r2,-0x76a4(r2)

801a1578: 00000000 nop
801a157c: 18400004 blez r2,0x801a1590
801a1580: 00401821 addu r3,r2,r0
801a1584: 2462ffff addiu r2,r3,-0x0001
801a1588: 3c01801c lui r1,0x801c
801a158c: a422895c sh r2,-0x76a4(r1)
801a1590: 08068567 j 0x801a159c
801a1594: 0004102b sltu r2,r0,r4
801a1598: 00001021 addu r2,r0,r0
801a159c: 8fbf0028 lw r31,0x0028(r29)
801a15a0: 8fb10024 lw r17,0x0024(r29)
801a15a4: 8fb00020 lw r16,0x0020(r29)
801a15a8: 27bd0030 addiu r29,r29,0x0030
801a15ac: 03e00008 jr r31
801a15b0: 00000000 nop