Difference between revisions of "1D Hit (X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [1d] 001893d8: 27bdffe8 addiu r29,r29,0xffe8 001893dc: afbf0010 sw r31,0x0010(r29) 001893e0: 0c061d7f jal 0x 001875fc Sleep Check 001893e4: 00000000 nop 001893e...")
 
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[1d]
+
  001893d8: 27bdffe8 addiu r29,r29,-0x0018    |
  001893d8: 27bdffe8 addiu r29,r29,0xffe8
+
  001893dc: afbf0010 sw r31,0x0010(r29)       |
  001893dc: afbf0010 sw r31,0x0010(r29)
+
  001893e0: 0c061d7f jal 0x001875fc          |{{f/jal|Sleep Check|Sleep Check}} If Target is Sleeping, Forces the Attack to miss
  001893e0: 0c061d7f jal 0x 001875fc    Sleep Check
+
  001893e4: 00000000 nop                     |
  001893e4: 00000000 nop
+
  001893e8: 3c028019 lui r2,0x8019           |
  001893e8: 3c028019 lui r2,0x8019
+
  001893ec: 8c422d90 lw r2,0x2d90(r2)         |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  001893ec: 8c422d90 lw r2,0x2d90(r2)
+
  001893f0: 00000000 nop                     |
  001893f0: 00000000 nop
+
  001893f4: 90420000 lbu r2,0x0000(r2)       |{{f/load|<nowiki>r2 = TCA Hit flag</nowiki>}}
  001893f4: 90420000 lbu r2,0x0000(r2)
+
  001893f8: 00000000 nop                     |
  001893f8: 00000000 nop
+
  001893fc: 10400009 beq r2,r0,0x00189424    {{f/Cond|If Attack hit}} /Else Target is sleeping, branch to END
  001893fc: 10400009 beq r2,r0,0x 00189424
+
  00189400: 00000000 nop                         |
  00189400: 00000000 nop
+
  00189404: 0c0610d8 jal 0x00184360              |{{f/jal|Dance/Song hit %|Dance/Song hit %}} Uses Ability X as Hit% / Return r2
  00189404: 0c0610d8 jal 0x 00184360      Skill-Set Hard Coding
+
  00189408: 00000000 nop                         |
  00189408: 00000000 nop
+
  0018940c: 14400005 bne r2,r0,0x00189424        {{f/Cond|If Attack hits}}
  0018940c: 14400005 bne r2,r0,0x 00189424
+
  00189410: 00000000 nop                             |
  00189410: 00000000 nop
+
  00189414: 0c0616a7 jal 0x00185a9c                  |{{f/jal|Base XA Calculation|Base XA Calculation}} Set XA and YA (Based on Weapon Type)
  00189414: 0c0616a7 jal 0x 00185a9c    Weapon XA Calculation
+
  00189418: 00000000 nop                             |
  00189418: 00000000 nop
+
  0018941c: 0c061abe jal 0x00186af8                  |{{f/jal|Dance abilities|Dance abilities}} Set Various TCA data based on Ability ID (Hard coded)
  0018941c: 0c061abe jal 0x 00186af8              Wiznaibus/Witch Hunt Formula
+
  00189420: 00000000 nop                             |
  00189420: 00000000 nop
+
  00189424: 8fbf0010 lw r31,0x0010(r29)       END
  00189424: 8fbf0010 lw r31,0x0010(r29)
+
  00189428: 27bd0018 addiu r29,r29,0x0018   
  00189428: 27bd 0018 addiu r29,r29,0x 0018
+
  0018942c: 03e00008 jr r31                  
  0018942c: 03e00008 jr r31
 
 
  00189430: 00000000 nop
 
  00189430: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 18:43, 18 April 2022

001893d8: 27bdffe8 addiu r29,r29,-0x0018    |
001893dc: afbf0010 sw r31,0x0010(r29)       |
001893e0: 0c061d7f jal 0x001875fc           |-->Sleep Check If Target is Sleeping, Forces the Attack to miss
001893e4: 00000000 nop                      |
001893e8: 3c028019 lui r2,0x8019            |
001893ec: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
001893f0: 00000000 nop                      |
001893f4: 90420000 lbu r2,0x0000(r2)        |r2 = TCA Hit flag
001893f8: 00000000 nop                      |
001893fc: 10400009 beq r2,r0,0x00189424     #If Attack hit /Else Target is sleeping, branch to END
00189400: 00000000 nop                          |
00189404: 0c0610d8 jal 0x00184360               |-->Dance/Song hit % Uses Ability X as Hit% / Return r2
00189408: 00000000 nop                          |
0018940c: 14400005 bne r2,r0,0x00189424         #If Attack hits
00189410: 00000000 nop                              |
00189414: 0c0616a7 jal 0x00185a9c                   |-->Base XA Calculation Set XA and YA (Based on Weapon Type)
00189418: 00000000 nop                              |
0018941c: 0c061abe jal 0x00186af8                   |-->Dance abilities Set Various TCA data based on Ability ID (Hard coded)
00189420: 00000000 nop                              |
00189424: 8fbf0010 lw r31,0x0010(r29)       END
00189428: 27bd0018 addiu r29,r29,0x0018     
0018942c: 03e00008 jr r31                   
00189430: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup