commodore64: 6510 hard reset now loads startup vector AFTER banks are initialized, more carts start up now
This commit is contained in:
parent
d951094e6d
commit
d734d0f44f
|
@ -192,8 +192,8 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
||||||
cia0.HardReset();
|
cia0.HardReset();
|
||||||
cia1.HardReset();
|
cia1.HardReset();
|
||||||
colorRam.HardReset();
|
colorRam.HardReset();
|
||||||
cpu.HardReset();
|
|
||||||
pla.HardReset();
|
pla.HardReset();
|
||||||
|
cpu.HardReset();
|
||||||
ram.HardReset();
|
ram.HardReset();
|
||||||
sid.HardReset();
|
sid.HardReset();
|
||||||
vic.HardReset();
|
vic.HardReset();
|
||||||
|
|
|
@ -42,8 +42,8 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS
|
||||||
cpu.WriteMemory = Write;
|
cpu.WriteMemory = Write;
|
||||||
|
|
||||||
// configure data port defaults
|
// configure data port defaults
|
||||||
portDir = 0xEF;
|
portDir = 0x00;
|
||||||
SetPortData(0x37);
|
SetPortData(0x1F);
|
||||||
|
|
||||||
// todo: verify this value (I only know that unconnected bits fade after a number of cycles)
|
// todo: verify this value (I only know that unconnected bits fade after a number of cycles)
|
||||||
unusedPinTTLCycles = 40;
|
unusedPinTTLCycles = 40;
|
||||||
|
@ -181,7 +181,6 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
byte val = Port.CPUWrite(PortData, value, portDir);
|
byte val = Port.CPUWrite(PortData, value, portDir);
|
||||||
Console.WriteLine("CPU write DTA: val=" + C64Util.ToBinary(value, 8) + " dir=" + C64Util.ToBinary(portDir, 8) + " new=" + C64Util.ToBinary(val, 8));
|
|
||||||
SetPortData(val);
|
SetPortData(val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -191,7 +190,6 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS
|
||||||
get { return portDir; }
|
get { return portDir; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
Console.WriteLine("CPU write DIR: val=" + C64Util.ToBinary(value, 8));
|
|
||||||
SetPortDir(value);
|
SetPortDir(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -215,7 +213,7 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS
|
||||||
private void SetPortDir(byte val)
|
private void SetPortDir(byte val)
|
||||||
{
|
{
|
||||||
portDir = val;
|
portDir = val;
|
||||||
SetPortData((byte)(PortData | ((byte)~val & 0x1F)));
|
//SetPortData((byte)(PortData | ((byte)~val & 0x1F)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue