C64: Don't need separate PRG support anymore, they are simulated on disk

This commit is contained in:
SaxxonPike 2019-07-23 04:53:24 -05:00
parent 47880fabb7
commit b662646f2c
2 changed files with 0 additions and 29 deletions

View File

@ -260,7 +260,6 @@
<Compile Include="Computers\Commodore64\C64FormatFinder.cs" />
<Compile Include="Computers\Commodore64\Media\DiskBuilder.cs" />
<Compile Include="Computers\Commodore64\Media\Tape.cs" />
<Compile Include="Computers\Commodore64\Media\PRG.cs" />
<Compile Include="Computers\Commodore64\Cartridge\CartridgeDevice.cs" />
<Compile Include="Computers\Commodore64\Cartridge\CartridgePort.cs" />
<Compile Include="Computers\Commodore64\Cassette\CassettePort.cs" />

View File

@ -1,28 +0,0 @@
using BizHawk.Emulation.Cores.Computers.Commodore64.MOS;
namespace BizHawk.Emulation.Cores.Computers.Commodore64.Media
{
public static class Prg
{
public static void Load(Chip90611401 pla, byte[] prgFile)
{
var length = prgFile.Length;
if (length <= 2)
{
return;
}
var addr = prgFile[0] | (prgFile[1] << 8);
var offset = 2;
unchecked
{
while (offset < length)
{
pla.Write(addr, prgFile[offset]);
offset++;
addr++;
}
}
}
}
}