hp-saturn/opcodes/03_RTNCC.v

22 lines
391 B
Coq
Raw Normal View History

2019-02-07 22:54:06 +01:00
/******************************************************************************
* 03 RTNCC
*
*
*/
2019-02-08 00:02:55 +01:00
`include "decstates.v"
// `DEC_RTNCC:
begin
2019-02-08 00:02:55 +01:00
Carry <= 0;
new_PC <= RSTK[rstk_ptr];
2019-02-08 00:02:55 +01:00
RSTK[rstk_ptr] <= 0;
rstk_ptr <= rstk_ptr - 1;
bus_load_pc <= 1;
// execute_cycle <= 0;
2019-02-08 00:02:55 +01:00
decstate <= `DEC_START;
`ifdef SIM
$display("%05h RTNCC", saved_PC);
`endif
end