commodore64: fix cartridge map 101X (LHGE)

This commit is contained in:
saxxonpike 2012-11-10 07:25:58 +00:00
parent 76f3c08225
commit 33f97f7fee
1 changed files with 3 additions and 2 deletions

View File

@ -349,7 +349,7 @@ namespace BizHawk.Emulation.Computers.Commodore64
layout.MemD000 = ioEnable ? MemoryDesignation.IO : MemoryDesignation.Character;
layout.MemE000 = MemoryDesignation.Kernal;
}
else if (loRom && !hiRom && exRomPin)
else if (loRom && !hiRom && gamePin)
{
layout.Mem1000 = MemoryDesignation.RAM;
layout.Mem8000 = MemoryDesignation.RAM;
@ -433,7 +433,8 @@ namespace BizHawk.Emulation.Computers.Commodore64
else
{
int baseAddr = 0;
switch (cia1PortA.Data & 0x03)
int videoOffsetIndex = cia1PortA.Data & 0x03;
switch (videoOffsetIndex)
{
case 0:
baseAddr = 0xC000 | addr;