Important: The information in this document is obsolete and should not be used for new development.
GetPageState
To obtain the state of a page of logical memory, use theGetPageState
function.
FUNCTION GetPageState (address: UNIV Ptr): PageState;
address
- An address in the page whose state you want to determine.
DESCRIPTION
TheGetPageState
function returns the page state of the page containing the address passed in theaddress
parameter. The returned value is one of these constants:
TYPE PageState = Integer; CONST kPageInMemory = 0; {page is in RAM} kPageOnDisk = 1; {page is on disk} kNotPaged = 2; {address is not paged}ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theGetPageState
function are
Trap macro Selector _DebugUtil $0004 The registers on entry and exit for this routine are
Registers on entry A0 Address in the page whose state is to be determined D0 Selector code
Registers on exit D0 Page state