diff --git a/sources/Z80.c b/sources/Z80.c index 867aa7a..bfbea78 100644 --- a/sources/Z80.c +++ b/sources/Z80.c @@ -546,8 +546,7 @@ static zuint8 ggg(Z80 *self, zuint8 offset, zuint8 value) | CF |<-----| 7 <-- 0 |<--' '----' '--------*/ case 0: - ROL(value); - cf = value & 1; + cf = (ROL(value)) & 1; break; /* rrc .----------------.