X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/5c33c5c001049403ac33d71bfbe0115c318c1b4c..dffa0b2ef4ae0f50950b4565f7409e615f4c5ce2:/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