]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - insn_incdec_reg8.v
Semi-working, but prone to anus, keyboard driver
[fpgaboy.git] / insn_incdec_reg8.v
index 78f8b5a99dd315a645662d4ba484e59441af2d85..58582b60dc9d00cb909061e063d682a9254f2339 100644 (file)
                `INSN_reg_H:    `_H <= tmp + (opcode[0] ? 8'hFF : 8'h01);
                `INSN_reg_L:    `_L <= tmp + (opcode[0] ? 8'hFF : 8'h01);
                endcase
+               `_F <= {
+                               ((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]};
        end
 `endif
This page took 0.026721 seconds and 4 git commands to generate.