]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - core/insn_vop_intr.v
Move the core to core/
[fpgaboy.git] / core / insn_vop_intr.v
diff --git a/core/insn_vop_intr.v b/core/insn_vop_intr.v
new file mode 100644 (file)
index 0000000..ce0bcf8
--- /dev/null
@@ -0,0 +1,27 @@
+`ifdef EXECUTE
+       `INSN_VOP_INTR: begin
+               case (cycle)
+               0:      `EXEC_WRITE(`_SP - 1, `_PCH)
+               1:      `EXEC_WRITE(`_SP - 2, `_PCL)
+               2:      begin
+                               irqack <= 1;
+                               `EXEC_NEWCYCLE
+                       end
+               endcase
+       end
+`endif
+
+`ifdef WRITEBACK
+       `INSN_VOP_INTR: begin
+               case (cycle)
+               0:      begin end
+               1:      begin end
+               2:      begin
+                               ie <= 0;
+                               `_PC <= {8'b0, jaddr};
+                               irqack <= 0;    // Must be at the same time as we latch jaddr, or we race!
+                               `_SP <= `_SP - 2;
+                       end
+               endcase
+       end
+`endif
This page took 0.02406 seconds and 4 git commands to generate.