mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-25 19:30:50 +00:00
far model segment header
This commit is contained in:
parent
e53dbcce13
commit
8db3b90777
@ -280,9 +280,18 @@ int main(int argc, char **argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
// 4-byte header for segment stuff.
|
||||
data += 4;
|
||||
size -= 4;
|
||||
// near model uses a $4-byte header.
|
||||
// far model uses a $28-byte header.
|
||||
if (data[0] == 0xff && data[1] == 0xff)
|
||||
{
|
||||
data += 0x28;
|
||||
size -= 0x28;
|
||||
}
|
||||
else
|
||||
{
|
||||
data += 0x04;
|
||||
size -= 0x04;
|
||||
}
|
||||
memorySetMemory(data, size);
|
||||
disasm(cname.c_str(), resID, size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user