.MCALL .MODULE .MODULE ISPY,VERSION=08,COMMENT=,IDENT=NO,LIB=YES ; Copyright (c) 1998 by Mentec, Inc., Nashua, NH. ; All rights reserved ; ; This software is furnished under a license for use only on a ; single computer system and may be copied only with the ; inclusion of the above copyright notice. This software, or ; any other copies thereof, may not be provided or otherwise ; made available to any other person except for use on such ; system and to one who agrees to these license terms. Title ; to and ownership of the software shall at all times remain ; in Mentec, Inc. ; ; The information in this document is subject to change without ; notice and should not be construed as a commitment by Digital ; Equipment Corporation, or Mentec, Inc. ; ; Digital and Mentec assume no responsibility for the use or ; reliability of its software on equipment which is not supplied ; by Digital or Mentec, and listed in the Software Product ; Description. .SBTTL Module Declaration .NLIST .ENABL LC .DSABL GBL .NLIST CND .LIST ; ++ ; FACILITY: ; ; RT-11 System Subroutine Library ; ; CALLABLE ENTRIES: ; ; $GVAL ; ; ENVIRONMENT: ; ; This routine can be used by any job running in a single-job or ; multi-job environment. ; ; ; INCLUDE FILES: ; ; SYSMAC.SML ; RT-11 system macro library. .MCALL .GVAL ; GVAL programmed request. ; ; EXTERNAL REFERENCES: ; .GLOBL $SYSLB ; Include system library work area. .SBTTL $GVAL - macro callable routine ; ; ++ ; FUNCTIONAL DESCRIPTION: ; ; The $GVAL function returns the value of a specified monitor fixed ; offset location. ; ; CALLING SEQUENCE: ; ; MOV #offset,R0 ; CALL $GVAL ; MOV R0,value ; ; INPUT PARAMETERS: ; ; R0 - offset whose value is to be returned ; ; OUTPUT PARAMETERS: ; ; R0 - value of monitor fixed offset location ; ; ROUTINE VALUE: ; ; value of monitor fixed offset location ; ; ERRORS: ; ; Carry set, value in error byte in SYSCOM ; ; NOTE: ISPY::, late of this module will now be found in IPUT.MAC. ; -- .PSECT SYS$I .ENABL LSB $GVAL:: ; Entry point for system library components. MOV R0,-(SP) ; Store 'ioffset' in GVAL's argument block. TST -(SP) ; Allocate remaining space required for GVAL's ; argument block. .GVAL SP ; Get value of monitor fixed offset location. BIT (SP)+,(SP)+ ;*C* Purge stack of argument block. RETURN ; Return to caller with offset value in R0. .DSABL LSB .END