changeset 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 d437b8e8ba62
children
files sega_mapper.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 			}