diff options
-rw-r--r-- | src/c8asm/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c8asm/parser.c b/src/c8asm/parser.c index d6e79f9..86f4ca5 100644 --- a/src/c8asm/parser.c +++ b/src/c8asm/parser.c @@ -124,7 +124,7 @@ parseaddr(struct token tok) { if (tok.kind == T_NUMBER) return (struct raw_addr){.val = parsenum(tok, NS_ADDR)}; - if (tok.kind == T_STRING) { + if (tok.kind == T_IDENT) { if (regtype(tok.sv) != RT_NONE) die_with_off(tok.sv.p, E_BADLABEL, U8_PRI_ARGS(tok.sv)); return (struct raw_addr){.label = true, .sv = tok.sv}; |