%MACRO WRITESOUT 0 | |
MOV AH, 09h | |
INT 21h | |
%ENDMACRO | |
%MACRO FLUSH 0 | |
MOV AX, 0C00h | |
INT 21h | |
%ENDMACRO | |
%MACRO QUIT_PROC 0 | |
MOV AX, 4C00h | |
INT 21h | |
%ENDMACRO | |
%MACRO GETSTDINSTATUS 0 | |
MOV AH, 0Bh | |
INT 21h | |
%ENDMACRO | |
%MACRO READCIN 0 | |
MOV AH, 1 | |
INT 21h | |
%ENDMACRO | |
%MACRO WRITECOUT 0 | |
MOV AH, 02h | |
INT 21h | |
%ENDMACRO | |
%DEFINE WORDSZ 2 | |
%DEFINE ASCII_RETURN 0Dh | |
%DEFINE ASCII_NEWLINE 0Ah | |
%DEFINE F_READ 0 | |
%DEFINE F_WRITE 1 | |
%DEFINE F_READ_WRITE 2 | |
;; DX - null-terminated file name | |
;; AL - flags | |
%MACRO OPENF 0 | |
MOV AH, 3Dh | |
INT 21h | |
%ENDMACRO | |
%MACRO WRITEF 0 | |
MOV AH, 40h | |
INT 21h | |
%ENDMACRO | |
%MACRO CLOSEF 0 | |
MOV AH, 3Eh | |
INT 21h | |
%ENDMACRO | |
%MACRO CREATF 0 | |
MOV AH, 3Ch | |
INT 21h | |
%ENDMACRO |