private String result(int i) {
		switch(sim40.memory[i]){

		case 1: /* print */
			return (""+sim40.memory[Simulator.ACCUMULATOR_ADDRESS]);

		case 2: /* printch */
			return (""+(char)sim40.memory[Simulator.ACCUMULATOR_ADDRESS]);

		case 3: /* printb */
			return (Integer.toBinaryString(sim40.memory[Simulator.ACCUMULATOR_ADDRESS]));
		}

		return "";
	}