Raw File
1 ; _____________________________________________
2 ; | |
3 ; | Project: APPLER |
4 ; | File: DM.INC |
5 ; | Compiler: 16-bit TASM (2.5) |
6 ; | |
7 ; | Subject: Disk Manager |
8 ; | |
9 ; | Author: Emil Dotchevski |
10 ; |_____________________________________________|
11
12 DTA_S struc
13 Reserved db 15h dup (0)
14 Attributes db 0
15 Time dw 0
16 Date dw 0
17 FileSize dd 0
18 FileSpec db 0Dh dup (0)
19 ends
20
21 DiskDescription struc
22 FileName db 0Dh dup (0)
23 FileType db 0
24 FileFlag db 0
25 DiskDescription ends
26
27 ; File Attributes Bitmaps:
28 FA_READ_ONLY = 00000001b
29 FA_HIDDEN = 00000010b
30 FA_SYSTEM = 00000100b
31 FA_VOLUME_LABEL = 00001000b
32 FA_DIRECTORY = 00010000b
33 FA_ARCHIVE = 00100000b
34
35 ; File Flags Bitmaps:
36 FF_DAMAGED? = 00000001b
37 FF_MODIFYTYPE? = 00000010b
38 FF_READ_ONLY? = 00000100b
39 FF_INSERTED1? = 00001000b
40 FF_INSERTED2? = 00010000b
41
42 ; File Type Codes:
43 FD_DIRECTORY = 0
44 FD_NIBBLE = 1
45 FD_DOS33 = 2
46
47 FindFirst macro
48 mov ah,4Eh
49 int 21h
50 endm
51
52 FindNext macro
53 mov ah,4Fh
54 int 21h
55 endm
56
57 MS_NORMAL = 0
58 MS_ERROR = 1
59
Generated by GNU Enscript 1.6.6, and GophHub 1.3.