Let .LIST and .NLIST affect listing only if they have no argument.

This commit is contained in:
Olaf Seibert
2017-04-27 22:11:31 +02:00
parent d61cad6bb4
commit 27abf32bf4

View File

@@ -282,10 +282,18 @@ static int assemble(
need: get assembly listing
controls working fully. ) */
case P_LIST:
if (pass > 0) list_level++;
if (pass > 0) {
cp = skipwhite(cp);
if (EOL(*cp))
list_level++;
}
return 1;
case P_NLIST:
if (pass > 0) list_level--;
if (pass > 0) {
cp = skipwhite(cp);
if (EOL(*cp))
list_level--;
}
return 1;
case P_IDENT: