1 /* 2 * Generic 32-bit unary operation. Provide an "instr" line that 3 * specifies an instruction that performs "result = op a0". 4 * This could be a MIPS instruction or a function call. 5 * 6 * for: int-to-float, float-to-int 7 */ 8 /* unop vA, vB */ 9 GET_OPB(a3) # a3 <- B 10 GET_OPA4(rOBJ) # t0 <- A+ 11 GET_VREG_F(fa0, a3) 12 FETCH_ADVANCE_INST(1) # advance rPC, load rINST 13 $instr 14 15.L${opcode}_set_vreg_f: 16 SET_VREG_F(fv0, rOBJ) 17 GET_INST_OPCODE(t1) # extract opcode from rINST 18 GOTO_OPCODE(t1) # jump to next instruction 19