mirror of https://github.com/stella-emu/stella.git
fixed #864 (SC-RAM reads from write ports)
This commit is contained in:
parent
db8ae212ef
commit
31f6432bc5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue