From d516def7cb9df82a9d1c86ed2c570bcabe8ef362 Mon Sep 17 00:00:00 2001 From: redcode Date: Sat, 4 Aug 2018 14:32:08 +0200 Subject: [PATCH] Optimization. --- sources/Z80.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/Z80.c b/sources/Z80.c index 555d69c..69b8098 100644 --- a/sources/Z80.c +++ b/sources/Z80.c @@ -581,9 +581,9 @@ static Z_INLINE zuint8 _m______(Z80 *object, zuint8 offset, zuint8 value) { zuint8 t = object->data.array_uint8[offset]; - return (t & 64) - ? value | (zuint8)(1 << ((t & 56) >> 3)) /* SET */ - : value & ~((zuint8)(1 << ((t & 56) >> 3))); /* RES */ + return (zuint8)((t & 64) + ? value | (1 << ((t & 56) >> 3)) /* SET */ + : value & ~(1 << ((t & 56) >> 3))); /* RES */ }