mirror of https://github.com/stella-emu/stella.git
3E: improve debugger handling for writes to ROM space.
This commit is contained in:
parent
b93a07dcfa
commit
29fcc9644f
|
@ -115,17 +115,14 @@ bool Cartridge3E::poke(uInt16 address, uInt8 value)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (myCurrentBank < 256)
|
if(address & 0x0400 && myCurrentBank >= 256)
|
||||||
return false;
|
|
||||||
|
|
||||||
if(address & 0x0400)
|
|
||||||
{
|
{
|
||||||
pokeRAM(myRAM[(address & 0x03FF) + ((myCurrentBank - 256) << 10)], pokeAddress, value);
|
pokeRAM(myRAM[(address & 0x03FF) + ((myCurrentBank - 256) << 10)], pokeAddress, value);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Writing to the read port should be ignored, but trigger a break if option enabled
|
// Writing to the read port or to ROM should be ignored, but trigger a break if option enabled
|
||||||
uInt8 dummy;
|
uInt8 dummy;
|
||||||
|
|
||||||
pokeRAM(dummy, pokeAddress, value);
|
pokeRAM(dummy, pokeAddress, value);
|
||||||
|
|
Loading…
Reference in New Issue