X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/3db3fc270d517ca76518b47950f5240990e84cc5..6d070aeeba66499d17bd9abb9c5dfbb1317bf1c5:/insn_incdec_reg8.v diff --git a/insn_incdec_reg8.v b/insn_incdec_reg8.v index 61464f6..58582b6 100644 --- a/insn_incdec_reg8.v +++ b/insn_incdec_reg8.v @@ -26,7 +26,7 @@ `INSN_reg_L: `_L <= tmp + (opcode[0] ? 8'hFF : 8'h01); endcase `_F <= { - (tmp + (opcode[0] ? 8'hFF : 8'h01)) ? 1'b0 : 1'b1, + ((tmp + (opcode[0] ? 8'hFF : 8'h01)) == 8'h00) ? 1'b1 : 1'b0, 1'b0, (({1'b0,tmp[3:0]} + (opcode[0] ? 5'h1F : 5'h01)) >> 4) ? 1'b1 : 1'b0, `_F[4:0]};