C64: Don't need separate PRG support anymore, they are simulated on disk
This commit is contained in:
parent
47880fabb7
commit
b662646f2c
|
@ -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" />
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue