0x8ca48
Jump to navigation
Jump to search
# Parameters: # r4 = (unitMiscID) Unit Misc ID 8008ca48: 27bdffe8 addiu r29,r29,-0x0018 8008ca4c: afbf0010 sw r31,0x0010(r29) 8008ca50: 0c01e9b9 jal 0x8007a6e4 # miscData = Get Unit Misc Data Pointer (unitMiscID); 8008ca54: 3084ffff andi r4,r4,0xffff 8008ca58: 14400004 bne r2,r0,0x8008ca6c # if (miscData != null) { 8008ca5c: 24420060 addiu r2,r2,0x0060 # return &miscData.X; // Returns pointer to coordinate data # } else { 8008ca60: 0c01128d jal 0x80044a34 # ? 0x44a34 (12); // Sets *0x80044a00 = 0. Parameter is ignored. 8008ca64: 3404000c ori r4,r0,0x000c 8008ca68: 00001021 addu r2,r0,r0 return 0; # } 8008ca6c: 8fbf0010 lw r31,0x0010(r29) 8008ca70: 27bd0018 addiu r29,r29,0x0018 8008ca74: 03e00008 jr r31 8008ca78: 00000000 nop