Fix POP AF test (from blargg's CPU tests)
[fpgaboy.git] / core / insn_pop_reg.v
index 55d12ec..dbe601c 100644 (file)
@@ -19,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.018238 seconds and 4 git commands to generate.