mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +00:00
Added enough typing to issue a load command. No thoughts as to running yet though.
This commit is contained in:
parent
353c854734
commit
ac59dd8b1d
@ -253,6 +253,10 @@ void Machine::configure_as_target(const StaticAnalyser::Target &target) {
|
||||
if(target.tapes.size()) {
|
||||
tape_player_.set_tape(target.tapes.front());
|
||||
}
|
||||
|
||||
if(target.loadingCommand.length()) {
|
||||
set_typer_for_string(target.loadingCommand.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void Machine::set_rom(ROMType type, std::vector<uint8_t> data) {
|
||||
|
@ -47,6 +47,14 @@ void StaticAnalyser::ZX8081::AddTargets(
|
||||
target.zx8081.memory_model = ZX8081MemoryModel::Unexpanded;
|
||||
}
|
||||
target.tapes = tapes;
|
||||
|
||||
// TODO: how to run software once loaded? Might require a BASIC detokeniser.
|
||||
if(target.zx8081.isZX81) {
|
||||
target.loadingCommand = "J\"\"\n";
|
||||
} else {
|
||||
target.loadingCommand = "W\n";
|
||||
}
|
||||
|
||||
destination.push_back(target);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user