X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/eaec80f24007825c7abba2affd76f74d520ce4cd..6c1f3ad98ccd156be88c4011206605d127abee74:/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] };