/ 
/ 
/                   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
/	EDIT # 2
/
/ COPYRIGHT DIGITAL EQUIPMENT CORP., MAYNARD, MASS.
/
/			2/24/71		R. MCLEAN
/
/	DETACH -- FORTRAN CALLABLE SUBROUTINE TO DETACH A DEVICE.
/
/	CALLING SEQUENCE:
/		CALL DETACH (LUN,IEV)
/		  LUN=LOGICAL UNIT NUMBER
/		  IEV=EVENT VARIABLE
/
	.GLOBL	DETACH,.DAA
DETACH	0
	JMS*	.DAA	/PICK UP CALLER'S ARGUMENTS
	JMP	ARGEND	/SKIP OVER ARGUMENTS
LUN	0
EVNTV	0
ARGEND	LAC	EVNTV	/PICK UP EVENT VARIABLE ADDRESS
	DAC	REQEV	/SAVE IT IN REQUEST -- CLEAR POINTER
	DZM	EVNTV	/SINCE IT IS OPTIONAL
	LAC*	LUN	/PICK UP REQUESTED LUN
	DAC	REQLUN
	CAL	DETCPB	/ISSUE REQUEST
	JMP*	DETACH	/RETURN
DETCPB	2500
REQEV	0
REQLUN	0
	.END	DETACH
