Difference between revisions of "Routine Locations"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
[[Data Nullifying]]
 
[[Data Nullifying]]
  
 
000736d4: ??? effect research
 
 
[[??? effect research]]
 
 
 
00073eec: ??? effect research
 
 
[[?? effect research]]
 
  
 
0007ff44: "Speed" display
 
0007ff44: "Speed" display
Line 107: Line 98:
 
[[*"No MP" Display*]]
 
[[*"No MP" Display*]]
  
 
0013b590: jumped to from steal item decrement/stat changes/price change?? And weather effects on crossbows/bows
 
 
[[Unknown 1]]
 
 
 
0013b644: jumped to from routine immediately above this one
 
 
[[Uknown 2]]
 
 
 
0014a018: Jumped to from subroutines of steal routine - Calculate party inventory?
 
 
[[Calculate party inventory?]]
 
 
 
0017a290: Check ability data?
 
 
[[Check ability data?]]
 
  
  
Line 211: Line 183:
  
 
[[Player Skill Set:]]
 
[[Player Skill Set:]]
 
 
001817c0: Jumped to from 181fb4...?
 
 
[[Jumped to from 181fb4...?]]
 
  
  
Line 266: Line 233:
  
 
[[activates move/act]]
 
[[activates move/act]]
 
 
00183ea0: something involving map coordinates
 
 
[[something involving map coordinates]]
 
 
 
00183fb4: deals with map coordinates
 
 
[[deals with map coordinates 1]]
 
 
 
0018401c: deals with map coordinates
 
 
[[deals with map coordinates 2]]
 
 
 
0018414c: deals with map coordinates
 
 
[[deals with map coordinates 3]]
 
  
  
Line 312: Line 259:
 
[[Compatibility:]]
 
[[Compatibility:]]
  
 
00184b24: jumped to from poach routine - status infliction checks?
 
 
[[umped to from poach routine]]
 
  
  
Line 464: Line 407:
  
  
[[Magic Attack Up]]
+
[[Magic Attack Up routine]]
  
 
00186254: Attacker Berserk/Frog Check
 
00186254: Attacker Berserk/Frog Check
Line 474: Line 417:
  
  
[[Defense UP]]
+
[[Defense UP routine]]
  
 
0018631c: Magic Defense Up
 
0018631c: Magic Defense Up
  
  
[[Magic Defense Up]]
+
[[Magic Defense Up routine]]
  
 
0018636c: Target XA affecting Statuses (Physical):
 
0018636c: Target XA affecting Statuses (Physical):
Line 561: Line 504:
 
[[Convert HP Damage into MP Recovery]]
 
[[Convert HP Damage into MP Recovery]]
  
00187510: ??? Routine (Often appears after elemental absorb routine)
 
 
[[??? Routine ]]
 
  
 
001875bc: Dragon Check:
 
001875bc: Dragon Check:
Line 729: Line 669:
 
[[Pre Formula Setup (FDC)]]
 
[[Pre Formula Setup (FDC)]]
  
 
0018bcf0: Nullification Process? (disables a bunch of stuff)
 
 
[[Nullification Process?]]
 
 
 
0018bd34: ?Nullify steal item?
 
 
[[?Nullify steal item?]]
 
  
 
0018be08: Big routine - performs ability effects?
 
 
[[Big routine - performs ability effects?]]
 
 
  
 
0018c9e4: 'Reflect', Blade Grasp, and Arrow Guard check?
 
0018c9e4: 'Reflect', Blade Grasp, and Arrow Guard check?
Line 862: Line 788:
  
  
[[something involving steal/poach?]]
+
[[Something involving steal/poach?]]
  
 
0018eea0: Random Process (gives a number between 0-7FFF)
 
0018eea0: Random Process (gives a number between 0-7FFF)
Line 882: Line 808:
  
 
[[Load ability effect]]
 
[[Load ability effect]]
 +
 +
'''Routines that need deciphering'''
 +
Post routines that you have some info on, and people can decipher them when they want to.
 +
 +
 +
000736d4: ??? effect research
 +
 +
[[??? effect research]]
 +
 +
 +
00073eec: ??? effect research
 +
 +
[[?? effect research]]
 +
 +
0018bd34: ?Nullify steal item?
 +
 +
[[?Nullify steal item?]]
 +
 +
 +
00187510: ??? Routine (Often appears after elemental absorb routine)
 +
 +
[[??? Routine ]]
 +
 +
00184b24: jumped to from poach routine - status infliction checks?
 +
 +
[[jumped to from poach routine]]
 +
 +
 +
00183ea0: something involving map coordinates
 +
 +
[[something involving map coordinates]]
 +
 +
 +
00183fb4: deals with map coordinates
 +
 +
[[deals with map coordinates 1]]
 +
 +
 +
0018401c: deals with map coordinates
 +
 +
[[deals with map coordinates 2]]
 +
 +
 +
0018414c: deals with map coordinates
 +
 +
[[deals with map coordinates 3]]
 +
 +
001817c0: Jumped to from 181fb4...?
 +
 +
[[Jumped to from 181fb4...?]]
 +
 +
 +
0013b590: jumped to from steal item decrement/stat changes/price change?? And weather effects on crossbows/bows
 +
 +
[[Unknown 1]]
 +
 +
 +
0013b644: jumped to from routine immediately above this one
 +
 +
[[Uknown 2]]
 +
 +
 +
0014a018: Jumped to from subroutines of steal routine - Calculate party inventory?
 +
 +
[[Calculate party inventory?]]
 +
 +
 +
0017a290: Check ability data?
 +
 +
[[Check ability data?]]
 +
 +
 +
0018bcf0: Nullification Process? (disables a bunch of stuff)
 +
 +
[[Nullification Process?]]
 +
 +
 +
0018be08: Big routine - performs ability effects?
 +
 +
[[Big routine - performs ability effects?]]

Revision as of 02:46, 16 February 2012

Here is a list of Routine locations in RAM. To view the actual code of the routine follow the link under it.


000000a0: Jump to 0x5c4

Jump to 0x5c4

0005e0cc: Checking if Attack Hits?

Checking if Attack Hits?

0005e200: Checking known abilities?

Checking known abilities?

0005e644: Data Nullifying (requires r5 = Limit, and r4 = Starting location)

Data Nullifying


0007ff44: "Speed" display

"Speed" display


0007ff7c: "CT" display

"CT" display


0007ffb0: "Br" display

"Br" display


0007ffe8: "Fa" display

"Fa" display


00080020: "Attack" Sword display

"Attack" Sword display


00080054: "Magic" Rod display

"Magic" Rod display


0008008c: "Missed" display

"Missed" display


000800bc: "Guarded" display

"Guarded" display


000800ec: "Caught?" display

"Caught?" display


00080bc4: *One-Digit Experience*

*One-Digit Experience*


00080c40: *Two-Digit Experience*

*Two-Digit Experience*


00080cf8: *One-Digit JP*

*One-Digit JP*


00080d84: *Two-Digit JP*

*Two-Digit JP*


00080e3c: *"No Target" Display*

*"No Target" Display*


00080e7c: *"Silenced" Display*

*"Silenced" Display*


00080ebc: *"No MP" Display*

*"No MP" Display*


0017b4d0: Calculator Routine

Calculator Routine


0017b874: Targeting routine:

Targeting routine:


0017c45c: Writes action taken

Writes action taken


0017d4a0: Determining Multi Hit Formulas (and other ugly hard coding)

Determining Multi Hit Formulas


0017da20: MP Cost (Half of MP) Section:

MP Cost (Half of MP) Section:


0017defc: Big... Contains Hamedo check

Big... Contains Hamedo check


0017e780: Auto Potion?

Auto Potion?


0017e7e4: Gained JP Up Section... And other stuff

Gained JP Up Section


0017f020: Float/Float/Fly movements (and some other stuff)

Float/Float/Fly movements


00180134: Move HP / MP Up?

Move HP / MP Up?


00180b2c: Ramza Causes Game Over?

Ramza Causes Game Over?


001810a0: Map Location Calculation (requires r4 = Target Data Pointer)

Map Location Calculation


001810d4: Get unit data pointer?

Get unit data pointer?


00181114: check whose turn it is?

check whose turn it is?


001811f8: Player Control Routine?

Player Control Routine?


0018130c: Weapon Guard Usability (requires r4 = Target's Data Pointer)

Weapon Guard Usability


001813c0: Player Skill Set:

Player Skill Set:


00181f38: Routine that checks math skill IDS

Routine that checks math skill IDS


001835a8: Unit doesn't exist/deadcrystaltreasurepetrify/being ridden check

Unit doesn't exist/deadcrystaltreasurepetrify/being ridden check


0018370c: jumped to from 18189c

jumped to from 18189c


00183bf0: Various Flags? r4= data pointer?

Various Flags? r4= data pointer?


00183c6c: End of Turn

End of Turn


00183d10: Able to move/act checks (Menu?)

Able to move/act checks (Menu?)


00183d70: Change of Turn check?

Change of Turn check?


00183de0: Intermediate routine - preserves return address

Intermediate routine - preserves return address


00183e00: another intermediate routine

another intermediate routine


00183e8c: activates move/act

activates move/act


0018430c: Force Attack Miss (Used in Formula 0x0E)

Force Attack Miss


0018433c: Force Attack Miss?

Force Attack Miss?


001843ec: Knockback Calculation:

Knockback Calculation:


001848d8: Attack Evaded Calculations

Attack Evaded Calculations


00184964: Compatibility:

Compatibility:


00184e40: Elemental Nullification

Elemental Nullification


00184e98: Elemental Damage Modification (Halve, Null, Absorb, Weak) (r4 = Weapon's Element)

Elemental Damage Modification

00184f9c: Equipment Evasion Setting (Physical)

Equipment Evasion Setting (Physical)


001851c4: Equipment Evasion Setting (Magical):

Equipment Evasion Setting (Magical):


001852e4: Concentrate Calculation

Concentrate Calculation


00185328: Dark/Confuse Caclulation

Dark/Confuse Caclulation


0018537c: Abandon Calculation

Abandon Calculation


001853f4: Evasion Changes due to Statuses

Evasion Changes due to Statuses


001854b8: Transparent Calculation

Transparent Calculation


001854fc: Facing Evade Calculation


Facing Evade Calculation

00185738: Weather effects on Bows/Crossbows


Weather effects on Bows

00185814: Calculate Final Hit %


Calculate Final Hit %

00185a9c: Base XA Calculation (Weapons)


Base XA Calculation

00185c94: Store MA and Y


Store MA and Y

00185cc0: Base XA and YA for MA + Y / 2 used for Truth and Hydra Formula:


Base XA and YA for MA + Y / 2

00185d00: Store PA and PA + Y / 2


Store PA and PA + Y / 2

00185d40: Store MA and PA + Y / 2


Store MA and PA + Y / 2

00185d80: Store MA and X


Store MA and X

00185dac: Store PA and X


Store PA and X

00185dd8: Store PA and WP


Store PA and WP

00185e04: Store PA and Y


Store PA and Y

00185e30: Store Speed and X


Store Speed and X

00185e5c: Store PA and WP + Y


Store PA and WP + Y

00185e94: Formula 64 or Jump Base XA / YA


Formula 64 or Jump Base XA / YA

00185f80: Charge Calculation


Charge Calculation

00185fa4: Weapon Element Strengthen Calculation


Weapon Element Strengthen

00185ffc: Elemental Strengthen


Elemental Strengthen

00186054: Attack UP/Two Hands/Martial Arts


Attack UP/Two Hands/Martial Arts

0018614c: Formula 32, 33, 34, 35 Attack Up and Martial Arts (No Two Hands, also is stupid.)

Formula 32, 33, 34, 35 Attack Up and Martial Arts

00186204: Magic Attack Up


Magic Attack Up routine

00186254: Attacker Berserk/Frog Check


Attacker Berserk/Frog Check

001862cc: Defense UP


Defense UP routine

0018631c: Magic Defense Up


Magic Defense Up routine

0018636c: Target XA affecting Statuses (Physical):


Target XA affecting Statuses (Physical):

00186460: Target's Status Affecting XA (Magical)

Target's Status Affecting XA (Magical)


001864f8: Critical Hit Calculation:

Critical Hit Calculation:


00186568: XA * YA Calculation (Final HP Damage):


XA * YA Calculation (Final HP Damage)

0018659c: Set XA + YA for Status Formulas (Stupid section)


Set XA + YA for Status Formulas (Stupid section)

00186624: Calculate % of damage


Calculate % of damage

00186ed0: Elemental Section?


Elemental Section?

00186fd0: Elemental Damage Modification (Prep)


Elemental Damage Modification (Prep)

00186ff8: Ability Elemental?:


Ability Elemental?

001870fc: Elemental Absorption


Elemental Absorption

00187150: Faith Calculation:


Faith Calculation:

00187248: HP Absorbtion (Seems needlessly complex)


HP Absorbtion

00187350: Undead Reversal


Undead Reversal

001873d8: Undead Absorb Attack:


Undead Absorb Attack:

0018746c: MP Recovery Routine (Longer then it needs to be?)


MP Recovery Routine

001874ec: Convert HP Damage into MP Recovery (Formula 54)


Convert HP Damage into MP Recovery


001875bc: Dragon Check:


Dragon Check

001875fc: Sleep Check:


Sleep Check

00187638: Maintence Check:

Maintence


00187730: Magic Gun Ability Decision:

Magic Gun Ability Decision


0018783c: Quick Effect:

Quick Effect


00187860: Determine which stat will be reduced (bunch of hardcoding)

Determine which stat will be reduced


00187910: Katana Break Chance:

Katana Break Chance:


001879c8: Steal/Break/Might Sword Hard Coding

Steal/Break/Might Sword Hard Coding


00187ca0: Formula 01 - 06 Aftermath (Contains Poach and Secret Hunt)

Formula 01 - 06 Aftermath


00188288: MP Healing Item Formula

MP Healing Item Formula


001882c8: 100% HP/MP Healing (actual)

100% HP/MP Healing (actual)


001882f8: Finger Guard:

Finger Guard


001883ac: Catch:

Catch


00188488: Calculate Hit %

Calculate Hit %


00188510: Physical Evade Calculation:

Physical Evade Calculation


00188568: Physical Evade Calculation (Charge):

Physical Evade Calculation


001885b8: Magical Evade Calculation:

Magical Evade Calculation:


001885f8: Physical XA Modifying Statuses/Support (Plus Compat):

Physical XA Modifying Statuses/Support


00188638: Physical Damage Calculation (Weapons):

Physical Damage Calculation


001886a4: Damage Calculation

Damage Calculation


001886d4: Routine used in formula 2B

Routine used in formula 2B


00188744: Magical Support/Status/Compat:

Magical Support/Status/Compat:


0018877c: Elemental XA * YA (often used in Magic based formulas)

Elemental XA * YA


001887c4: Elemental Absorb/Status and an odd r2 = 0

Elemental Absorb/Status


00188800: MA + X (For... Only buffs?)

MA + X


00188858: Magical XA * YA:

Magical XA * YA:


00188964: Truth/Formula 5E-5F Magical damage:

Truth/Formula


001889a4: 2Truth/Formula 5E-5F Calculate damage:

2Truth/Formula


001889cc: Calculate Accuracy for Magical Spells (No elemental boost)

Calculate Accuracy for Magical Spells


00188a24: Calculate Accuracy for Magical Spells


Calculate Accuracy for Magical

00188adc: Cluster of Physical Routines that has attacker berserk / frog checks...

Cluster of Physical Routines


00188b14: Physical Routine for Hit % abilities

Physical Routine for Hit % abilities


0018b34c: Pre Formula Setup (FDC)

Pre Formula Setup (FDC)


0018c9e4: 'Reflect', Blade Grasp, and Arrow Guard check?

'Reflect', Blade Grasp, and Arrow Guard


0018cb00: Sunken State, Caution, Dragon Spirit, Brave Up, Face Up, Counter Tackle, Counter Flood, Absorb Used MP, Counter, Counter Magic Check


Sunken State, Caution, Dragon Spirit,

0018cc34: MP Switch, Distribute, and Damage Split Check:

MP Switch, Distribute, and Damage Split


0018ccd8: PA Save, MA Save, Speed Save, Regenerator, HP Restore, MP Restore, Critical Quick, Meatbone Slash, Auto Potion, Gilgame Heart Check:

PA Save, MA Save, Speed Save


0018ce04: Counter, Counter Tackle, Counter Magic, Counter Flood, Brave Up, Dragon Spirit, Sunken State, and Caution Usability:

Counter, Counter Tackle

0018ce88: PA Save, MA Save, Speed Save, Regenerator, Auto Potion, Gilgame Heart Usability:


PA Save, MA Save, Speed Save

0018cef4: Critical Quick, HP Restore, MP Restore, Meatbone Slash Usability:


Critical Quick, HP Restore, MP Restore

0018cf74: Face Up and Absorb Used MP Usability:


Face Up and Absorb Used MP

0018cfe8: Reflect Reaction?


Reflect Reaction?

0018d050: Blade Grasp Usability:


Blade Grasp Usability

0018d0e8: Arrow Guard Usability:


Arrow Guard Usability

0018d1b8: MP Switch Usability:


MP Switch Usability

0018d2a8: Distribute Usability:


Distribute Usability

0018d318: Damage Split Usability:


Damage Split Usability

0018d384: Chance to React:


Chance to React

0018d3c0: Steal Routine


Steal Routine

0018d620: Attacker's Earned Experience and Gained EXP Up


Attacker's Earned Experience

0018d7c8: Poison and Regen:


Poison and Regen

0018d868: Transparent removal routine


Transparent removal routine

0018da04: target pointers


target pointers

0018da44: Crystal, Dead, Jump, Petrify, and Treasure check:


Crystal, Dead, Jump, Petrify

0018dd44: Move-HP Up, Move-MP Up, Gained Exp Up, Gained JP Up:


Move-HP Up, Move-MP Up, Gained Exp Up

0018e9e8: Item quantity increment for steal/break?


Item quantity increment for steal/break?

0018ea94: something involving steal/poach?


Something involving steal/poach?

0018eea0: Random Process (gives a number between 0-7FFF)


Random Process

0018eed8: Random Process (gives a random based on r4 (MOD) and checks against r5 (chance to work))

Random Process


00195878 - 0019e15c AI data Routines

AI data Routines


001a1810: Load ability effect: called from 73f68

Load ability effect

Routines that need deciphering Post routines that you have some info on, and people can decipher them when they want to.


000736d4: ??? effect research

??? effect research


00073eec: ??? effect research

?? effect research

0018bd34: ?Nullify steal item?

?Nullify steal item?


00187510: ??? Routine (Often appears after elemental absorb routine)

??? Routine

00184b24: jumped to from poach routine - status infliction checks?

jumped to from poach routine


00183ea0: something involving map coordinates

something involving map coordinates


00183fb4: deals with map coordinates

deals with map coordinates 1


0018401c: deals with map coordinates

deals with map coordinates 2


0018414c: deals with map coordinates

deals with map coordinates 3

001817c0: Jumped to from 181fb4...?

Jumped to from 181fb4...?


0013b590: jumped to from steal item decrement/stat changes/price change?? And weather effects on crossbows/bows

Unknown 1


0013b644: jumped to from routine immediately above this one

Uknown 2


0014a018: Jumped to from subroutines of steal routine - Calculate party inventory?

Calculate party inventory?


0017a290: Check ability data?

Check ability data?


0018bcf0: Nullification Process? (disables a bunch of stuff)

Nullification Process?


0018be08: Big routine - performs ability effects?

Big routine - performs ability effects?