.MCALL .MODULE .MODULE IADDR,VERSION=04,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 Declarations .NLIST .ENABL LC .DSABL GBL .NLIST CND .LIST ; ++ ; FACILITY: ; ; RT-11 System Subroutine Library ; ; ENVIRONMENT: ; ; This routine can be used by any job running in a single-job ; or multi-job environment. It uses "TRAP" to provide error ; processing. ; ; INCLUDE FILES: ; ; ; EXTERNAL REFERENCES: ; .GLOBL $NXADR ; Entry point to next address routine. .GLOBL $SYSLB ; Include system library work area. .WEAK $MSARG ; Trap code for missing argument .SBTTL IADDR - Fortran-callable Routine ; ++ ; FUNCTIONAL DESCRIPTION: ; ; The IADDR function returns the 16-bit virtual address of its passed ; argument. ; ; CALLING SEQUENCE: ; ; i = IADDR( arg ) ; ; INPUT PARAMETERS: ; ; R5 - address of IADDR's argument block ; ; 0(R5) - argument count of IADDR call ; 2(R5) - address of entity to return 16-bit virtual address of ; ; OUTPUT PARAMETERS: ; ; R0 - 16-bit virtual address of passed entity ; ; ROUTINE VALUE: ; ; 16-bit virtual address of passed entity ; ; -- .PSECT SYS$I IADDR:: ; Entry point to IADDR routine. MOV (R5)+,R4 ; R4 <- argument count. CALL $NXADR ; Get -> 'arg' argument; it's returned in R0 ; if supplied by caller. BCC 10$ ; If CS, error - 'arg' argument wasn't ; supplied; report missing argument in call. TRAP $MSARG ; Handle any missing arguments in call 10$: RETURN ; Return to caller with 16-bit virtual address ; of passed entity in R0. .END