| R E G V A R ( )
| | | | | SOURCE: qdev_macros.txt 1.16 (12/09/2014) English AMIGA - PUBLIC
----------------------------------------------------------------------------
NAME
REGVAR() - Var. definition macro that makes it possible
to assign it particular CPU register.
SYNOPSIS
REGVAR(var, reg)
REGVAR(<type> <name>, <register>)
FUNCTION
This macro can be used to declare the function vars in
a way that the declarations are solid and cannot easily
be modified.
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 variables, so
that they are given the exact CPU registers through-out
the execution of the function.
This macro uses direct abbreviations such as 'register'
and 'asm'!
SEE ALSO
REGARG()
EXAMPLE
LONG myfunc(LONG in)
{
REGVAR(LONG num, d1) = in;
return -(num);
}
BUGS
None known.
----------------------------------------------------------------------------
| |
| |