package hatelace.instructions; import hatelace.*; public class Halt implements Instruction { /** Halts the CPU */ public Halt(){}; public void execute(Memory memory, ProgramCounter PC) { PC.halt(); } public String opcode() { return "HLT"; } public Object[] operands() { return new Object[] {}; } public String toString() { return this.opcode(); } }