<< Previous | Next >>

paddrDS

unsigned long paddrDS( void * pointer );

Description

Converts a "Data Segment" logical pointer into its physical address. This function assumes the pointer points to static (excluding bbram) data, which eliminates some runtime testing as compared with the more general function, paddr().

paddrDS() will generate incorrect results if used for:

  • addresses in the root code (that is, program code or constants)

  • bbram (only available in fast RAM compile mode)

  • stack (that is, auto variables)

  • xmem segments

Parameters

pointer
Logical static (non-bbram) data pointer to convert.

Return value

The physical address of the pointer.

Library

XMEM.LIB

See Also

paddr, paddrSS


Dynamic C Functions << Previous | Next >> rabbit.com