fixed #864 (SC-RAM reads from write ports)

This commit is contained in:
Thomas Jentzsch 2022-01-20 12:21:53 +01:00
parent db8ae212ef
commit 31f6432bc5
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ uInt8 CartridgeEnhanced::peek(uInt16 address)
address &= ROM_MASK;
// Write port is e.g. at 0xF000 - 0xF07F (128 bytes)
if(address < myReadOffset + myRamSize && address >= myReadOffset)
if(address < myReadOffset + myRamSize && address >= myWriteOffset)
{
// This is a read access to a write port!
// Reading from the write port triggers an unwanted write