List macro calls with the location of DOT

Like MACRO V05.05.
This commit is contained in:
Olaf Seibert
2015-05-19 21:17:15 +02:00
parent 2e06f50286
commit 859e8dbb1f
3 changed files with 18 additions and 0 deletions

View File

@@ -250,6 +250,8 @@ static int assemble(
free(label);
list_location(stack->top, DOT);
macstr = expandmacro(stack->top, (MACRO *) op, ncp);
stack_push(stack, macstr); /* Push macro expansion

View File

@@ -139,6 +139,18 @@ void list_word(
}
/* Print just a line with the address to the listing file */
void list_location(
STREAM *str,
unsigned addr)
{
if (dolist()) {
list_fit(str, addr);
}
}
/* reports errors */
void report(

View File

@@ -51,6 +51,10 @@ void list_value(
STREAM *str,
unsigned word);
void list_location(
STREAM *str,
unsigned word);
void list_source(
STREAM *str,
char *cp);