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;