From 6096a24f1dea135e0d435d72df0c714ff5b0b828 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Sun, 28 Aug 2022 03:41:48 +0200 Subject: [PATCH] dont add whitespace after a label to the actual label, this fixes the root cause of #1252 --- src/cc65/codeseg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cc65/codeseg.c b/src/cc65/codeseg.c index e621147ab..5949c0c6f 100644 --- a/src/cc65/codeseg.c +++ b/src/cc65/codeseg.c @@ -399,7 +399,10 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L) default: /* Absolute, maybe indexed */ - L = ReadToken (L, ",", Arg, sizeof (Arg)); + L = ReadToken (L, ", ", Arg, sizeof (Arg)); + if (*L == ' ') { + L = SkipSpace (L+1); + } if (*L == '\0') { /* Absolute, zeropage or branch */ if ((OPC->Info & OF_BRA) != 0) {