]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - core/insn_pop_reg.v
Add list of broken tests
[fpgaboy.git] / core / insn_pop_reg.v
index 5a7da08fcf6fb4cefe31fe26d5a48947089a45c9..dbe601c363888955dfb45d2b27a741ec0c48a138 100644 (file)
@@ -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;
This page took 0.027755 seconds and 4 git commands to generate.