Fixed 128k and +2 memory paging bug
This commit is contained in:
parent
7a36f913ec
commit
760ae8edf0
|
@ -251,6 +251,8 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
ser.Sync("PagingDisabled", ref PagingDisabled);
|
||||
ser.Sync("SpecialPagingMode", ref SpecialPagingMode);
|
||||
ser.Sync("PagingConfiguration", ref PagingConfiguration);
|
||||
//ser.Sync("ROMhigh", ref ROMhigh);
|
||||
//ser.Sync("ROMlow", ref ROMlow);
|
||||
|
||||
RomData.SyncState(ser);
|
||||
KeyboardDevice.SyncState(ser);
|
||||
|
|
|
@ -167,8 +167,8 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
// paging
|
||||
if (port == 0x7ffd)
|
||||
{
|
||||
if (PagingDisabled)
|
||||
return;
|
||||
//if (PagingDisabled)
|
||||
//return;
|
||||
|
||||
// Bits 0, 1, 2 select the RAM page
|
||||
var rp = value & 0x07;
|
||||
|
@ -178,6 +178,15 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
// bit 3 controls shadow screen
|
||||
SHADOWPaged = bits[3];
|
||||
|
||||
if (SHADOWPaged == false)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// ROM page
|
||||
if (bits[4])
|
||||
{
|
||||
|
@ -192,7 +201,6 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
|
||||
// Bit 5 set signifies that paging is disabled until next reboot
|
||||
PagingDisabled = bits[5];
|
||||
return;
|
||||
}
|
||||
|
||||
// Check whether the low bit is reset
|
||||
|
|
Loading…
Reference in New Issue