mirror of https://github.com/stella-emu/stella.git
fixed the fix
This commit is contained in:
parent
31f6432bc5
commit
0ef0636eb9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue