Added repeat support. Added short vs long expansion

This commit is contained in:
paul moore
2023-12-03 11:59:05 -08:00
parent 116f678180
commit 617eb0e065
4 changed files with 55 additions and 11 deletions

View File

@@ -674,9 +674,13 @@ static void OptWarningsAsErrors (const char* Opt attribute ((unused)),
static void OptExpandMacros (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
/* Exapnd macros in listing */
/* Expand macros in listing
** one -m means short listing
** two means full listing
*/
{
ExpandMacros = 1;
ExpandMacros++;
}
static void DoPCAssign (void)
@@ -895,6 +899,7 @@ static void Assemble (void)
while (CurTok.Tok != TOK_EOF) {
OneLine ();
}
}
@@ -1080,7 +1085,7 @@ int main (int argc, char* argv [])
WarnLevel = atoi (GetArg (&I, 2));
break;
case 'x':
ExpandMacros = 1;
ExpandMacros++;
break;