2 ### Class Gate68k: Create a AmigaOS gatestub file #############################
11 my $class = ref($proto) || $proto;
12 my $self = $class->SUPER::new
( @_ );
13 bless ($self, $class);
20 my $prototype = $params{'prototype'};
21 my $sfd = $self->{SFD
};
23 print "$prototype->{return}\n";
24 print "$gateprefix$prototype->{funcname}(";
30 my $prototype = $params{'prototype'};
31 my $argtype = $params{'argtype'};
32 my $argname = $params{'argname'};
33 my $argreg = $params{'argreg'};
34 my $argnum = $params{'argnum'};
35 my $sfd = $self->{SFD
};
41 print " $prototype->{___args}[$argnum] __asm(\"$argreg\")";
47 my $prototype = $params{'prototype'};
48 my $sfd = $self->{SFD
};
50 if ($libarg ne 'none' && !$prototype->{nb
}) {
51 if ($prototype->{numargs
} > 0 ) {
55 print " $sfd->{basetype} _base __asm(\"a6\")";
57 elsif ($prototype->{numargs
} == 0) {
68 print " return $libprefix$prototype->{funcname}(";
70 if ($libarg eq 'first' && !$prototype->{nb
}) {
72 print $prototype->{numargs
} > 0 ?
", " : "";
75 print join (', ', @
{$prototype->{___argnames
}});
77 if ($libarg eq 'last' && !$prototype->{nb
}) {
78 print $prototype->{numargs
} > 0 ?
", " : "";