Difference between revisions of "Store Ramza's Name/Birthday/Zodiac"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Store Ramza's Name/Birthday/Zodiac 0005ab48: 27bdffe0 addiu r29,r29,0xffe0 0005ab4c: afb10014 sw r17,0x0014(r29) 0005ab50: 00808821 addu r17,r4,r0 r17 = Unit's Data Point...")
 
 
Line 53: Line 53:
 
  0005ac14: 03e00008 jr r31
 
  0005ac14: 03e00008 jr r31
 
  0005ac18: 00000000 nop
 
  0005ac18: 00000000 nop
 +
 +
 +
== Return Locations ==
 +
 +
0005aad8:  [[Unit Battle Initialization]]

Latest revision as of 13:51, 29 February 2012

Store Ramza's Name/Birthday/Zodiac
0005ab48: 27bdffe0 addiu r29,r29,0xffe0
0005ab4c: afb10014 sw r17,0x0014(r29)
0005ab50: 00808821 addu r17,r4,r0		r17 = Unit's Data Pointer
0005ab54: afbf0018 sw r31,0x0018(r29)
0005ab58: afb00010 sw r16,0x0010(r29)
0005ab5c: 92220000 lbu r2,0x0000(r17)		Load Unit's Sprite Set
0005ab60: 00000000 nop
0005ab64: 2c420004 sltiu r2,r2,0x0004
0005ab68: 10400026 beq r2,r0,0x0005ac04		Branch if Unit isn't Ramza
0005ab6c: 00008021 addu r16,r0,r0		Counter = 0
0005ab70: 0c0166bc jal 0x00059af0		Get Party Data Pointer		
0005ab74: 02002021 addu r4,r16,r0		Party ID = Counter
0005ab78: 00402021 addu r4,r2,r0		r4 = Party Data Pointer
0005ab7c: 90830001 lbu r3,0x0001(r4)		Load Unit's Party ID
0005ab80: 340200ff ori r2,r0,0x00ff
0005ab84: 1062001b beq r3,r2,0x0005abf4		Branch if Unit doesn't exist
0005ab88: 00000000 nop
0005ab8c: 90820000 lbu r2,0x0000(r4)		Load Unit's Party Sprite Set
0005ab90: 00000000 nop
0005ab94: 2c420004 sltiu r2,r2,0x0004
0005ab98: 10400017 beq r2,r0,0x0005abf8		Branch if Unit isn't Ramza
0005ab9c: 26100001 addiu r16,r16,0x0001		Counter ++
0005aba0: 2625012c addiu r5,r17,0x012c		r5 = Unit's Name
0005aba4: 34060010 ori r6,r0,0x0010		Limit = 16
0005aba8: 90820006 lbu r2,0x0006(r4)		Load Unit's Party Zodiac Sign
0005abac: 90830005 lbu r3,0x0005(r4)		Load Unit's Party Birthday
0005abb0: 00021200 sll r2,r2,0x08		Zodiac * 256
0005abb4: 00621821 addu r3,r3,r2		Full Birthday = Birthday + Zodiac  * 256
0005abb8: 96220008 lhu r2,0x0008(r17)		Load Unit's Birthday + Zodiac
0005abbc: 306301ff andi r3,r3,0x01ff		r3 = Party Birthday
0005abc0: 3042fe00 andi r2,r2,0xfe00		r2 = Unit's Zodiac
0005abc4: 00431025 or r2,r2,r3			Enable Unit's Party Birthday
0005abc8: a6220008 sh r2,0x0008(r17)		Store Unit's New Birthday
0005abcc: 90830006 lbu r3,0x0006(r4)		Load Unit's Party Zodiac Sign
0005abd0: 248400be addiu r4,r4,0x00be		r4 = Unit's Party Name
0005abd4: 30420fff andi r2,r2,0x0fff		r2 = Unit's Birthday
0005abd8: 00031902 srl r3,r3,0x04		Party Zodiac / 16
0005abdc: 00031b00 sll r3,r3,0x0c		Full Zodiac = Party Zodiac / 16 * 4096
0005abe0: 00431025 or r2,r2,r3			Enable Unit's Party Zodiac
0005abe4: 0c017895 jal 0x0005e254		Store X Byte into Y (Unit's Name)
0005abe8: a6220008 sh r2,0x0008(r17)		Store Unit's New Birthday + Zodiac
0005abec: 08016b01 j 0x0005ac04
0005abf0: 00000000 nop
0005abf4: 26100001 addiu r16,r16,0x0001		Counter ++
0005abf8: 2a020014 slti r2,r16,0x0014
0005abfc: 1440ffdc bne r2,r0,0x0005ab70		Branch if Counter < 20
0005ac00: 00000000 nop
0005ac04: 8fbf0018 lw r31,0x0018(r29)
0005ac08: 8fb10014 lw r17,0x0014(r29)
0005ac0c: 8fb00010 lw r16,0x0010(r29)
0005ac10: 27bd0020 addiu r29,r29,0x0020
0005ac14: 03e00008 jr r31
0005ac18: 00000000 nop


Return Locations

0005aad8:  Unit Battle Initialization