Store Map Max Coordinates

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: STORE MAP MAX COORDINATES
#   Parameters:
#       r4 = (destPtr) Destination pointer for values to be stored

8008df48: 27bdffe8 addiu r29,r29,-0x0018
8008df4c: 3c05800e lui r5,0x800e
8008df50: 90a54e9c lbu r5,0x4e9c(r5)                #   MapMaxX
8008df54: 3c07800e lui r7,0x800e
8008df58: 90e74ea0 lbu r7,0x4ea0(r7)                #   MapMaxY
8008df5c: afbf0010 sw r31,0x0010(r29)
8008df60: 0c010ac7 jal 0x80042b1c                   #   Store Three Consecutive Halfwords (destPtr, MapMaxX, 0, MapMaxY);
8008df64: 00003021 addu r6,r0,r0                    #   0
8008df68: 8fbf0010 lw r31,0x0010(r29)
8008df6c: 27bd0018 addiu r29,r29,0x0018
8008df70: 03e00008 jr r31
8008df74: 00000000 nop