X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/b057a5d6e6db6db06ae33703ca72cd235eec91d6..e4fd7c1673a5a587a2eb8d4c2b8e22d921b949b9:/core/insn_pop_reg.v diff --git a/core/insn_pop_reg.v b/core/insn_pop_reg.v index 5a7da08..dbe601c 100644 --- a/core/insn_pop_reg.v +++ b/core/insn_pop_reg.v @@ -1,3 +1,5 @@ +`define INSN_POP_reg 9'b011xx0001 + `ifdef EXECUTE `INSN_POP_reg: begin /* POP is 12 cycles! */ case (cycle) @@ -17,7 +19,7 @@ 0: begin end 1: begin case (opcode[5:4]) - `INSN_stack_AF: `_F <= rdata; + `INSN_stack_AF: `_F <= rdata & 8'hF0; `INSN_stack_BC: `_C <= rdata; `INSN_stack_DE: `_E <= rdata; `INSN_stack_HL: `_L <= rdata;