c64- connect CIA2 port A and B to MemBus
This commit is contained in:
parent
d783e439bb
commit
bb2fafec63
|
@ -44,12 +44,16 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
|||
// initialize memory (this must be done AFTER all other chips are initialized)
|
||||
string romPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "C64Kernal");
|
||||
mem = new MemoryBus(romPath, vic, sid, cia1, cia2);
|
||||
cia2.ReadPortA = mem.CIA2ReadPortA;
|
||||
cia2.ReadPortB = mem.CIA2ReadPortB;
|
||||
cia2.WritePortA = mem.CIA2WritePortA;
|
||||
cia2.WritePortB = mem.CIA2WritePortB;
|
||||
|
||||
// initialize media
|
||||
Cartridge cart = new Cartridge(inputFile);
|
||||
if (cart.valid)
|
||||
{
|
||||
//mem.ApplyCartridge(cart);
|
||||
mem.ApplyCartridge(cart);
|
||||
}
|
||||
|
||||
// initialize cpu (hard reset vector)
|
||||
|
|
|
@ -58,6 +58,7 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
|||
// ram
|
||||
public byte[] colorRam;
|
||||
public byte[] ram;
|
||||
public int vicOffset;
|
||||
|
||||
// registers
|
||||
public byte busData;
|
||||
|
@ -100,6 +101,24 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
|||
UpdateLayout();
|
||||
}
|
||||
|
||||
public byte CIA2ReadPortA()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public byte CIA2ReadPortB()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void CIA2WritePortA(byte val, byte direction)
|
||||
{
|
||||
}
|
||||
|
||||
public void CIA2WritePortB(byte val, byte direction)
|
||||
{
|
||||
}
|
||||
|
||||
public MemoryBusDesignation GetDesignation(ushort addr)
|
||||
{
|
||||
MemoryBusDesignation result;
|
||||
|
|
Loading…
Reference in New Issue