Very simple .LIST and .NLIST implementation.

Thanks to Don North. Also added a simple test.
Fixes #3.
This commit is contained in:
Olaf Seibert
2017-04-23 13:51:53 +02:00
parent c771c875cb
commit eb60cfe315
4 changed files with 56 additions and 3 deletions

View File

@@ -277,12 +277,16 @@ static int assemble(
case P_ENDR:
case P_ENDM:
case P_SBTTL:
case P_LIST:
case P_NLIST:
case P_PRINT:
return 1; /* Accepted, ignored. (An obvious
need: get assembly listing
controls working. ) */
controls working fully. ) */
case P_LIST:
if (pass > 0) list_level++;
return 1;
case P_NLIST:
if (pass > 0) list_level--;
return 1;
case P_IDENT:
{