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 04d1a8b commit d291059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/NES/Mappers/Homebrew/Rainbow.h
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ class Rainbow : public BaseMapper
break;
case PRG_RAM_MODE_1:
// 2 x 4K
prgIdx = ((addr >> 12) & 0x07) - 6;
prgIdx = ((addr >> 12) & 0x07) - 5;
if(((_prg[prgIdx] & 0x8000) >> 14) != 0)
return WritePrgRam(addr, value); // FPGA_RAM or WRAM

Expand Down

0 comments on commit d291059

Please sign in to comment.