mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-24 23:31:07 +00:00
Fix language card switch behaviour - fixes #400
This commit is contained in:
parent
4325900b2d
commit
a2f015882e
@ -1631,18 +1631,18 @@ BYTE __stdcall MemSetPaging(WORD programcounter, WORD address, BYTE write, BYTE
|
|||||||
if (((address & 2) >> 1) == (address & 1))
|
if (((address & 2) >> 1) == (address & 1))
|
||||||
SetMemMode(memmode | MF_HIGHRAM);
|
SetMemMode(memmode | MF_HIGHRAM);
|
||||||
|
|
||||||
if (!write) // GH#392
|
if (address & 1) // GH#392
|
||||||
{
|
{
|
||||||
SetMemMode(memmode & ~(MF_WRITERAM));
|
if (!write && g_bLastWriteRam)
|
||||||
BOOL bWriteRam = (address & 1);
|
{
|
||||||
if (g_bLastWriteRam && bWriteRam)
|
SetMemMode(memmode | MF_WRITERAM); // UTAIIe:5-23
|
||||||
SetMemMode(memmode | MF_WRITERAM);
|
}
|
||||||
g_bLastWriteRam = bWriteRam;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_bLastWriteRam = 0;
|
SetMemMode(memmode & ~(MF_WRITERAM)); // UTAIIe:5-23
|
||||||
}
|
}
|
||||||
|
g_bLastWriteRam = (address & 1) && (!write); // UTAIIe:5-23
|
||||||
}
|
}
|
||||||
else if (!IS_APPLE2)
|
else if (!IS_APPLE2)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user