summaryrefslogtreecommitdiff
path: root/v4.0/src/INC/DIRENT.INC
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/INC/DIRENT.INC')
-rw-r--r--v4.0/src/INC/DIRENT.INC61
1 files changed, 61 insertions, 0 deletions
diff --git a/v4.0/src/INC/DIRENT.INC b/v4.0/src/INC/DIRENT.INC
new file mode 100644
index 0000000..1961721
--- /dev/null
+++ b/v4.0/src/INC/DIRENT.INC
@@ -0,0 +1,61 @@
1; SCCSID = @(#)dirent.asm 1.1 85/04/10
2; SCCSID = @(#)dirent.asm 1.1 85/04/10
3Break <Directory entry>
4
5;
6; +---------------------------+
7; | (12 BYTE) filename/ext | 0 0
8; +---------------------------+
9; | (BYTE) attributes | 11 B
10; +---------------------------+
11; | (10 BYTE) reserved | 12 C
12; +---------------------------+
13; | (WORD) time of last write | 22 16
14; +---------------------------+
15; | (WORD) date of last write | 24 18
16; +---------------------------+
17; | (WORD) First cluster | 26 1A
18; +---------------------------+
19; | (DWORD) file size | 28 1C
20; +---------------------------+
21;
22; First byte of filename = E5 -> free directory entry
23; = 00 -> end of allocated directory
24; Time: Bits 0-4=seconds/2, bits 5-10=minute, 11-15=hour
25; Date: Bits 0-4=day, bits 5-8=month, bits 9-15=year-1980
26;
27
28dir_entry STRUC
29dir_name DB 11 DUP (?) ; file name
30dir_attr DB ? ; attribute bits
31dir_codepg dw ? ; code page DOS 4.00
32dir_extcluster dw ? ; extended attribute starting cluster
33dir_attr2 db ? ; reserved
34dir_pad DB 5 DUP (?) ; reserved for expansion
35dir_time DW ? ; time of last write
36dir_date DW ? ; date of last write
37dir_first DW ? ; first allocation unit of file
38dir_size_l DW ? ; low 16 bits of file size
39dir_size_h DW ? ; high 16 bits of file size
40dir_entry ENDS
41
42attr_read_only EQU 1h
43attr_hidden EQU 2h
44attr_system EQU 4h
45attr_volume_id EQU 8h
46attr_directory EQU 10h
47attr_archive EQU 20h
48attr_device EQU 40h ; This is a VERY special bit.
49 ; NO directory entry on a disk EVER
50 ; has this bit set. It is set non-zero
51 ; when a device is found by GETPATH
52
53attr_all EQU attr_hidden+attr_system+attr_directory
54 ; OR of hard attributes for FINDENTRY
55
56attr_ignore EQU attr_read_only+attr_archive+attr_device
57 ; ignore this(ese) attribute(s) during
58 ; search first/next
59
60attr_changeable EQU attr_read_only+attr_hidden+attr_system+attr_archive
61 ; changeable via CHMOD