MTH$IISIGN      IISIGN function                                  21-AUG-1978 19:06:12   VAX-11 MACRO X0.3-11               Page   0

TABLE OF CONTENTS   



   (2)     100  HISTORY		; Detailed Current Edit History

   (3)     100  DECLARATIONS

   (4)     100  MTH$IISIGN

MTH$IISIGN      IISIGN function                                  21-AUG-1978 19:06:12   VAX-11 MACRO X0.3-11               Page   1

0-2                                                                                                                              (1)



                                     0000   100 	.TITLE	MTH$IISIGN	IISIGN function

                                     0000   200 	.IDENT	/0-2/		; File: MTHIISIGN.MAR

                                     0000   300 

                                     0000   400 ;

                                     0000   500 ; Copyright (C) 1977

                                     0000   600 ; Digital Equipment Corporation, Maynard, Massachusetts 01754

                                     0000   700 ;

                                     0000   800 ; This software is furnished under a license for use only on a single

                                     0000   900 ; computer  system  and  may be copied only with the inclusion of the

                                     0000  1000 ; above copyright notice. This software, or any other copies thereof,

                                     0000  1100 ; may not be provided or otherwise made available to any other person

                                     0000  1200 ; except for use on such system and to one who agree to these license 

                                     0000  1300 ; terms.  Title to  and  ownership of the software shall at all times 

                                     0000  1400 ; remain in DEC.

                                     0000  1500 ;

                                     0000  1600 ; The information in the software is subject to change without notice

                                     0000  1700 ; and should  not  be construed  as a commitment by Digital Equipment 

                                     0000  1800 ; Corporation.

                                     0000  1900 ;

                                     0000  2000 ; DEC assumes  no  responsibility  for the use or  reliability of its

                                     0000  2100 ; software on equipment which is not supplied by DEC.

                                     0000  2200 ;

                                     0000  2300 ;

                                     0000  2400 ; FACILITY: MATH LIBRARY

                                     0000  2500 ;++

                                     0000  2600 ; ABSTRACT:

                                     0000  2700 ;

                                     0000  2800 ;

                                     0000  2900 ;--

                                     0000  3000 ;

                                     0000  3100 ; VERSION: 0

                                     0000  3200 ;

                                     0000  3300 ; HISTORY:

                                     0000  3400 ;

                                     0000  3500 ; AUTHOR:

                                     0000  3600 ;	Jonathan M. Taylor, 14-JUL-77: Version 0

                                     0000  3700 ;

                                     0000  3800 ; MODIFIED BY:

                                     0000  3900 ;

                                     0000  4000 ;

                                     0000  4100 ;

MTH$IISIGN      IISIGN function                                  21-AUG-1978 19:06:12   VAX-11 MACRO X0.3-11               Page   2

0-2             HISTORY  ; Detailed Current Edit History                                                                         (2)



                                     0000   100 	.SBTTL	HISTORY		; Detailed Current Edit History

                                     0000   200 

                                     0000   300 

                                     0000   400 ; Edit History for Version 0 of MTH$IISIGN

                                     0000   500 ;

                                     0000   600 ; 0-2	- Remove MTH$FLAG_JACKET.  TNH 5-July-78

MTH$IISIGN      IISIGN function                                  21-AUG-1978 19:06:12   VAX-11 MACRO X0.3-11               Page   3

0-2             DECLARATIONS                                                                                                     (3)



                                     0000   100 	.SBTTL	DECLARATIONS

                                     0000   200 

                                     0000   300 ;

                                     0000   400 ; INCLUDE FILES:

                                     0000   500 ;

                                     0000   600 

                                     0000   700 ;

                                     0000   800 ; EXTERNAL SYMBOLS:

                                     0000   900 ;

                                     0000  1000 

                                     0000  1100 ;

                                     0000  1200 ; MACROS:

                                     0000  1300 ;

                                     0000  1400 

                                     0000  1500 ;

                                     0000  1600 ; PSECT DECLARATIONS:

                                 00000000  1700 	.PSECT	MTH$CODE	PIC, SHR, LONG, EXE, NOWRT

                                     0000  1800 

                                     0000  1900 ;

                                     0000  2000 ; EQUATED SYMBOLS:

                                     0000  2100 ;

                                     0000  2200 

                                     0000  2300 ;

                                     0000  2400 ; OWN STORAGE:

                                     0000  2500 ;

MTH$IISIGN      IISIGN function                                  21-AUG-1978 19:06:12   VAX-11 MACRO X0.3-11               Page   4

0-2             MTH$IISIGN                                                                                                       (4)



                                     0000   100 	.SBTTL	MTH$IISIGN

                                     0000   200 

                                     0000   300 ;++

                                     0000   400 ; FUNCTIONAL DESCRIPTION:

                                     0000   500 ;

                                     0000   600 ;

                                     0000   700 ; CALLING SEQUENCE:

                                     0000   800 ;	NONE

                                     0000   900 ;

                                     0000  1000 ;

                                     0000  1100 ; INPUT PARAMETERS:

                                     0000  1200 ;	NONE

                                     0000  1300 ;

                                     0000  1400 ; IMPLICIT INPUTS:

                                     0000  1500 ;	NONE

                                     0000  1600 ;

                                     0000  1700 ; OUTPUT PARAMETERS:

                                     0000  1800 ;	NONE

                                     0000  1900 ;

                                     0000  2000 ; IMPLICIT OUTPUTS:

                                     0000  2100 ;	NONE

                                     0000  2200 ;

                                     0000  2300 ; COMPLETION CODES:

                                     0000  2400 ;	NONE

                                     0000  2500 ;

                                     0000  2600 ; SIDE EFFECTS:

                                     0000  2700 ;	NONE

                                     0000  2800 ;

                                     0000  2900 ;--

                                     0000  3000 

                               0000' 0000  3100 	.ENTRY	MTH$IISIGN,	^M<>

            50         04 BC     B0  0002  3300 	MOVW	@4(AP), R0	; R0 = arg1

                          09     19  0006  3400 	BLSS	NEGARG		; branch if negative arg

                                     0008  3500 

                                     0008  3600 ; arg1 is non-negative, check sign of arg2

                                     0008  3700 ;

                       08 BC     B5  0008  3800 	TSTW	@8(AP)		; check sign of arg2

                          03     18  000B  3900 	BGEQ	EXIT		; return if both positive

                                     000D  4000 NEGATE:

            50            50     AE  000D  4100 	MNEGW	R0, R0		; negate arg1

                                     0010  4200 EXIT:

                                 04  0010  4300 	RET

                                     0011  4400 

                                     0011  4500 ; arg1 is negative, check sign of arg2

                                     0011  4600 ;

                                     0011  4700 NEGARG:

                       08 BC     B5  0011  4800 	TSTW	@8(AP)		; test sign of arg2

                          F7     18  0014  4900 	BGEQ	NEGATE		; negate arg1 if arg2 positive

                                 04  0016  5000 	RET

                                     0017  5100 

                                     0017  5200 

                                     0017  5300 	.END

MTH$IISIGN      IISIGN function                                  21-AUG-1978 19:06:12   VAX-11 MACRO X0.3-11               Page   5

SYMBOL TABLE                                                                                                                     (4)



EXIT             00000010 R     02   

FOR$K_ERR_PREFX= 00000018            

MTH$IISIGN       00000000 RG    02   

MTH$K_ERR_PREFX= 00000016            

MTH__FLOOVEMAT = 00000058            

MTH__FLOUNDMAT = 00000059            

MTH__INVARG    = 00000051            

MTH__LOGZERNEG = 00000053            

MTH__SINSIGLOS = 00000057            

MTH__SQUROONEG = 00000054            

MTH__UNDEXP    = 00000052            

MTH__WRONUMARG = 00000050            

NEGARG           00000011 R     02   

NEGATE           0000000D R     02   





PROGRAM SECTION SYNOPSIS



.  ABS  .        00000000      00     NOPIC   USR   CON   ABS   LCL NOSHR NOEXE NORD  NOWRT BYTE  

. BLANK .        00000000      01     NOPIC   USR   CON   REL   LCL NOSHR   EXE   RD    WRT BYTE  

MTH$CODE         00000017      02       PIC   USR   CON   REL   LCL   SHR   EXE   RD  NOWRT LONG  





THERE WERE NO ERRORS OR WARNINGS.

28016. BYTES LEFT IN FREE MEMORY POOL.

OBJ$:MTHIISIGN,LIS$:MTHIISIGN/-SP=LIB$:S/ML,SRC$:P,MTHIISIGN

0 MLB DIR RDS - 0 GETS TO DEFINE 0 MACROS. 2 INTER. FILE WRITES. 

