LC 0xC08n.b0=1: After write-enable RAM, STA doesn't write-protect (#395)
This commit is contained in:
parent
b44d939fe2
commit
49752ff7c3
1 changed files with 2 additions and 1 deletions
|
@ -1623,7 +1623,7 @@ BYTE __stdcall MemSetPaging(WORD programcounter, WORD address, BYTE write, BYTE
|
|||
// DETERMINE THE NEW MEMORY PAGING MODE.
|
||||
if ((address >= 0x80) && (address <= 0x8F))
|
||||
{
|
||||
SetMemMode(memmode & ~(MF_BANK2 | MF_HIGHRAM | MF_WRITERAM));
|
||||
SetMemMode(memmode & ~(MF_BANK2 | MF_HIGHRAM));
|
||||
|
||||
if (!(address & 8))
|
||||
SetMemMode(memmode | MF_BANK2);
|
||||
|
@ -1633,6 +1633,7 @@ BYTE __stdcall MemSetPaging(WORD programcounter, WORD address, BYTE write, BYTE
|
|||
|
||||
if (!write) // GH#392
|
||||
{
|
||||
SetMemMode(memmode & ~(MF_WRITERAM));
|
||||
BOOL bWriteRam = (address & 1);
|
||||
if (g_bLastWriteRam && bWriteRam)
|
||||
SetMemMode(memmode | MF_WRITERAM);
|
||||
|
|
Loading…
Add table
Reference in a new issue