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