comparison lwasm/list.c @ 357:b6933dc299e6

Make listings show the address for lines that only define symbols Make sure that symbols being defined by themselves on a line actually display the line address in the code display area of the listing.
author William Astle <lost@l-w.ca>
date Wed, 20 May 2015 15:06:18 -0600
parents dc763f806dc4
children 35d4213e6657
comparison
equal deleted inserted replaced
356:c6bd6e9bc6df 357:b6933dc299e6
128 { 128 {
129 obytes = lw_alloc(obytelen); 129 obytes = lw_alloc(obytelen);
130 memmove(obytes, cl -> output, cl -> outputl); 130 memmove(obytes, cl -> output, cl -> outputl);
131 } 131 }
132 } 132 }
133 if ((cl -> len < 1 && cl -> dlen < 1) && obytelen < 1) 133 if ((cl -> len < 1 && cl -> dlen < 1) && obytelen < 1 && (cl -> symset == 1 || cl -> sym == NULL) )
134 { 134 {
135 if (cl -> soff >= 0) 135 if (cl -> soff >= 0)
136 { 136 {
137 fprintf(of, "%04Xs ", cl -> soff & 0xffff); 137 fprintf(of, "%04Xs ", cl -> soff & 0xffff);
138 } 138 }