Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-10 - 43,50517/putas1.mac
There are 7 other files named putas1.mac in the archive. Click here to see a list.
	TITLE	PUTAS1 FOR RPGII V1
	SUBTTL	WRITE OUT AS1FIL WORD

	TWOSEG
	RELOC	400000

	ENTRY	PUTAS1


PUTAS1:	SOSG	AS1BHO+2		; BUFFER FULL?
	JRST	PUTASB			; YES - EMPTY IT

PUTASA:	IDPB	CH,AS1BHO+1		; PUT WORD IN BUFFER
	POPJ	PP,			; EXIT

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

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

EXTERNAL AS1BHO, AS1DEV, DEVDED


	END