Does Misc Unit Exist With ID
Jump to navigation
Jump to search
# ROUTINE: DOES MISC UNIT EXIST WITH ID # Parameters: # r4 = (p_UnitMiscID) Unit misc data ID # Returns: # r2 = 1, if misc unit data exists for this ID # 0, otherwise 8008cbb4: 27bdffe8 addiu r29,r29,-0x0018 8008cbb8: afbf0010 sw r31,0x0010(r29) 8008cbbc: 0c01e9b9 jal 0x8007a6e4 # miscUnit = Get Unit Misc Data Pointer (p_UnitMiscID); 8008cbc0: 3084ffff andi r4,r4,0xffff 8008cbc4: 0002102b sltu r2,r0,r2 # return (miscUnit >= 0) ? 1 : 0; 8008cbc8: 8fbf0010 lw r31,0x0010(r29) 8008cbcc: 27bd0018 addiu r29,r29,0x0018 8008cbd0: 03e00008 jr r31 8008cbd4: 00000000 nop