This commit is contained in:
Anthony J. Bentley
2015-01-07 16:36:37 -07:00

View File

@@ -72,14 +72,13 @@ MapfileInitBank(SLONG bank)
void void
MapfileWriteSection(struct sSection * pSect) MapfileWriteSection(struct sSection * pSect)
{ {
if (!mf && !sf)
return;
SLONG i; SLONG i;
fprintf(mf, " SECTION: $%04lX-$%04lX ($%04lX bytes)\n", if (mf) {
pSect->nOrg, pSect->nOrg + pSect->nByteSize - 1, fprintf(mf, " SECTION: $%04lX-$%04lX ($%04lX bytes)\n",
pSect->nByteSize); pSect->nOrg, pSect->nOrg + pSect->nByteSize - 1,
pSect->nByteSize);
}
for (i = 0; i < pSect->nNumberOfSymbols; i += 1) { for (i = 0; i < pSect->nNumberOfSymbols; i += 1) {
struct sSymbol *pSym; struct sSymbol *pSym;