mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-25 19:56:30 +00:00
Fix .asciz <expr>... where an overzealous parsing wants to parse too much of the remaining text
In particular, the example was .asciz <cr><lf>/<SOH>/ where it tried to make a division betweem <lf> and the delimited string /<SOH>/.
This commit is contained in:
@@ -1077,7 +1077,7 @@ static int assemble(
|
||||
cp = skipwhite(cp);
|
||||
if (*cp == '<' || *cp == '^') {
|
||||
/* A byte value */
|
||||
value = parse_expr(cp, 0);
|
||||
value = parse_unary_expr(cp, 0);
|
||||
cp = value->cp;
|
||||
store_value(stack, tr, 1, value);
|
||||
free_tree(value);
|
||||
|
||||
Reference in New Issue
Block a user