Important: The information in this document is obsolete and should not be used for new development.
Translate24To32
You can use theTranslate24To32function to map 24-bit addresses into the 32-bit address space.
FUNCTION Translate24To32 (addr24: UNIV Ptr): Ptr;
addr24- An address that is meaningful to the 24-bit Memory Manager.
DESCRIPTION
TheTranslate24To32function translates the address specified by theaddr24parameter from 24-bit into 32-bit addressing mode and returns that address. Ifaddr24is already a 32-bit address, the function returns it unchanged.Unlike the
StripAddressfunction, Translate24To32 does not necessarily return an address that can be used in 24-bit mode. Also, you cannot meaningfully call Translate24To32 on the result of a previous translation.SPECIAL CONSIDERATIONS
You need to call Translate24To32 only if you use 24-bit addresses while communicating with external hardware in 32-bit mode and virtual memory is enabled. See "Translating Memory Addresses" on page 4-23 for details.ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit forTranslate24To32are
Registers on entry D0 A 24-bit addressing mode address
Registers on exit D0 The translated address