mirror of https://github.com/stella-emu/stella.git
3E: fix invalid access on write to ROM.
This commit is contained in:
parent
17835be278
commit
b93a07dcfa
|
@ -115,6 +115,9 @@ bool Cartridge3E::poke(uInt16 address, uInt8 value)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (myCurrentBank < 256)
|
||||
return false;
|
||||
|
||||
if(address & 0x0400)
|
||||
{
|
||||
pokeRAM(myRAM[(address & 0x03FF) + ((myCurrentBank - 256) << 10)], pokeAddress, value);
|
||||
|
|
Loading…
Reference in New Issue