Difference between revisions of "Prep for Generating Base Raw Stats"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Prep for Generating Base Raw Stats 0005a400: 27bdffe8 addiu r29,r29,0xffe8 0005a404: afbf0010 sw r31,0x0010(r29) 0005a408: 90830006 lbu r3,0x0006(r4) Load Unit's Gender B...")
 
 
Line 18: Line 18:
 
  0005a440: 03e00008 jr r31
 
  0005a440: 03e00008 jr r31
 
  0005a444: 00000000 nop
 
  0005a444: 00000000 nop
 +
 +
 +
== Return Locations ==
 +
 +
0005aa5c:  [[Unit Battle Initialization]]

Latest revision as of 00:50, 29 February 2012

Prep for Generating Base Raw Stats
0005a400: 27bdffe8 addiu r29,r29,0xffe8
0005a404: afbf0010 sw r31,0x0010(r29)
0005a408: 90830006 lbu r3,0x0006(r4)		Load Unit's Gender Byte
0005a40c: 00000000 nop
0005a410: 30620080 andi r2,r3,0x0080
0005a414: 10400003 beq r2,r0,0x0005a424		Branch if Unit isn't a Male
0005a418: 30620040 andi r2,r3,0x0040
0005a41c: 0801690c j 0x0005a430
0005a420: 00002821 addu r5,r0,r0		r5 = 0 (Male)
0005a424: 10400002 beq r2,r0,0x0005a430		Branch if Unit isn't a Female
0005a428: 34050003 ori r5,r0,0x0003		r5 = 3 (Monster)
0005a42c: 34050001 ori r5,r0,0x0001		r5 = 1 (Female)
0005a430: 0c016912 jal 0x0005a448		Generate Unit's Base Raw Stats
0005a434: 24840072 addiu r4,r4,0x0072		r4 = Pointer to Unit's Raw HP
0005a438: 8fbf0010 lw r31,0x0010(r29)
0005a43c: 27bd0018 addiu r29,r29,0x0018
0005a440: 03e00008 jr r31
0005a444: 00000000 nop


Return Locations

0005aa5c:  Unit Battle Initialization