package de.czempin.nicnac16.simulator;

import de.czempin.nicnac16.assembler.Instruction;

public class Decoder {

	public static Instruction decode(int opcode) {
		return Instruction.ADD;
	}

}

@@ -162,31 +162,116 @@
 %7B%0A%09%09
-return Instruction.ADD;
+switch (opcode) %7B%0A%09%09case 0b0110:%0A%0A%09%09%09return Instruction.ADD;%0A%09%09default:%0A%09%09%09throw new RuntimeException();%0A%09%09%7D
 %0A%09%7D%0A

handle unknowns