;+ ; Copyright 1981. Duke University. ; ; General permission is hereby granted to copy, but not for ; profit, this program for use on any computer system provided ; that this copyright notice and attribution is retained. ; ; Abstract: YMPRINT ; ; This macro file defines the PRINT macro. This macro ; is used to make I/O from assembler somewhat less ; painful than would otherwise be the case. ; ; Written: 08-Oct-1981, -1.0.0-, Bruce C. Wright ; Modified: ; Verified: 18-Oct-1981, -1.0.0-, Bruce C. Wright ;- .MACRO PRINT STRING,ARGLST,?X .ENABL LC $$$=0 .IRP Y, MOV Y,-(SP) $$$=$$$+1 .ENDR MOV #$$$,-(SP) JSR PC,X .ASCIZ ~STRING~ .EVEN X: JSR PC,$PRINT ADD #<$$$*2>+4,SP .ENDM