	.TITLE	EOF	(ALSO IOCHECK) CHECK EOF ON LAST INPUT
/ 
/ 
/                   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.
/EDIT #000
/
/FORTRAN SUBROUTINE WITH .DAT SLOT AND STATEMENT NUMBER ARGUMENTS
/  WHICH EXITS TO FIRST STATEMENT NUMBER FOR EOF SENSED ON LAST
/  INPUT TO SPECIFIED SLOT AND TO SECOND STATEMENT NUMBER IF NO
/  EOF SENSED.
/
/R.E.F.
/
/--INTERNAL GLOBALS
	.GLOBL	EOF
	.GLOBL	IOCHEC
/--EXTERNAL GLOBALS
	.GLOBL	UNIT
	.GLOBL	.DA		/GET ARG.
/CALLING SEQUENCE--
/	JMS*	EOF (IOCHEC)
/	JMP	.+4
/	.DSA	(SLOT
/	.DSA	ST. NUM. ADDR.
/	.DSA	ST. NUM. ADDR.
IOCHEC=.
EOF	0
	JMS*	.DA
	JMP	EOF01
ADSL	0			/SLOT ADDR.
ADESN	0			/ADDR. OF EOF DESTIN.
ADNESN	0			/ADDR. OF NO EOF DESTIN.
EOF01	LAC	ADSL
	DAC	A1D
	LAC	ADESN
	DAC	A4EF
	LAC	ADNESN
	DAC	A2NEF
	DAC	A3NEF
	DAC	A5NEF
/NOW, JMP TO UNIT SUBRTN. TO DO ACTUAL DETECTION 
	JMS*	UNIT
	JMP	EOF02
A1D	0			/SLOT ADDR.
A2NEF	0			/NO EOF
A3NEF	0			/NO EOF
A4EF	0			/EOF
A5NEF	0			/NO EOF
EOF02	JMP*	EOF
	.END
