fix multi-segment expressload header

This commit is contained in:
Kelvin Sherlock 2025-02-19 13:16:45 -05:00
parent b56f57140d
commit 773f6bc66e

View File

@ -659,7 +659,7 @@ void save_omf(const std::string &path, std::vector<omf::segment> &segments, bool
push(expr_headers, h.unused3);
push(expr_headers, h.segnum);
push(expr_headers, h.entry);
push(expr_headers, (uint16_t)(h.dispname-4));
push(expr_headers, (uint16_t)(h.dispname));
push(expr_headers, h.dispdata);
expr_headers.insert(expr_headers.end(), 10, ' ');
@ -704,6 +704,7 @@ void save_omf(const std::string &path, std::vector<omf::segment> &segments, bool
push(data, (uint16_t)(fudge + offset));
push(data, (uint16_t)0);
push(data, (uint32_t)0);
fudge -= 8;
}
for (auto &s : segments) {