]> Joshua Wise's Git repositories - fpgaboy.git/blame - core/insn_vop_intr.v
Merge branch 'master' of lu@anyus.res.cmu.edu:/storage/fpga/FPGABoy
[fpgaboy.git] / core / insn_vop_intr.v
CommitLineData
df770340
JW
1`ifdef EXECUTE
2 `INSN_VOP_INTR: begin
3 case (cycle)
5c33c5c0
JW
4 0: `EXEC_WRITE(`_SP - 1, `_PCH)
5 1: `EXEC_WRITE(`_SP - 2, `_PCL)
d1b40456
JW
6 2: begin
7 irqack <= 1;
8 `EXEC_NEWCYCLE
9 end
df770340
JW
10 endcase
11 end
12`endif
13
14`ifdef WRITEBACK
15 `INSN_VOP_INTR: begin
16 case (cycle)
17 0: begin end
18 1: begin end
19 2: begin
20 ie <= 0;
5509558d 21 `_PC <= {8'b0, jaddr};
d1b40456 22 irqack <= 0; // Must be at the same time as we latch jaddr, or we race!
5509558d 23 `_SP <= `_SP - 2;
df770340
JW
24 end
25 endcase
26 end
27`endif
This page took 0.050028 seconds and 4 git commands to generate.