mirror of
https://github.com/cc65/cc65.git
synced 2025-01-22 21:32:57 +00:00
Fix for multiple overlay segments.
This commit is contained in:
parent
8b584cb89f
commit
1b0e2cf783
@ -193,8 +193,8 @@ static void BinWriteMem (BinDesc* D, MemoryArea* M)
|
|||||||
NewAddr += M->Start;
|
NewAddr += M->Start;
|
||||||
}
|
}
|
||||||
if (DoWrite || (M->Flags & MF_FILL) != 0) {
|
if (DoWrite || (M->Flags & MF_FILL) != 0) {
|
||||||
/* Seek back for "overlay" segments */
|
/* Seek in "overlay" segments */
|
||||||
if (NewAddr < Addr) {
|
if (S->Flags & SF_OVERLAY) {
|
||||||
fseek(D->F, NewAddr - M->Start, SEEK_SET);
|
fseek(D->F, NewAddr - M->Start, SEEK_SET);
|
||||||
} else {
|
} else {
|
||||||
WriteMult (D->F, M->FillVal, NewAddr-Addr);
|
WriteMult (D->F, M->FillVal, NewAddr-Addr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user