From 79c533ffdc6065af5c3d29f19c37c300a4240b47 Mon Sep 17 00:00:00 2001 From: negativeExponent <54053706+negativeExponent@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:27:52 +0800 Subject: [PATCH] unrom512.cpp: Expand support for PRG ROM size upto 4M at least 1 cart in Mapper30 has 2MB. current implementation only allows carts of upto 512K --- src/boards/unrom512.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boards/unrom512.cpp b/src/boards/unrom512.cpp index f2599f3a..b28ce7fc 100644 --- a/src/boards/unrom512.cpp +++ b/src/boards/unrom512.cpp @@ -55,9 +55,9 @@ static void UNROM512_Sync() { chip = !flash_id_mode ? FLASH_CHIP : CFI_CHIP; else chip = ROM_CHIP; - setprg16r(chip, 0x8000, latche & 0b11111); + setprg16r(chip, 0x8000, latche); setprg16r(chip, 0xc000, ~0); - setchr8((latche >> 5) & 0b11); + setchr8(latche >> 5); setmirror(MI_0 + ((latche >> 7) & 1)); }