summaryrefslogtreecommitdiff
path: root/v4.0/src/INC/DPB.INC
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/INC/DPB.INC')
-rw-r--r--v4.0/src/INC/DPB.INC35
1 files changed, 35 insertions, 0 deletions
diff --git a/v4.0/src/INC/DPB.INC b/v4.0/src/INC/DPB.INC
new file mode 100644
index 0000000..651f5d0
--- /dev/null
+++ b/v4.0/src/INC/DPB.INC
@@ -0,0 +1,35 @@
1; SCCSID = @(#)dpb.asm 1.1 85/04/10
2; SCCSID = @(#)dpb.asm 1.1 85/04/10
3BREAK <DPB structure>
4;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----;
5; C A V E A T P R O G R A M M E R ;
6; ;
7dpb STRUC
8dpb_drive DB ? ; Logical drive # assoc with DPB (A=0,B=1,...)
9dpb_UNIT DB ? ; Driver unit number of DPB
10dpb_sector_size DW ? ; Size of physical sector in bytes
11dpb_cluster_mask DB ? ; Sectors/cluster - 1
12dpb_cluster_shift DB ? ; Log2 of sectors/cluster
13dpb_first_FAT DW ? ; Starting record of FATs
14dpb_FAT_count DB ? ; Number of FATs for this drive
15dpb_root_entries DW ? ; Number of directory entries
16dpb_first_sector DW ? ; First sector of first cluster
17dpb_max_cluster DW ? ; Number of clusters on drive + 1
18dpb_FAT_size DW ? ;;Number of records occupied by FAT
19dpb_dir_sector DW ? ; Starting record of directory
20dpb_driver_addr DD ? ; Pointer to driver
21dpb_media DB ? ; Media byte
22dpb_first_access DB ? ; This is initialized to -1 to force a media
23 ; check the first time this DPB is used
24dpb_next_dpb DD ? ; Pointer to next Drive parameter block
25dpb_next_free DW ? ; Cluster # of last allocated cluster
26dpb_free_cnt DW ? ; Count of free clusters, -1 if unknown
27dpb ENDS
28
29DPBSIZ EQU SIZE dpb ; Size of the structure in bytes
30
31DSKSIZ = dpb_max_cluster ; Size of disk (temp used during init only)
32; ;
33; C A V E A T P R O G R A M M E R ;
34;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----;
35 \ No newline at end of file