hp-saturn/opcodes/80[CD]n_C_and_P_n.v
2019-02-10 09:02:24 +01:00

23 lines
427 B
Verilog

/******************************************************************************
* 80Cn C=P n
*
*
*/
`include "decstates.v"
`DEC_C_EQ_P_N: begin
C[nb_in*4+:4] <= P;
decstate <= `DEC_START;
`ifdef SIM
$display("%05h C=P\t%h", inst_start_PC, nb_in);
`endif
end
`DEC_P_EQ_C_N: begin
P <= C[nb_in*4+:4];
decstate <= `DEC_START;
`ifdef SIM
$display("%05h P=C\t%h", inst_start_PC, nb_in);
`endif
end