提交 fe716ba6 编写于 作者: A Andy Polyakov

PPC assembler distiller update.

上级 9a978008
...@@ -52,6 +52,9 @@ my $globl = sub { ...@@ -52,6 +52,9 @@ my $globl = sub {
$$global = $name; $$global = $name;
$ret; $ret;
}; };
my $text = sub {
($flavour =~ /aix/) ? ".csect" : ".text";
};
my $machine = sub { my $machine = sub {
my $junk = shift; my $junk = shift;
my $arch = shift; my $arch = shift;
...@@ -102,6 +105,7 @@ while($line=<>) { ...@@ -102,6 +105,7 @@ while($line=<>) {
my $mnemonic = $2; my $mnemonic = $2;
my $f = $3; my $f = $3;
my $opcode = eval("\$$mnemonic"); my $opcode = eval("\$$mnemonic");
$line =~ s|\br([0-9]+)\b|$1|g if ($c ne "." and $flavour !~ /osx/);
if (ref($opcode) eq 'CODE') { $line = &$opcode($f,split(',',$line)); } if (ref($opcode) eq 'CODE') { $line = &$opcode($f,split(',',$line)); }
elsif ($mnemonic) { $line = $c.$mnemonic.$f."\t".$line; } elsif ($mnemonic) { $line = $c.$mnemonic.$f."\t".$line; }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册