merlin uses the same loadname for all segments.

This commit is contained in:
Kelvin Sherlock 2019-12-22 14:43:12 -05:00
parent 5ee80c8b51
commit 30d26b7828

View File

@ -175,6 +175,7 @@ namespace {
std::unordered_map<std::string, uint32_t> local_symbol_table;
std::string loadname;
}
@ -917,6 +918,7 @@ void evaluate(label_t label, opcode_t opcode, const char *cursor) {
/* use 1st SAV as the path */
if (save_file.empty()) save_file = path;
if (loadname.empty()) loadname = base;
/*
lkv 0 = binary linker (unsupported)
@ -929,7 +931,7 @@ void evaluate(label_t label, opcode_t opcode, const char *cursor) {
/* merlin link uses a 10-char fixed label */
//base.resize(10, ' ');
seg.segname = base;
seg.loadname = base;
seg.loadname = loadname;
// seg.kind = kind;
}