# HG changeset patch # User Michael Pavone # Date 1714372391 25200 # Node ID 187bc857a76a454f8249a0257d101d314ad02e66 # Parent d437b8e8ba626b00a3eb4a533728ea0b815fa4ad Fix bug in MED mapper protection bit implementation diff -r d437b8e8ba62 -r 187bc857a76a sega_mapper.c --- a/sega_mapper.c Sun Apr 28 23:22:37 2024 -0700 +++ b/sega_mapper.c Sun Apr 28 23:33:11 2024 -0700 @@ -212,7 +212,7 @@ address >>= 1; if (!address) { if (gen->mapper_type == MAPPER_SEGA_MED_V2) { - if (!value & 0x8000) { + if (!(value & 0x8000)) { //writes without protection bit set are ignored return context; }