Properly set the character pointer after the operand.

Fixes issue #6.
This commit is contained in:
Bjoren Davis 2021-03-13 14:00:51 +01:00 committed by Olaf Seibert
parent 54b73f7f9c
commit 12e66a65d9

View File

@ -1326,6 +1326,7 @@ static int assemble(
cp++; /* Allow the hash, but
don't require it */
value = parse_expr(cp, 0);
cp = value->cp;
if (value->type != EX_LIT) {
report(stack->top, "Instruction requires simple literal operand\n");
word = op->value;