mirror of
https://github.com/ksherlock/merlin-utils.git
synced 2025-03-03 03:29:18 +00:00
fix multi-segment expressload header
This commit is contained in:
parent
b56f57140d
commit
773f6bc66e
3
omf.cpp
3
omf.cpp
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user