/ 
/ 
/                   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 #4
/
/ COPYRIGHT DIGITAL EQUIPMENT CORP., MAYNARD, MASS.
/
/			2/27/71		R. MCLEAN
/			1 MAR 73	T. MURRAY
/
/	SYNC -- FORTRAN CALLABLE SUBROUTINE TO ISSUE A SYNCRONIZE
/	DIRECTIVE.
/
/	CALLING SEQUENCE:
/		CALL SYNC (TN,IT,ITP,IEV)
/		  TN=TASK NAME
/		  IT=5 WORD ARRAY
/		  GL1=SYNCRONIZATION UNITS
/		  EL2=SCHEDULE DELTA TIME
/		  EL3=SCHEDULE DELTA UNITS
/		  EL4=RESCHEDULE INTERVAL
/		  EL5=INTERVAL UNITS
/		  IP=TASK PRIORITY
/		  IEV=EVENT VARIABLE
/
X11=11
X10=10
	.GLOBL	SYNC,.DAA,.FTSB
SYNC	0
	JMS*	.DAA	/PICK UP CALLER'S ARGUMENTS
	JMP	ARGEND	/SKIP OVER ARGUMENTS
TSKNM	0
UNTS	0
PRTY	0
EVNTV	0
ARGEND	LAC	EVNTV	/PICK UP EVENT VARIABLE
	DAC	REQEV	/ADDRESS
	DZM	EVNTV	/CLEAR ADDRESS SINCE IT IS OPTIONAL
	LAC*	PRTY
	DAC	REQPRI
	LAC	UNTS
	AAC	-1
	DAC*	(X11)	/SET UP TO
	LAC	(REQUNT-1) /MOVE ARRAY TO
	DAC*	(X10)	/CPB
	CLX
	LAC	(5)
	PAL
	LAC*	X11
	DAC*	X10
	AXS	1
	JMP	.-3
	JMS*	.FTSB	/CONVERT TASK NAME TO SIXBT
	TSKNM
	REQNM
	CAL	SYNCPB
	JMP*	SYNC	/RETURN
SYNCPB	14		/FUNCTION
REQEV	0
REQNM	0
	0
REQUNT	.BLOCK	5
REQPRI	0
	.END	SYNC
