From 66d7a2bf8dbce54cc5e0b511914e920612b3a79d Mon Sep 17 00:00:00 2001 From: "contact@brokestudio.fr" Date: Mon, 18 Dec 2023 11:04:38 +0100 Subject: [PATCH] rainbow: fixed PRG RAM 4K mode issue --- src/boards/rainbow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boards/rainbow.cpp b/src/boards/rainbow.cpp index c899adc97..8aa879cdc 100644 --- a/src/boards/rainbow.cpp +++ b/src/boards/rainbow.cpp @@ -1390,7 +1390,7 @@ static DECLFW(RNBW_0x6000Wr) { break; case PRG_RAM_MODE_1: // 2 x 4K - prg_idx = ((A >> 12) & 0x07) - 6; + prg_idx = ((A >> 12) & 0x07) - 5; if (((prg[prg_idx] & 0x8000) >> 14) != 0) return CartBW(A, V); // FPGA_RAM or WRAM