Commodore64: Setting all 6510 pins to input-only now gives the proper value.
This commit is contained in:
parent
9c8124bfd1
commit
585223a814
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue