1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-11 15:49:38 +00:00

Avoid invalid accesses.

This commit is contained in:
Thomas Harte 2024-12-04 22:04:00 -05:00
parent 65a118d1f3
commit e7f0eb6746

View File

@ -179,7 +179,7 @@ Analyser::Static::TargetList Analyser::Static::Commodore::GetTargets(
string_stream << "LOAD\"" << (is_disk ? "*" : "") << "\"," << device << ",";
const auto analysis = analyse(file);
if(!analysis->machine_code_addresses.empty()) {
if(analysis && !analysis->machine_code_addresses.empty()) {
string_stream << "1";
const auto disassembly = Analyser::Static::MOS6502::Disassemble(