From 12e66a65d9f8cc7e92ca75a68758f33f4c35ef12 Mon Sep 17 00:00:00 2001 From: Bjoren Davis Date: Sat, 13 Mar 2021 14:00:51 +0100 Subject: [PATCH] Properly set the character pointer after the operand. Fixes issue #6. --- assemble.c | 1 + 1 file changed, 1 insertion(+) diff --git a/assemble.c b/assemble.c index c203703..086ad20 100644 --- a/assemble.c +++ b/assemble.c @@ -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;