UTILITY - ATNUDGE2.ZIP - ASMUTILS.ASI

 
Output of file : ASMUTILS.ASI contained in archive : ATNUDGE2.ZIP

.XLIST
;ÕÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͸
;³ ;ASMUTILS.ASI Include file for .COM programs that use ³
;³ ; macros for Asmutils.Lib ³
;³ ;Last change: 03-Sep-1988 ³
;ÔÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ;
PSPDAT EQU 80H ;Command chars position in PSP.
STDOUT EQU 1 ;DOS standard output & error handles.
STDERR EQU 2
; ; Message call types.
AddLine EQU 1
NoRet EQU 2
ErrorMsg EQU 4
; ; First 4 macros for messages inline in CSEG.
IF1
; ; Message to stdout and abort subroutine.
NMessage MACRO Text,Extra
LOCAL EndPtr
CALL DISPL
DB EndPtr -$ -1 Extra
DB Text
EndPtr LABEL BYTE
ENDM
; ; Message to stdout and return to caller.
NRMessage MACRO Text,Extra
LOCAL EndPtr
CALL NDISPL
DB EndPtr -$ -1 Extra
DB Text
EndPtr LABEL BYTE
ENDM
; ;Error message and abort subroutine.
EMessage MACRO Text,Extra
LOCAL EndPtr
CALL EDISPL
DB EndPtr -$ -1 Extra
DB Text
EndPtr LABEL BYTE
ENDM
; ;Error message and return to caller.
ERMessage MACRO Text,Extra
LOCAL EndPtr
CALL ENDISPL
DB EndPtr -$ -1 Extra
DB Text
EndPtr LABEL BYTE
ENDM
ENDIF
; ; Macro for messages in special message segment.
IF1
DMessage MACRO OutSeq,MTyp
LOCAL MsgCount,OMPtr,EndPtr
MSGSEG SEGMENT
MsgCount DW EndPtr - OMPtr
OMPtr DB OutSeq
EndPtr LABEL BYTE
MSGSEG ENDS
IFNB
MOV AH,MTyp
ELSE
XOR AH,AH
ENDIF
MOV SI,OFFSET CGROUP:MsgCount
CALL DispDOSMsg
ENDM
ENDIF
.LIST