1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Added enough typing to issue a load command. No thoughts as to running yet though.

This commit is contained in:
Thomas Harte 2017-07-09 22:07:12 -04:00
parent 353c854734
commit ac59dd8b1d
2 changed files with 12 additions and 0 deletions

View File

@ -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) {

View File

@ -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);
}
}