mirror of
https://github.com/softwarejanitor/as65.git
synced 2025-02-16 08:30:30 +00:00
Fixed parsing bug
This commit is contained in:
parent
aa6817eb45
commit
8cde8f4a17
4
as65.pl
4
as65.pl
@ -2174,6 +2174,10 @@ sub parse_line {
|
|||||||
$mnemonic = $1;
|
$mnemonic = $1;
|
||||||
$operand = $2;
|
$operand = $2;
|
||||||
$comment = '';
|
$comment = '';
|
||||||
|
if ($operand =~ /^;/) {
|
||||||
|
$comment = $operand;
|
||||||
|
$operand = '';
|
||||||
|
}
|
||||||
} elsif ($line =~ /^\s+(\S+)\s+(;.*)$/) {
|
} elsif ($line =~ /^\s+(\S+)\s+(;.*)$/) {
|
||||||
$label = '';
|
$label = '';
|
||||||
$mnemonic = $1;
|
$mnemonic = $1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user