Commodore64: Setting all 6510 pins to input-only now gives the proper value.

This commit is contained in:
saxxonpike 2013-08-13 19:52:03 +00:00
parent 9c8124bfd1
commit 585223a814
2 changed files with 6 additions and 3 deletions

View File

@ -74,7 +74,10 @@ namespace BizHawk.Emulation.Computers.Commodore64
byte Cpu_ReadPort()
{
return 0xFF;
byte data = 0x1F;
if (!cassPort.Sense)
data &= 0xEF;
return data;
}
bool Cpu_ReadRDY()

View File

@ -70,7 +70,7 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS
// configure data port defaults
port = new LatchedPort();
port.Direction = 0x00;
port.Latch = 0x1F;
port.Latch = 0xFF;
// NMI is high on startup (todo: verify)
pinNMILast = true;
@ -152,7 +152,7 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS
{
get
{
return port.ReadOutput();
return port.ReadInput(ReadPort());
}
set
{