summaryrefslogtreecommitdiff
path: root/as
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1999-01-23 13:29:22 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:40:39 +0200
commite62b35169cdcd13632ae353b1e5ffde7dec44201 (patch)
tree2646548ca84edb365354a6e68459f92943532cee /as
parent2233d47f9d89c107b6c425626d6eb2669363b055 (diff)
downloaddev86-e62b35169cdcd13632ae353b1e5ffde7dec44201.tar.gz
Import Dev86src-0.14.7.tar.gzv0.14.7
Diffstat (limited to 'as')
-rw-r--r--as/assemble.c6
-rw-r--r--as/genlist.c3
-rw-r--r--as/globvar.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/as/assemble.c b/as/assemble.c
index c631905..5ae7319 100644
--- a/as/assemble.c
+++ b/as/assemble.c
@@ -215,7 +215,11 @@ PRIVATE void asline()
readline();
getsym();
if (sym != IDENT) /* expect label, mnemonic or macro */
- return; /* anything else is a comment */
+ {
+ if( sym != EOLSYM )
+ list_force = TRUE;
+ return; /* anything else is a comment */
+ }
symptr = gsymptr;
if (!ifflag)
/* not assembling, just test for IF/ELSE/ELSEIF/ENDIF */
diff --git a/as/genlist.c b/as/genlist.c
index f7c2572..399a71e 100644
--- a/as/genlist.c
+++ b/as/genlist.c
@@ -172,7 +172,7 @@ PUBLIC void listline()
if (!listpre)
{
if (errcount || (list.current && (!macflag || mcount != 0)) ||
- (macflag && maclist.current))
+ (macflag && maclist.current) || list_force )
list1(lstfil);
if (errcount)
{
@@ -196,6 +196,7 @@ fd_t fd;
if (errcount != 0)
listerrors();
listpre = TRUE;
+ list_force=FALSE;
}
/* list object code for 1 line */
diff --git a/as/globvar.h b/as/globvar.h
index df4ed6e..d22f6a5 100644
--- a/as/globvar.h
+++ b/as/globvar.h
@@ -27,6 +27,8 @@ EXTERN bool_t symgen; /* generate symbol table flag */
EXTERN unsigned toterr; /* total errors */
EXTERN unsigned totwarn; /* total warnings */
+EXTERN bool_t list_force; /* Force line to be listed - no error */
+
/* bookeeping for current line */
EXTERN char *linebuf; /* buffer */