rainbow: fixed PRG RAM 4K mode issue

This commit is contained in:
contact@brokestudio.fr 2023-12-18 11:04:38 +01:00
parent 5d154b2eaa
commit 66d7a2bf8d
1 changed files with 1 additions and 1 deletions

View File

@ -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