From 7671648fcaf42562b82db1c5e5161173cbbfabc0 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 27 Mar 2018 19:06:36 +0300 Subject: [PATCH] Simplified a function --- Core/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/memory.c b/Core/memory.c index a4edb84..6d9f766 100644 --- a/Core/memory.c +++ b/Core/memory.c @@ -41,7 +41,7 @@ static uint8_t bitwise_glitch_read(uint8_t a, uint8_t b, uint8_t c) static uint8_t bitwise_glitch_read_increase(uint8_t a, uint8_t b, uint8_t c, uint8_t d) { - return (b & a) | (b & c) | (b & d) | (a & c & d); + return (b & (a | c | d)) | (a & c & d); } void GB_trigger_oam_bug(GB_gameboy_t *gb, uint16_t address)