MIPS INSTRUCTIONS, REGISTERS AND SYSTEM CALLS 1. INTEGER and GENERAL INSTRUCTIONS Call Arg 1 Arg 2 Arg3 Description * abs rd rs put the absolute value of rs into rd add rd rs rt rd = rs + rt (with overflow) addu rd rs rt rd = rs + rt (without overflow) addi rt rs imm rt = rs + imm (with overflow) addiu rt rs imm rt = rs + imm (without overflow) and rd rs rt put rs AND rt into rd * b label branch to label beq rs rt label branch to label if (rs==rt) * beqz rs label branch to label if (rs==0) * bge rs rt label branch to label if (rs>=rt) bgez rs label branch to label if (rs>=0) bgt rs rt label branch to label if (rs>rt) bgtz rs label branch to label if (rs>0) ble rs rt label branch to label if (rs<=rt) blez rs label branch to label if (rs<=0) * blt rs rt label branch to label if (rs=rt) rd=1;else rd=0 * sgt rd rs rt if (rs>rt) rd=1;else rd=0 * sle rd rs rt if (rs<=rt) rd=1;else rd=0 sll rd rt sa rd = rt shifted left by distance sa slt rd rs rt if (rs