Google
 

Trailing-Edge - PDP-10 Archives - cobol12c - putas1.mac
There are 7 other files named putas1.mac in the archive. Click here to see a list.
TITLE	PUTAS1 FOR COBOL V12C
SUBTTL	WRITE OUT AS1FIL WORD	AL BLACKINGTON/CAM

	SEARCH	COPYRT
	SALL

;COPYRIGHT (C) DIGITAL EQUIPMENT CORPORATION 1974, 1985
;ALL RIGHTS RESERVED.
;
;THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED
;ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH LICENSE.

	SEARCH	P
	%%P==:%%P

;EDITS
;V10*****************
;NAME	DATE		COMMENTS
;********************


TWOSEG
	.COPYRIGHT		;Put COPYRIGHT statement in .REL file.

RELOC	400000

ENTRY PUTAS1
EXTERNAL DEVDED

PUTAS1:	SOSG	AS1BHO+2	;BUFFER FULL?
	JRST	PUTASB		;YES--EMPTY IT
PUTASA:	IDPB	CH,AS1BHO+1	;PUT WORD INTO BUFFER
	POPJ	PP,

PUTASB:	OUT	AS1,		;WRITE BUFFER
	  JRST	PUTASA		;NO ERRORS--RETURN

	MOVEI	CH,AS1DEV	;ERROR -- WE LOSE
	JRST	DEVDED		;NEVER RETURN

EXTERNAL AS1BHO, AS1DEV

	END