mirror of
https://github.com/open-simh/simtools.git
synced 2026-02-26 16:54:31 +00:00
List macro calls with the location of DOT
Like MACRO V05.05.
This commit is contained in:
@@ -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
|
||||
|
||||
12
listing.c
12
listing.c
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user