Skip to content

Commit

Permalink
fixed a bug where the combination of RAM banks and PlusROM would brea…
Browse files Browse the repository at this point in the history
…k a game (this should fix #1058)
  • Loading branch information
thrust26 committed Dec 30, 2024
1 parent 907f687 commit 86a5454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

* Added developer option for disabling PlusROM support (TODO: Doc)

* Enhanced PAL-60 detection, searches for signature (e.g. PAL60) in ROM

* Enhanced VSYNC emulation, considers VBLANK now too

6.7.1 to 7.0 (October 5, 2024)

* Enhanced ROM launcher to allow multiple images per ROM.
Expand Down
2 changes: 1 addition & 1 deletion src/emucore/CartEnhanced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ uInt8 CartridgeEnhanced::peek(uInt16 address)
address &= ROM_MASK;

// Write port is e.g. at 0xF000 - 0xF07F (128 bytes)
if(address >= myWriteOffset && address < myWriteOffset + myRamSize)
if(!myRamBankCount && address >= myWriteOffset && address < myWriteOffset + myRamSize)
{
// This is a read access to a write port!
// Reading from the write port triggers an unwanted write
Expand Down

0 comments on commit 86a5454

Please sign in to comment.