mirror of https://github.com/stella-emu/stella.git
fixed patching ZP-RAM code (fixes #874)
This commit is contained in:
parent
e537eaffd5
commit
313b6c6c98
|
@ -365,6 +365,7 @@ bool CartridgeEnhanced::patch(uInt16 address, uInt8 value)
|
|||
// However, the patch command is special in that ignores such
|
||||
// cart restrictions
|
||||
myRAM[address & myRamMask] = value;
|
||||
mySystem->poke(address, value); // keep RIOT RAM in sync
|
||||
}
|
||||
else
|
||||
myImage[romAddressSegmentOffset(address) + (address & myBankMask)] = value;
|
||||
|
|
Loading…
Reference in New Issue