From 8cde8f4a172043f80172291508cdb0b6c97dbffb Mon Sep 17 00:00:00 2001 From: Leeland Heins Date: Thu, 27 Dec 2018 13:03:19 -0600 Subject: [PATCH] Fixed parsing bug --- as65.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/as65.pl b/as65.pl index 000fcfe..0a37e2f 100644 --- a/as65.pl +++ b/as65.pl @@ -2174,6 +2174,10 @@ sub parse_line { $mnemonic = $1; $operand = $2; $comment = ''; + if ($operand =~ /^;/) { + $comment = $operand; + $operand = ''; + } } elsif ($line =~ /^\s+(\S+)\s+(;.*)$/) { $label = ''; $mnemonic = $1;