Difference between revisions of "WLDCORE Get Party Data"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
# Parameters:
 +
#  r4: partyid to get the pointer for
 +
 
  # Return value:
 
  # Return value:
 
  #  r2: pointer to unit party data
 
  #  r2: pointer to unit party data
+
 
0012554c: 00042080 sll r4,r4,0x02              # prep word pointer
 
 
  00069e38: 27bdffe8 addiu r29,r29,0xffe8        #  
 
  00069e38: 27bdffe8 addiu r29,r29,0xffe8        #  
 
  00069e3c: afbf0010 sw r31,0x0010(r29)          #  
 
  00069e3c: afbf0010 sw r31,0x0010(r29)          #  
  00069e40: 0c0166bc jal 0x00059af0              # [[Get Party Data Pointer]]
+
  00069e40: 0c0166bc jal 0x00059af0              # [[Get Party Data Pointer]](partyid)
 
  00069e44: 00000000 nop                        #  
 
  00069e44: 00000000 nop                        #  
 
  00069e48: 8fbf0010 lw r31,0x0010(r29)          #  
 
  00069e48: 8fbf0010 lw r31,0x0010(r29)          #  

Revision as of 03:39, 29 September 2024

# Parameters:
#   r4: partyid to get the pointer for

# Return value:
#   r2: pointer to unit party data
00069e38: 27bdffe8 addiu r29,r29,0xffe8        # 
00069e3c: afbf0010 sw r31,0x0010(r29)          # 
00069e40: 0c0166bc jal 0x00059af0              # Get Party Data Pointer(partyid)
00069e44: 00000000 nop                         # 
00069e48: 8fbf0010 lw r31,0x0010(r29)          # 
00069e4c: 27bd0018 addiu r29,r29,0x0018        # 
00069e50: 03e00008 jr r31                      # 
00069e54: 00000000 nop                         #