blob: ed5d2e90959e946c9f9a1353084b4c328785e567 [file] [log] [blame]
swissChilif7f1e2b2021-12-31 14:42:43 -08001 %MACRO WRITESOUT 0
2 MOV AH, 09h
3 INT 21h
4 %ENDMACRO
5
6 %MACRO FLUSH 0
7 MOV AX, 0C00h
8 INT 21h
9 %ENDMACRO
10
11 %MACRO QUIT_PROC 0
12 MOV AX, 4C00h
13 INT 21h
14 %ENDMACRO
15
16 %MACRO GETSTDINSTATUS 0
17 MOV AH, 0Bh
18 INT 21h
19 %ENDMACRO
20
21 %MACRO READCIN 0
22 MOV AH, 1
23 INT 21h
24 %ENDMACRO
25
26 %MACRO WRITECOUT 0
27 MOV AH, 02h
28 INT 21h
29 %ENDMACRO
30
31 %DEFINE WORDSZ 2
32
33 %DEFINE ASCII_RETURN 0Dh
34 %DEFINE ASCII_NEWLINE 0Ah
swissChili7c626b92022-01-01 23:35:39 -080035
36 %DEFINE F_READ 0
37 %DEFINE F_WRITE 1
38 %DEFINE F_READ_WRITE 2
39
40 ;; DX - null-terminated file name
41 ;; AL - flags
42 %MACRO OPENF 0
43 MOV AH, 3Dh
44 INT 21h
45 %ENDMACRO
46
47 %MACRO WRITEF 0
48 MOV AH, 40h
49 INT 21h
50 %ENDMACRO
51
52 %MACRO CLOSEF 0
53 MOV AH, 3Eh
54 INT 21h
55 %ENDMACRO
56
57 %MACRO CREATF 0
58 MOV AH, 3Ch
59 INT 21h
60 %ENDMACRO