X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/5c33c5c001049403ac33d71bfbe0115c318c1b4c..7254c55153659ca2234262261101e1fe1d3aab78:/insn_push_reg.v?ds=sidebyside diff --git a/insn_push_reg.v b/insn_push_reg.v index afec70a..6b789e5 100644 --- a/insn_push_reg.v +++ b/insn_push_reg.v @@ -8,10 +8,10 @@ `INSN_stack_HL: `EXEC_WRITE(`_SP - 1, `_H) endcase 1: case (opcode[5:4]) - `INSN_stack_AF: `EXEC_WRITE(`_SP - 1, `_F) - `INSN_stack_BC: `EXEC_WRITE(`_SP - 1, `_C) - `INSN_stack_DE: `EXEC_WRITE(`_SP - 1, `_E) - `INSN_stack_HL: `EXEC_WRITE(`_SP - 1, `_L) + `INSN_stack_AF: `EXEC_WRITE(`_SP - 2, `_F) + `INSN_stack_BC: `EXEC_WRITE(`_SP - 2, `_C) + `INSN_stack_DE: `EXEC_WRITE(`_SP - 2, `_E) + `INSN_stack_HL: `EXEC_WRITE(`_SP - 2, `_L) endcase 2: begin /* Twiddle thumbs. */ end 3: begin