public static int computeArithmetic(Instruction instruction) {
		if (instruction.operation.equals("add"))
			return instruction.Rb.getValue() + instruction.Rc.getValue();
		if (instruction.operation.equals("addi")) {
			System.out.println(instruction.Rb.getValue() + instruction.imm
					+ "ss");
			return instruction.Rb.getValue() + instruction.imm;
		}
		if (instruction.operation.equals("sub"))
			return instruction.Rb.getValue() - instruction.Rc.getValue();
		if (instruction.operation.equals("mul"))
			return instruction.Rb.getValue() * instruction.Rc.getValue();
		if (instruction.operation.equals("nand")) {
			// return nand(instruction.Rb.getValue(),
			// instruction.Rc.getValue());
		}
		if (instruction.operation.equals("lw")) {
			return instruction.imm + instruction.Rb.getValue();
		}
		return 0;

	}