Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 4 - Memory Management Utilities / Memory Management Utilities Reference
Routines / Manipulating Memory Addresses


StripAddress

Use the StripAddress function to strip the flag bits from a 24-bit memory address.

FUNCTION StripAddress (address: UNIV Ptr): Ptr;
address
The address to strip.
DESCRIPTION
The StripAddress function returns a pointer that references the same address
passed in the address parameter, but in a form that is comprehensible to the 32-bit Memory Manager.

The effect of the StripAddress function depends on the startup mode of the Memory Manager, not on the current mode. Thus, if the Memory Manager started up in 32-bit mode, the address passed to StripAddress is unchanged (because it already must be a 32-bit address). If the Memory Manager started up in 24-bit mode, the function returns the low-order 3 bytes of the address. You should not pass valid 32-bit addresses to StripAddress if the Memory Manager started up in 24-bit mode.

ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit for StripAddress are
Registers on entry
D0The address to strip
Registers on exit
D0The function result


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996