Updated Z80 CPU to fix interrupts etc...
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Core.Memory
|
||||
if (address < 0xC000)
|
||||
{
|
||||
// Slot 2 (Or SRAM)
|
||||
if (SramUsed && (_mapperControl & 0x08) != 0)
|
||||
if ((_mapperControl & 0x08) != 0)
|
||||
return _cartridgeRam[address - 0x8000];
|
||||
else
|
||||
return _cartridgeRom[(_romBank2 * 0x4000) + (address - 0x8000)];
|
||||
@@ -80,7 +80,7 @@ namespace Core.Memory
|
||||
|
||||
if (address < 0xC000)
|
||||
{
|
||||
if (SramUsed && (_mapperControl & 0x08) != 0)
|
||||
if ((_mapperControl & 0x08) != 0)
|
||||
_cartridgeRam[address - 0x8000] = value;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user