mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-27 07:29:30 +00:00
LC 0xC08n.b0=1: After write-enable RAM, STA doesn't write-protect (#395)
This commit is contained in:
parent
b44d939fe2
commit
49752ff7c3
|
@ -1623,7 +1623,7 @@ BYTE __stdcall MemSetPaging(WORD programcounter, WORD address, BYTE write, BYTE
|
||||||
// DETERMINE THE NEW MEMORY PAGING MODE.
|
// DETERMINE THE NEW MEMORY PAGING MODE.
|
||||||
if ((address >= 0x80) && (address <= 0x8F))
|
if ((address >= 0x80) && (address <= 0x8F))
|
||||||
{
|
{
|
||||||
SetMemMode(memmode & ~(MF_BANK2 | MF_HIGHRAM | MF_WRITERAM));
|
SetMemMode(memmode & ~(MF_BANK2 | MF_HIGHRAM));
|
||||||
|
|
||||||
if (!(address & 8))
|
if (!(address & 8))
|
||||||
SetMemMode(memmode | MF_BANK2);
|
SetMemMode(memmode | MF_BANK2);
|
||||||
|
@ -1633,6 +1633,7 @@ BYTE __stdcall MemSetPaging(WORD programcounter, WORD address, BYTE write, BYTE
|
||||||
|
|
||||||
if (!write) // GH#392
|
if (!write) // GH#392
|
||||||
{
|
{
|
||||||
|
SetMemMode(memmode & ~(MF_WRITERAM));
|
||||||
BOOL bWriteRam = (address & 1);
|
BOOL bWriteRam = (address & 1);
|
||||||
if (g_bLastWriteRam && bWriteRam)
|
if (g_bLastWriteRam && bWriteRam)
|
||||||
SetMemMode(memmode | MF_WRITERAM);
|
SetMemMode(memmode | MF_WRITERAM);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user