mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 20:12:07 +00:00
Add section fragments
Fixes #517, and hopefully enables RGBDS as a SDCC back-end
This commit is contained in:
@@ -176,7 +176,10 @@ static void writesection(struct Section const *pSect, FILE *f)
|
||||
|
||||
fputlong(pSect->size, f);
|
||||
|
||||
fputc(pSect->nType | pSect->isUnion << 7, f);
|
||||
bool isUnion = pSect->modifier == SECTION_UNION;
|
||||
bool isFragment = pSect->modifier == SECTION_FRAGMENT;
|
||||
|
||||
fputc(pSect->nType | isUnion << 7 | isFragment << 6, f);
|
||||
|
||||
fputlong(pSect->nOrg, f);
|
||||
fputlong(pSect->nBank, f);
|
||||
|
||||
Reference in New Issue
Block a user