	.TITLE	JDIM	POSITIVE DIFFERENCE FOR J ARGS.
/ 
/ 
/                   FIRST PRINTING, FEBRUARY 1974
/ 
/ THE INFORMATION IN THIS DOCUMENT IS SUBJECT TO 
/ CHANGE WITHOUT NOTICE AND SHOULD NOT BE CONSTRUED
/ AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
/ DIGITAL EQUIPMENT CORPORATION ASSUMES NO RESPON-
/ SIBILITY FOR ANY ERRORS THAT MAY APPEAR IN THIS
/ DOCUMENT.
/ 
/ THE SOFTWARE DESCRIBED IN THIS DOCUMENT IS FUR-
/ NISHED TO THE PURCHASER UNDER A LICENSE FOR USE ON
/ A SINGLE COMPUTER SYSTEM AND CAN BE COPIED (WITH
/ INCLUSION OF DIGITAL'S COPYRIGHT NOTICE) ONLY FOR 
/ USE IN SUCH SYSTEM, EXCEPT AS MAY OTHERWISE BE PRO-
/ VIDED IN WRITING BY DIGITAL.
/ 
/ DIGITAL EQUIPMENT CORPORATION ASSUMES NO RESPONSIBILITY
/ FOR THE USE OR RELIABILITY OF ITS SOFTWARE ON EQUIP-
/ MENT THAT IS NOT SUPPLIED BY DIGITAL.
/ 
/ COPYRIGHT (C) 1974, BY DIGITAL EQUIPMENT CORPORATION
/ 
/ 
        .EJECT
/COPYRIGHT 1971, DIGITAL EQUIPMENT CORP., MAYNARD, MASS.
/FOR HARDWARE FLOATING POINT PROCESSOR (FPP), DEFINE 90 FPP,
/EDIT #001  6-17-71
	.GLOBL	JDIM, .DA,
	.IFUND %FPP
	.GLOBL .JG, .JJ
	.ENDC
	.IFUND	%FPP
	.DEFIN	ELD%,A
	JMS*	A		/EXTENDED INTEGER LOAD (.JG)
	.ENDM
	.ENDC
	.IFDEF	%FPP
ELD=713100
	.DEFIN	ELD%
	ELD
	.ENDM
	.ENDC
	.IFUND	%FPP
	.DEFIN	ESB%,A
	JMS*	A		/EXTENDED INTEGER SUB. [.JJ)
	.ENDM
	.ENDC
	.IFDEF	%FPP
ESB=710500
	.DEFIN	ESB%
	ESB
	.ENDM
	.ENDC
	.IFDEF %FPP
FZR=711200	/ZERO FPP AC
BPA=716604	/BR ON POS.
	.ENDC
/CALLING SEQUENCE--
/	JMS*	JDIM
/	JMP	.+3
/	.DSA	ARG1 ADDR.	/BIT #0=1 IF INDIRECT
/	.DSA	ARG2 ADDR.	/ "
JDIM	0
	JMS*	.DA
	JMP	JDIM03
JDIM01	0
JDIM02	0
JDIM03	ELD%	.JG		/LD. J INTO AC,MQ
	.DSA	JDIM01+400000	/ARG1
	ESB%	.JJ		/SUBTR. ARG1-ARG2
	.DSA	JDIM02+400000	/ARG2
	.IFDEF %FPP
	BPA
	JDIM+400000
	FZR
	0	/UNUSED
	JMP* JDIM
	.ENDC
	.IFUND %FPP
	SMA
	JMP*	JDIM		/RTN. POS. DIFFERENCE
	CLA			/NEG. DIFFERENCE: RTN. 0
	LMQ			/LD. MQ W/ 0
	JMP*	JDIM
	.ENDC
	.END
