Fixed parsing bug

This commit is contained in:
Leeland Heins 2018-12-27 13:03:19 -06:00 committed by GitHub
parent aa6817eb45
commit 8cde8f4a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;