X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/e7fe9dc201afb96f401fb2d3cf5aa19aa7e8e796..62316b58608c6d4333cc301b9906e13d143ba36e:/core/insn_alu8.v diff --git a/core/insn_alu8.v b/core/insn_alu8.v index 1283a9c..26fc77e 100644 --- a/core/insn_alu8.v +++ b/core/insn_alu8.v @@ -69,21 +69,21 @@ end `INSN_alu_AND: begin `_A <= `_A & tmp; - `_F <= { /* Z */ ((`_A & tmp) == 0) ? 1'b1 : 1'b0, + `_F <= { /* Z */ ((`_A & tmp) == 8'b0) ? 1'b1 : 1'b0, 3'b010, `_F[3:0] }; end `INSN_alu_OR: begin `_A <= `_A | tmp; - `_F <= { /* Z */ ((`_A | tmp) == 0) ? 1'b1 : 1'b0, + `_F <= { /* Z */ ((`_A | tmp) == 8'b0) ? 1'b1 : 1'b0, 3'b000, `_F[3:0] }; end `INSN_alu_XOR: begin `_A <= `_A ^ tmp; - `_F <= { /* Z */ ((`_A ^ tmp) == 0) ? 1'b1 : 1'b0, + `_F <= { /* Z */ ((`_A ^ tmp) == 8'b0) ? 1'b1 : 1'b0, 3'b000, `_F[3:0] };