Mercurial > repos > blastem
diff sega_mapper.c @ 2496:187bc857a76a default tip
Fix bug in MED mapper protection bit implementation
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 28 Apr 2024 23:33:11 -0700 |
parents | b9cd3c64652d |
children |
line wrap: on
line diff
--- 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; }