]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - core/insn_halt.v
IP
[fpgaboy.git] / core / insn_halt.v
index 4d2573fb91c3f9c80e2f29e451c42e7cf64835b7..535f7fc168c27a5c26d069293a9084ccee6ef1a0 100644 (file)
@@ -1,12 +1,16 @@
+`define INSN_HALT              9'b001110110
+`define INSN_STOP              9'b000010000
+
 `ifdef EXECUTE
 `ifdef EXECUTE
-       `INSN_HALT: begin
+       `INSN_HALT,`INSN_STOP: begin
                `EXEC_NEWCYCLE
                `EXEC_NEWCYCLE
+               `EXEC_INC_PC
                /* XXX Interrupts needed for HALT. */
        end
 `endif
 
 `ifdef WRITEBACK
                /* XXX Interrupts needed for HALT. */
        end
 `endif
 
 `ifdef WRITEBACK
-       `INSN_HALT: begin
+       `INSN_HALT,`INSN_STOP: begin
                /* Nothing needs happen here. */
                /* XXX Interrupts needed for HALT. */
        end
                /* Nothing needs happen here. */
                /* XXX Interrupts needed for HALT. */
        end
This page took 0.027221 seconds and 4 git commands to generate.