HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func cmstacklimit

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Returns the virtual address for the limit of a process's compatibility mode stack.

Syntax

   cmstacklimit (pin)  

The virtual address of the last usable byte in the CM stack is returned.

Formal Declaration

   cmstacklimit:lptr (pin:u16) 

Parameters

pin

The process identification number (PIN) for which the virtual address of the CM stack limit is to be returned.

Examples

   $nmdebug > wl cmstacklimit(%10)

   $2c4.40015fff

Display the virtual address of the CM stack limit for pin %10.

   $nmdat > wl "CM stack size = ", cmstacklimit(pin) - cmstackbase(PIN) +1

   CM stack size = $4350

Calculate and display the CM stack length (in bytes) for the current PIN.

Limitations, Restrictions

If the PIN does not exist, the function result is undefined and an error status is set.

Feedback to webmaster