Skip to content

Commit

Permalink
Removed unnecessary parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
agaxia committed Apr 8, 2024
1 parent c9c9a46 commit 4389900
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sources/Z80.c
Original file line number Diff line number Diff line change
@@ -518,12 +518,12 @@ static zuint8 vvv(Z80 *self, zuint8 offset, zuint8 value)
zuint8 t = value + 1 - nf;

FLAGS = (zuint8)(
(t & SYXF) | /* SF = sign; YF = Y; XF = X */
ZF_ZERO(t) | /* ZF = zero */
((value ^ t) & HF) | /* HF = half-carry/borrow */
((value == (127 + dec)) << 2) | /* PF = overflow */
nf | /* NF = 0 (inc), 1 (dec) */
F_C); /* CF unchanged */
(t & SYXF) | /* SF = sign; YF = Y; XF = X */
ZF_ZERO(t) | /* ZF = zero */
((value ^ t) & HF) | /* HF = half-carry/borrow */
((value == 127 + dec) << 2) | /* PF = overflow */
nf | /* NF = 0 (inc), 1 (dec) */
F_C); /* CF unchanged */

return t;
}

0 comments on commit 4389900

Please sign in to comment.