fix for RAM writes to read port commit (offsets reversed)

This commit is contained in:
thrust26 2019-09-15 11:36:46 +02:00
parent bdaf55bb1c
commit 15426a31e0
6 changed files with 6 additions and 6 deletions

View File

@ -83,7 +83,7 @@ uInt8 Cartridge4KSC::peek(uInt16 address)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool Cartridge4KSC::poke(uInt16 address, uInt8 value)
{
if(address & 0x080)
if (!(address & 0x080))
{
pokeRAM(myRAM[address & 0x007F], address, value);
return true;

View File

@ -98,7 +98,7 @@ bool CartridgeBFSC::poke(uInt16 address, uInt8 value)
return false;
}
if(address & 0x080)
if (!(address & 0x080))
{
pokeRAM(myRAM[address & 0x007F], pokeAddress, value);
return true;

View File

@ -98,7 +98,7 @@ bool CartridgeEFSC::poke(uInt16 address, uInt8 value)
return false;
}
if(address & 0x080)
if (!(address & 0x080))
{
pokeRAM(myRAM[address & 0x007F], pokeAddress, value);
return true;

View File

@ -98,7 +98,7 @@ bool CartridgeF4SC::poke(uInt16 address, uInt8 value)
return false;
}
if(address & 0x080)
if(!(address & 0x080))
{
pokeRAM(myRAM[address & 0x007F], pokeAddress, value);
return true;

View File

@ -138,7 +138,7 @@ bool CartridgeF6SC::poke(uInt16 address, uInt8 value)
break;
}
if(address & 0x080)
if(!(address & 0x080))
{
pokeRAM(myRAM[address & 0x007F], address, value);
return true;

View File

@ -118,7 +118,7 @@ bool CartridgeF8SC::poke(uInt16 address, uInt8 value)
break;
}
if(address & 0x080)
if (!(address & 0x080))
{
pokeRAM(myRAM[address & 0x007F], address, value);
return true;