mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-04 18:29:40 +00:00
The Vic-20 now inserts ROMs again.
This commit is contained in:
parent
abf47efd40
commit
cd1ab09701
@ -317,6 +317,17 @@ void Machine::configure_as_target(const StaticAnalyser::Target &target)
|
|||||||
install_disk_rom();
|
install_disk_rom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(target.cartridges.size())
|
||||||
|
{
|
||||||
|
_rom_address = 0xa000;
|
||||||
|
std::vector<uint8_t> rom_image = target.cartridges.front()->get_segments().front().data;
|
||||||
|
_rom_length = (uint16_t)(rom_image.size());
|
||||||
|
|
||||||
|
_rom = new uint8_t[0x2000];
|
||||||
|
memcpy(_rom, rom_image.data(), rom_image.size());
|
||||||
|
write_to_map(_processorReadMemoryMap, _rom, _rom_address, 0x2000);
|
||||||
|
}
|
||||||
|
|
||||||
if(_should_automatically_load_media)
|
if(_should_automatically_load_media)
|
||||||
{
|
{
|
||||||
if(target.loadingCommand.length()) // TODO: and automatic loading option enabled
|
if(target.loadingCommand.length()) // TODO: and automatic loading option enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user