mirror of https://github.com/stella-emu/stella.git
fix for RAM writes to read port commit (offsets reversed)
This commit is contained in:
parent
bdaf55bb1c
commit
15426a31e0
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue