| Q D E V _ H L P _ M K B A D D R ( )
| | | | | SOURCE: qdev_macros.txt 1.16 (12/09/2014) English INDEP - PUBLIC
----------------------------------------------------------------------------
NAME
QDEV_HLP_MKBADDR() - Turns C style address into BCPL
pointer.
SYNOPSIS
ptr = QDEV_HLP_MKBADDR(var);
[LONG] = QDEV_HLP_MKBADDR([APTR]);
FUNCTION
This macro allows to convert regular C address into
32bit BCPL pointer.
INPUTS
var - Anything that carries the 32bit address which
is multiple of LONG size.
RETURNS
Returns valid, scrambled BPTR pointer as long as the
input is multiple of 4 and an even value!
BASES
None.
NOTES
Must always get even address that is multiple of 4,
otherwise the descrambled address will be invalid!
SEE ALSO
QDEV_HLP_BADDR()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |