mirror of https://github.com/stella-emu/stella.git
fixed read access to write port if write port uses upper address range (fixes #878)
This commit is contained in:
parent
81556892fa
commit
d658d72871
|
@ -178,7 +178,7 @@ uInt8 CartridgeEnhanced::peek(uInt16 address)
|
|||
{
|
||||
// This is a read access to a write port!
|
||||
// Reading from the write port triggers an unwanted write
|
||||
return peekRAM(myRAM[address], peekAddress);
|
||||
return peekRAM(myRAM[address - myWriteOffset], peekAddress);
|
||||
}
|
||||
|
||||
return myImage[romAddressSegmentOffset(peekAddress) + (peekAddress & myBankMask)];
|
||||
|
|
Loading…
Reference in New Issue