| R E G A R G ( )
| | | | | SOURCE: qdev_macros.txt 1.16 (12/09/2014) English AMIGA - PUBLIC
----------------------------------------------------------------------------
NAME
REGARG() - Var. definition macro that makes it possible
to assign it particular CPU register.
SYNOPSIS
REGARG(var, reg)
REGARG(<type> <name>, <register>)
FUNCTION
This macro can be used to declare the function arguments
in a way that the declarations can then be modified with
no direct code changes due to '__register' and '__asm'
aliases that can be redefined.
INPUTS
var - Normal variable declaration(like: LONG num).
reg - One of the m68xxx register name(like: d1).
RETURNS
No output.
BASES
None.
NOTES
Always use this macro to declare function arguments, so
that assembly interface can easily be modified anytime
giving you the ability to switch to arguments on stack.
SEE ALSO
REGVAR()
EXAMPLE
__saveds __interrupt LONG myfunc(REGARG(LONG num, d1))
{
return -(num);
}
BUGS
None known.
----------------------------------------------------------------------------
| |
| |