	.TITLE	BOSTT
/ 
/ 
/                   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
/
/	E. KATZ	6/13/74
/
/	ALLOWS THE USER TO CONTROL WHETHER OR NOT
/	I/O DIRECTED TO THE TELETYPE WILL BE REDIRECTED
/	BY BOSS-15 TO THE LINE PRINTER.
/
/	TWO ENTRY POINTS ARE PROVIDED:
/	TTON SETS BIT 4 OF .SCOM+52, THUS ALLOWING TTY OUTPUT
/		TO BE PRINTED ON THE TELETYPE
/	TTOFF CLEARS BIT 4 OF .SCOM+52, THUS INSTRUCTING BOSS
/		TO REDIRECT TTY OUTPUT TO THE LINE PRINTER.
/
	.GLOBL	TTON,TTOFF
/
.SCOM=100
ON4=20000
OFF4=757777
/
TTON	0			/OUTPUT ON TTY
	LAC*	(.SCOM+52	/GET CONTROL WORD
	AND	(OFF4		/CLEAR BIT 4
	XOR	(ON4		/SET BIT 4
	DAC*	(.SCOM+52	/RESTORE CONTROL WORD
	JMP*	TTON		/RETURN
/
/
TTOFF	0			/OUTPUT TO LP
	LAC*	(.SCOM+52	/GET CONTROL WORD
	AND	(OFF4		/CLEAR BIT 4
	DAC*	(.SCOM+52	/RESTORE CONTROL WORD
	JMP*	TTOFF		/RETURN
	.END
