X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/5c33c5c001049403ac33d71bfbe0115c318c1b4c..58d068d423c00a843a9f1a761503ed685a30a27c:/insn_ret-retcc.v diff --git a/insn_ret-retcc.v b/insn_ret-retcc.v index bad4c04..dab27c3 100644 --- a/insn_ret-retcc.v +++ b/insn_ret-retcc.v @@ -5,10 +5,10 @@ 1: begin // SPECIAL CASE: cycle does NOT increase linearly with ret! `EXEC_INC_PC // cycle 1 is skipped if we are not retcc case (opcode[4:3]) - `INSN_cc_NZ: if (registers[`REG_F][7]) `EXEC_NEWCYCLE - `INSN_cc_Z: if (~registers[`REG_F][7]) `EXEC_NEWCYCLE - `INSN_cc_NC: if (registers[`REG_F][4]) `EXEC_NEWCYCLE - `INSN_cc_C: if (~registers[`REG_F][4]) `EXEC_NEWCYCLE + `INSN_cc_NZ: if (`_F[7]) `EXEC_NEWCYCLE + `INSN_cc_Z: if (~`_F[7]) `EXEC_NEWCYCLE + `INSN_cc_NC: if (`_F[4]) `EXEC_NEWCYCLE + `INSN_cc_C: if (~`_F[4]) `EXEC_NEWCYCLE endcase `EXEC_READ(`_SP) // retry the read end