Skip to content

Commit

Permalink
rainbow: fixed PRG RAM 4K mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BrokeStudio committed Dec 18, 2023
1 parent 5d154b2 commit 66d7a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boards/rainbow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 66d7a2b

Please sign in to comment.