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

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
  1c]
+
  0018937c: 27bdffe8 addiu r29,r29,0xffe8     |
  0018937c: 27bdffe8 addiu r29,r29,0xffe8
+
  00189380: afbf0010 sw r31,0x0010(r29)       |
  00189380: afbf0010 sw r31,0x0010(r29)
+
  00189384: 0c061d7f jal 0x001875fc          |{{f/jal|Sleep Check|Sleep Check}} If Target is Sleeping, Forces the Attack to miss
  00189384: 0c061d7f jal 0x 001875fc  [[Sleep Check]]
+
  00189388: 00000000 nop                     |
  00189388: 00000000 nop
+
  0018938c: 3c028019 lui r2,0x8019           |
  0018938c: 3c028019 lui r2,0x8019
+
  00189390: 8c422d90 lw r2,0x2d90(r2)         |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  00189390: 8c422d90 lw r2,0x2d90(r2) Target current data pointer
+
  00189394: 00000000 nop                     |
  00189394: 00000000 nop
+
  00189398: 90420000 lbu r2,0x0000(r2)       |{{f/load|<nowiki>r2 = TCA hit flag</nowiki>}}
  00189398: 90420000 lbu r2,0x0000(r2) Hit flag
+
  0018939c: 00000000 nop                     |
  0018939c: 00000000 nop
+
  001893a0: 10400009 beq r2,r0,0x001893c8    {{f/Cond|If Attack hit}} /Else go to END (target is sleeping)
  001893a0: 10400009 beq r2,r0,0x 001893c8 Branch if miss
+
  001893a4: 00000000 nop                         |
  001893a4: 00000000 nop
+
  001893a8: 0c0610d8 jal 0x00184360              |{{f/jal|Dance/Song hit %|Dance/Song hit %}} Uses Ability X as Hit% / Return r2
  001893a8: 0c0610d8 jal 0x 00184360    [[Dance/Song hit %]]
+
  001893ac: 00000000 nop                         |
  001893ac: 00000000 nop
+
  001893b0: 14400005 bne r2,r0,0x001893c8        {{f/Cond|If Attack hit}}
  001893b0: 14400005 bne r2,r0,0x 001893c8 Branch if miss
+
  001893b4: 00000000 nop                             |
  001893b4: 00000000 nop
+
  001893b8: 0c061725 jal 0x00185c94                  |{{f/jal|Store MA and Y|Store MA and Y}} XA = Attacker's MA and YA = used Ability Y
  001893b8: 0c061725 jal 0x 00185c94    [[Store MA and Y]]
+
  001893bc: 00000000 nop                             |
  001893bc: 00000000 nop
+
  001893c0: 0c061a7b jal 0x001869ec                  |{{f/jal|Song abilities|Song abilities}} Set Various TCA data based on Ability ID (Hard coded)
  001893c0: 0c061a7b jal 0x 001869ec    [[Song abilities]]
+
  001893c4: 00000000 nop                             |
  001893c4: 00000000 nop
+
  001893c8: 8fbf0010 lw r31,0x0010(r29)       END
  001893c8: 8fbf0010 lw r31,0x0010(r29)
+
  001893cc: 27bd0018 addiu r29,r29,0x0018   
  001893cc: 27bd0018 addiu r29,r29,0x 0018
+
  001893d0: 03e00008 jr r31                  
  001893d0: 03e00008 jr r31
 
 
  001893d4: 00000000 nop
 
  001893d4: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 18:17, 18 April 2022

0018937c: 27bdffe8 addiu r29,r29,0xffe8     |
00189380: afbf0010 sw r31,0x0010(r29)       |
00189384: 0c061d7f jal 0x001875fc           |-->Sleep Check If Target is Sleeping, Forces the Attack to miss
00189388: 00000000 nop                      |
0018938c: 3c028019 lui r2,0x8019            |
00189390: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
00189394: 00000000 nop                      |
00189398: 90420000 lbu r2,0x0000(r2)        |r2 = TCA hit flag
0018939c: 00000000 nop                      |
001893a0: 10400009 beq r2,r0,0x001893c8     #If Attack hit /Else go to END (target is sleeping)
001893a4: 00000000 nop                          |
001893a8: 0c0610d8 jal 0x00184360               |-->Dance/Song hit % Uses Ability X as Hit% / Return r2
001893ac: 00000000 nop                          |
001893b0: 14400005 bne r2,r0,0x001893c8         #If Attack hit
001893b4: 00000000 nop                              |
001893b8: 0c061725 jal 0x00185c94                   |-->Store MA and Y XA = Attacker's MA and YA = used Ability Y
001893bc: 00000000 nop                              |
001893c0: 0c061a7b jal 0x001869ec                   |-->Song abilities Set Various TCA data based on Ability ID (Hard coded)
001893c4: 00000000 nop                              |
001893c8: 8fbf0010 lw r31,0x0010(r29)       END
001893cc: 27bd0018 addiu r29,r29,0x0018     
001893d0: 03e00008 jr r31                   
001893d4: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup