fixed the fix

This commit is contained in:
Thomas Jentzsch 2022-01-20 13:02:41 +01:00
parent 31f6432bc5
commit 0ef0636eb9
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 >= myWriteOffset)
if(address >= myWriteOffset && address < myWriteOffset + myRamSize)
{
// This is a read access to a write port!
// Reading from the write port triggers an unwanted write