1998-12-21 10:52:47 +00:00
|
|
|
#!/usr/local/bin/perl
|
|
|
|
|
|
|
|
package x86ms;
|
|
|
|
|
|
|
|
$label="L000";
|
|
|
|
|
|
|
|
%lb=( 'eax', 'al',
|
|
|
|
'ebx', 'bl',
|
|
|
|
'ecx', 'cl',
|
|
|
|
'edx', 'dl',
|
|
|
|
'ax', 'al',
|
|
|
|
'bx', 'bl',
|
|
|
|
'cx', 'cl',
|
|
|
|
'dx', 'dl',
|
|
|
|
);
|
|
|
|
|
|
|
|
%hb=( 'eax', 'ah',
|
|
|
|
'ebx', 'bh',
|
|
|
|
'ecx', 'ch',
|
|
|
|
'edx', 'dh',
|
|
|
|
'ax', 'ah',
|
|
|
|
'bx', 'bh',
|
|
|
|
'cx', 'ch',
|
|
|
|
'dx', 'dh',
|
|
|
|
);
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'asm_init_output { @out=(); }
|
|
|
|
sub main'asm_get_output { return(@out); }
|
|
|
|
sub main'get_labels { return(@labels); }
|
|
|
|
sub main'external_label { push(@labels,@_); }
|
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'LB
|
|
|
|
{
|
|
|
|
(defined($lb{$_[0]})) || die "$_[0] does not have a 'low byte'\n";
|
|
|
|
return($lb{$_[0]});
|
|
|
|
}
|
|
|
|
|
|
|
|
sub main'HB
|
|
|
|
{
|
|
|
|
(defined($hb{$_[0]})) || die "$_[0] does not have a 'high byte'\n";
|
|
|
|
return($hb{$_[0]});
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'BP
|
|
|
|
{
|
|
|
|
&get_mem("BYTE",@_);
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'DWP
|
|
|
|
{
|
1998-12-21 10:56:39 +00:00
|
|
|
&get_mem("DWORD",@_);
|
|
|
|
}
|
|
|
|
|
2004-05-06 10:31:09 +00:00
|
|
|
sub main'QWP
|
|
|
|
{
|
|
|
|
&get_mem("QWORD",@_);
|
|
|
|
}
|
|
|
|
|
1999-07-12 18:12:43 +00:00
|
|
|
sub main'BC
|
|
|
|
{
|
|
|
|
return @_;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub main'DWC
|
|
|
|
{
|
|
|
|
return @_;
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'stack_push
|
|
|
|
{
|
|
|
|
local($num)=@_;
|
|
|
|
$stack+=$num*4;
|
|
|
|
&main'sub("esp",$num*4);
|
|
|
|
}
|
|
|
|
|
|
|
|
sub main'stack_pop
|
|
|
|
{
|
|
|
|
local($num)=@_;
|
|
|
|
$stack-=$num*4;
|
|
|
|
&main'add("esp",$num*4);
|
|
|
|
}
|
|
|
|
|
|
|
|
sub get_mem
|
|
|
|
{
|
|
|
|
local($size,$addr,$reg1,$reg2,$idx)=@_;
|
|
|
|
local($t,$post);
|
|
|
|
local($ret)="$size PTR ";
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
$addr =~ s/^\s+//;
|
|
|
|
if ($addr =~ /^(.+)\+(.+)$/)
|
|
|
|
{
|
|
|
|
$reg2=&conv($1);
|
|
|
|
$addr="_$2";
|
|
|
|
}
|
2004-12-26 10:58:39 +00:00
|
|
|
elsif ($addr =~ /^[_a-z][_a-z0-9]*$/i)
|
1998-12-21 10:52:47 +00:00
|
|
|
{
|
|
|
|
$addr="_$addr";
|
|
|
|
}
|
|
|
|
|
2002-12-14 17:54:30 +00:00
|
|
|
if ($addr =~ /^.+\-.+$/) { $addr="($addr)"; }
|
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
$reg1="$regs{$reg1}" if defined($regs{$reg1});
|
|
|
|
$reg2="$regs{$reg2}" if defined($regs{$reg2});
|
1998-12-21 10:56:39 +00:00
|
|
|
if (($addr ne "") && ($addr ne 0))
|
|
|
|
{
|
|
|
|
if ($addr !~ /^-/)
|
|
|
|
{ $ret.=$addr; }
|
|
|
|
else { $post=$addr; }
|
|
|
|
}
|
1998-12-21 10:52:47 +00:00
|
|
|
if ($reg2 ne "")
|
|
|
|
{
|
|
|
|
$t="";
|
|
|
|
$t="*$idx" if ($idx != 0);
|
1998-12-21 10:56:39 +00:00
|
|
|
$reg1="+".$reg1 if ("$reg1$post" ne "");
|
|
|
|
$ret.="[$reg2$t$reg1$post]";
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
1998-12-21 10:56:39 +00:00
|
|
|
$ret.="[$reg1$post]"
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
2002-12-14 17:54:30 +00:00
|
|
|
$ret =~ s/\[\]//; # in case $addr was the only argument
|
1998-12-21 10:52:47 +00:00
|
|
|
return($ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
sub main'mov { &out2("mov",@_); }
|
|
|
|
sub main'movb { &out2("mov",@_); }
|
|
|
|
sub main'and { &out2("and",@_); }
|
|
|
|
sub main'or { &out2("or",@_); }
|
|
|
|
sub main'shl { &out2("shl",@_); }
|
|
|
|
sub main'shr { &out2("shr",@_); }
|
|
|
|
sub main'xor { &out2("xor",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'xorb { &out2("xor",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'add { &out2("add",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'adc { &out2("adc",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'sub { &out2("sub",@_); }
|
2004-09-09 14:50:32 +00:00
|
|
|
sub main'sbb { &out2("sbb",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'rotl { &out2("rol",@_); }
|
|
|
|
sub main'rotr { &out2("ror",@_); }
|
|
|
|
sub main'exch { &out2("xchg",@_); }
|
|
|
|
sub main'cmp { &out2("cmp",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'lea { &out2("lea",@_); }
|
|
|
|
sub main'mul { &out1("mul",@_); }
|
|
|
|
sub main'div { &out1("div",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'dec { &out1("dec",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'inc { &out1("inc",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'jmp { &out1("jmp",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'jmp_ptr { &out1p("jmp",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'je { &out1("je",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'jle { &out1("jle",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'jz { &out1("jz",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'jge { &out1("jge",@_); }
|
|
|
|
sub main'jl { &out1("jl",@_); }
|
2003-09-27 22:14:39 +00:00
|
|
|
sub main'ja { &out1("ja",@_); }
|
|
|
|
sub main'jae { &out1("jae",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'jb { &out1("jb",@_); }
|
2003-09-27 22:14:39 +00:00
|
|
|
sub main'jbe { &out1("jbe",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'jc { &out1("jc",@_); }
|
|
|
|
sub main'jnc { &out1("jnc",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'jnz { &out1("jnz",@_); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'jne { &out1("jne",@_); }
|
|
|
|
sub main'jno { &out1("jno",@_); }
|
|
|
|
sub main'push { &out1("push",@_); $stack+=4; }
|
|
|
|
sub main'pop { &out1("pop",@_); $stack-=4; }
|
2004-09-09 14:50:32 +00:00
|
|
|
sub main'pushf { &out0("pushfd"); $stack+=4; }
|
|
|
|
sub main'popf { &out0("popfd"); $stack-=4; }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'bswap { &out1("bswap",@_); &using486(); }
|
|
|
|
sub main'not { &out1("not",@_); }
|
2002-12-14 17:54:30 +00:00
|
|
|
sub main'call { &out1("call",($_[0]=~/^\$L/?'':'_').$_[0]); }
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'ret { &out0("ret"); }
|
|
|
|
sub main'nop { &out0("nop"); }
|
2004-05-06 10:31:09 +00:00
|
|
|
sub main'test { &out2("test",@_); }
|
|
|
|
sub main'bt { &out2("bt",@_); }
|
|
|
|
sub main'leave { &out0("leave"); }
|
2004-08-29 16:10:27 +00:00
|
|
|
sub main'cpuid { &out0("DW\t0A20Fh"); }
|
|
|
|
sub main'rdtsc { &out0("DW\t0310Fh"); }
|
2004-09-09 14:50:32 +00:00
|
|
|
sub main'halt { &out0("hlt"); }
|
2004-11-27 15:14:58 +00:00
|
|
|
sub main'movz { &out2("movzx",@_); }
|
2005-01-18 01:04:41 +00:00
|
|
|
sub main'neg { &out1("neg",@_); }
|
2005-04-24 21:09:20 +00:00
|
|
|
sub main'cld { &out0("cld"); }
|
2004-05-06 10:31:09 +00:00
|
|
|
|
|
|
|
# SSE2
|
|
|
|
sub main'emms { &out0("emms"); }
|
|
|
|
sub main'movd { &out2("movd",@_); }
|
|
|
|
sub main'movq { &out2("movq",@_); }
|
|
|
|
sub main'movdqu { &out2("movdqu",@_); }
|
|
|
|
sub main'movdqa { &out2("movdqa",@_); }
|
|
|
|
sub main'movdq2q{ &out2("movdq2q",@_); }
|
|
|
|
sub main'movq2dq{ &out2("movq2dq",@_); }
|
|
|
|
sub main'paddq { &out2("paddq",@_); }
|
|
|
|
sub main'pmuludq{ &out2("pmuludq",@_); }
|
|
|
|
sub main'psrlq { &out2("psrlq",@_); }
|
|
|
|
sub main'psllq { &out2("psllq",@_); }
|
|
|
|
sub main'pxor { &out2("pxor",@_); }
|
|
|
|
sub main'por { &out2("por",@_); }
|
|
|
|
sub main'pand { &out2("pand",@_); }
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
sub out2
|
|
|
|
{
|
|
|
|
local($name,$p1,$p2)=@_;
|
|
|
|
local($l,$t);
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,"\t$name\t");
|
1998-12-21 10:52:47 +00:00
|
|
|
$t=&conv($p1).",";
|
|
|
|
$l=length($t);
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,$t);
|
1998-12-21 10:52:47 +00:00
|
|
|
$l=4-($l+9)/8;
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,"\t" x $l);
|
|
|
|
push(@out,&conv($p2));
|
|
|
|
push(@out,"\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
sub out0
|
|
|
|
{
|
|
|
|
local($name)=@_;
|
|
|
|
|
|
|
|
push(@out,"\t$name\n");
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub out1
|
|
|
|
{
|
|
|
|
local($name,$p1)=@_;
|
|
|
|
local($l,$t);
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,"\t$name\t".&conv($p1)."\n");
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub conv
|
|
|
|
{
|
|
|
|
local($p)=@_;
|
|
|
|
|
|
|
|
$p =~ s/0x([0-9A-Fa-f]+)/0$1h/;
|
|
|
|
return $p;
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub using486
|
|
|
|
{
|
|
|
|
return if $using486;
|
|
|
|
$using486++;
|
|
|
|
grep(s/\.386/\.486/,@out);
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'file
|
|
|
|
{
|
|
|
|
local($file)=@_;
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
local($tmp)=<<"EOF";
|
1998-12-21 10:52:47 +00:00
|
|
|
TITLE $file.asm
|
|
|
|
.386
|
|
|
|
.model FLAT
|
|
|
|
EOF
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,$tmp);
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub main'function_begin
|
|
|
|
{
|
1998-12-21 10:56:39 +00:00
|
|
|
local($func,$extra)=@_;
|
1998-12-21 10:52:47 +00:00
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@labels,$func);
|
1998-12-21 10:52:47 +00:00
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
local($tmp)=<<"EOF";
|
2004-11-27 15:14:58 +00:00
|
|
|
_TEXT\$ SEGMENT PARA
|
1998-12-21 10:52:47 +00:00
|
|
|
PUBLIC _$func
|
|
|
|
$extra
|
|
|
|
_$func PROC NEAR
|
|
|
|
push ebp
|
|
|
|
push ebx
|
|
|
|
push esi
|
|
|
|
push edi
|
|
|
|
EOF
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,$tmp);
|
1998-12-21 10:52:47 +00:00
|
|
|
$stack=20;
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'function_begin_B
|
|
|
|
{
|
|
|
|
local($func,$extra)=@_;
|
|
|
|
|
|
|
|
local($tmp)=<<"EOF";
|
2004-11-27 15:14:58 +00:00
|
|
|
_TEXT\$ SEGMENT PARA
|
1998-12-21 10:56:39 +00:00
|
|
|
PUBLIC _$func
|
|
|
|
$extra
|
|
|
|
_$func PROC NEAR
|
|
|
|
EOF
|
|
|
|
push(@out,$tmp);
|
|
|
|
$stack=4;
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'function_end
|
|
|
|
{
|
|
|
|
local($func)=@_;
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
local($tmp)=<<"EOF";
|
1998-12-21 10:52:47 +00:00
|
|
|
pop edi
|
|
|
|
pop esi
|
|
|
|
pop ebx
|
|
|
|
pop ebp
|
|
|
|
ret
|
|
|
|
_$func ENDP
|
2004-11-27 15:14:58 +00:00
|
|
|
_TEXT\$ ENDS
|
1998-12-21 10:52:47 +00:00
|
|
|
EOF
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,$tmp);
|
1998-12-21 10:52:47 +00:00
|
|
|
$stack=0;
|
|
|
|
%label=();
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'function_end_B
|
1998-12-21 10:52:47 +00:00
|
|
|
{
|
|
|
|
local($func)=@_;
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
local($tmp)=<<"EOF";
|
|
|
|
_$func ENDP
|
2004-11-27 15:14:58 +00:00
|
|
|
_TEXT\$ ENDS
|
1998-12-21 10:52:47 +00:00
|
|
|
EOF
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,$tmp);
|
|
|
|
$stack=0;
|
|
|
|
%label=();
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'function_end_A
|
1998-12-21 10:52:47 +00:00
|
|
|
{
|
|
|
|
local($func)=@_;
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
local($tmp)=<<"EOF";
|
|
|
|
pop edi
|
|
|
|
pop esi
|
|
|
|
pop ebx
|
|
|
|
pop ebp
|
|
|
|
ret
|
1998-12-21 10:52:47 +00:00
|
|
|
EOF
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,$tmp);
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub main'file_end
|
|
|
|
{
|
2004-05-06 10:31:09 +00:00
|
|
|
# try to detect if SSE2 or MMX extensions were used...
|
|
|
|
if (grep {/xmm[0-7]\s*,/i} @out) {
|
2004-08-29 16:10:27 +00:00
|
|
|
grep {s/\.[3-7]86/\.686\n\t\.XMM/} @out;
|
2004-05-06 10:31:09 +00:00
|
|
|
}
|
|
|
|
elsif (grep {/mm[0-7]\s*,/i} @out) {
|
|
|
|
grep {s/\.[3-7]86/\.686\n\t\.MMX/} @out;
|
|
|
|
}
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,"END\n");
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub main'wparam
|
|
|
|
{
|
|
|
|
local($num)=@_;
|
|
|
|
|
|
|
|
return(&main'DWP($stack+$num*4,"esp","",0));
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'swtmp
|
1998-12-21 10:52:47 +00:00
|
|
|
{
|
1998-12-21 10:56:39 +00:00
|
|
|
return(&main'DWP($_[0]*4,"esp","",0));
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
# Should use swtmp, which is above esp. Linix can trash the stack above esp
|
|
|
|
#sub main'wtmp
|
|
|
|
# {
|
|
|
|
# local($num)=@_;
|
|
|
|
#
|
|
|
|
# return(&main'DWP(-(($num+1)*4),"esp","",0));
|
|
|
|
# }
|
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'comment
|
|
|
|
{
|
|
|
|
foreach (@_)
|
|
|
|
{
|
1998-12-21 10:56:39 +00:00
|
|
|
push(@out,"\t; $_\n");
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-12-23 21:43:25 +00:00
|
|
|
sub main'public_label
|
|
|
|
{
|
|
|
|
$label{$_[0]}="_$_[0]" if (!defined($label{$_[0]}));
|
|
|
|
push(@out,"PUBLIC\t$label{$_[0]}\n");
|
|
|
|
}
|
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
sub main'label
|
|
|
|
{
|
|
|
|
if (!defined($label{$_[0]}))
|
|
|
|
{
|
|
|
|
$label{$_[0]}="\$${label}${_[0]}";
|
|
|
|
$label++;
|
|
|
|
}
|
|
|
|
return($label{$_[0]});
|
|
|
|
}
|
|
|
|
|
|
|
|
sub main'set_label
|
|
|
|
{
|
|
|
|
if (!defined($label{$_[0]}))
|
|
|
|
{
|
2002-12-14 17:54:30 +00:00
|
|
|
$label{$_[0]}="\$${label}${_[0]}";
|
1998-12-21 10:52:47 +00:00
|
|
|
$label++;
|
|
|
|
}
|
2004-12-23 21:43:25 +00:00
|
|
|
if ($_[1]!=0 && $_[1]>1)
|
|
|
|
{
|
|
|
|
main'align($_[1]);
|
|
|
|
}
|
2000-03-03 00:06:40 +00:00
|
|
|
if((defined $_[2]) && ($_[2] == 1))
|
2000-02-27 01:15:25 +00:00
|
|
|
{
|
|
|
|
push(@out,"$label{$_[0]}::\n");
|
|
|
|
}
|
2004-12-23 21:43:25 +00:00
|
|
|
elsif ($label{$_[0]} !~ /^\$/)
|
|
|
|
{
|
|
|
|
push(@out,"$label{$_[0]}\tLABEL PTR\n");
|
|
|
|
}
|
2000-02-27 01:15:25 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
push(@out,"$label{$_[0]}:\n");
|
|
|
|
}
|
1998-12-21 10:52:47 +00:00
|
|
|
}
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
sub main'data_word
|
|
|
|
{
|
2004-05-06 10:31:09 +00:00
|
|
|
push(@out,"\tDD\t".join(',',@_)."\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
sub main'align
|
|
|
|
{
|
|
|
|
push(@out,"\tALIGN\t$_[0]\n");
|
1998-12-21 10:56:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub out1p
|
|
|
|
{
|
|
|
|
local($name,$p1)=@_;
|
|
|
|
local($l,$t);
|
|
|
|
|
|
|
|
push(@out,"\t$name\t ".&conv($p1)."\n");
|
|
|
|
}
|
2002-12-13 17:56:14 +00:00
|
|
|
|
2003-01-24 09:39:31 +00:00
|
|
|
sub main'picmeup
|
|
|
|
{
|
|
|
|
local($dst,$sym)=@_;
|
|
|
|
&main'lea($dst,&main'DWP($sym));
|
|
|
|
}
|
|
|
|
|
2002-12-13 17:56:14 +00:00
|
|
|
sub main'blindpop { &out1("pop",@_); }
|
2004-08-29 16:10:27 +00:00
|
|
|
|
|
|
|
sub main'initseg
|
|
|
|
{
|
|
|
|
local($f)=@_;
|
|
|
|
local($tmp)=<<___;
|
|
|
|
OPTION DOTNAME
|
|
|
|
.CRT\$XIU SEGMENT DWORD PUBLIC 'DATA'
|
|
|
|
EXTRN _$f:NEAR
|
|
|
|
DD _$f
|
|
|
|
.CRT\$XIU ENDS
|
|
|
|
___
|
|
|
|
push(@out,$tmp);
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|