fixed patching ZP-RAM code (fixes #874)

This commit is contained in:
Thomas Jentzsch 2022-02-17 11:56:53 +01:00
parent e537eaffd5
commit 313b6c6c98
1 changed files with 1 additions and 0 deletions

View File

@ -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;