annotate defs/rbfdefs @ 2011:484c5493599a

Slight massaging for looks
author boisy
date Mon, 06 Mar 2006 04:08:59 +0000
parents 34868794d297
children e396d4f24b27
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1946
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
1 IFNE RBFDEFS-1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
2
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
3 RBFDEFS set 1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
4
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
5 ********************************************************************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
6 * RBFDefs - Random Block File Manager Definitions
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
7 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
8 * $Id$
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
9 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
10 * RBF stands for 'Random Block Filemanager' and is a package of subroutines
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
11 * that define the logical structure of a disk and allows access to the files
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
12 * in that structure.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
13 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
14 * The data structures in this file give RBF its 'personality' and are used
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
15 * by RBF itself, as well as applications that will require disk I/O.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
16 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
17 * Edt/Rev YYYY/MM/DD Modified by
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
18 * Comment
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
19 * ------------------------------------------------------------------
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
20 * 1982/07/13 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
21 * PD.Exten added to path descriptor and PE Entries defined.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
22 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
23 * 1982/07/15 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
24 * V.FileHd inserted in driver static storage.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
25 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
26 * 1982/09/10 WGP
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
27 * Level One/Level Two condionals added.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
28 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
29 * 1982/09/17 WGP
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
30 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
31 * 1982/09/17 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
32 * PD.SLE renamed to PD.Creat.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
33 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
34 * 1982/09/17 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
35 * V.DiskID, V.BMapSz, V.MapSct added for smart multi-sector bitmap searching.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
36 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
37 * 1982/09/20 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
38 * Reserved areas added in static storage.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
39
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
40 * 1983/06/07 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
41 * Added InDriver flag in PD.SMF.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
42 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
43 * 1983/06/13 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
44 * Added PE.Req tmp save for PE.Lock.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
45 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
46 * 1983/08/08 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
47 * Reserved PD.SToff for Japanese.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
48 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
49 * 1983/11/19 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
50 * Added V.ResBit in drive tables.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
51 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
52 * 1983/12/12 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
53 * Added PE.Prior to save process priority.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
54 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
55 * 1983/12/13 Robert F. Doggett
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
56 * Added BufBusy bit in state flag (PD.SMF).
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
57 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
58 * 1984/07/06 Mark G. Hawkins
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
59 * Added Bit Definitions for DD.FMT.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
60 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
61 * 1987/06/23 Kevin K. Darling
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
62 * Updated with Dev Desc Info
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
63 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
64 * 2003/06/02 Boisy G. Pitre
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
65 * Updated comments for clarity.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
66 * Added TYP.256-TYP.2048 definitions for future expansion.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
67 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
68 * 2004/04/14 Boisy G. Pitre
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
69 * Added new entries to device descriptor as per OS-9 Level One V2.00.00
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
70 * addendum. Pointed out by Rodney Hamilton.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
71 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
72 * 2005/05/31 P.Harvey-Smith.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
73 * Added defines for bit 2 of IT.DNS, which the format command uses to
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
74 * determine if a drive should have it's track 0 as single or double density
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
75 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
76 * 2005/11/23 Robert Gault
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
77 * Added IT.MPI giving it duplicate location with IT.TFM. This will not be
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
78 * transferred to the path descriptor, thus the equ * rahter than rmb 1.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
79 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
80 * 2005/12/11 Boisy G. Pitre
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
81 * Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
82
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
83 nam RBFDefs
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
84 ttl Random Block File Manager Definitions
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
85
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
86
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
87 pag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
88 *******************************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
89 * RBF Device Descriptor Offsets
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
90 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
91 * These definitions are for RBF device descriptors.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
92
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
93 org M$DTyp
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
94 rmb 1 Device type (DT.RBF)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
95 IT.DRV rmb 1 Drive number
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
96 IT.STP rmb 1 Step rate
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
97 IT.TYP rmb 1 Disk device type information
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
98 IT.DNS rmb 1 Density capability
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
99 IT.CYL rmb 2 Number of cylinders
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
100 IT.SID rmb 1 Number of surfaces
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
101 IT.VFY rmb 1 Verify disk writes (0 = verify, 1 = don't)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
102 IT.SCT rmb 2 Default sectors/track
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
103 IT.T0S rmb 2 Default sectors/track for track 0 sector 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
104 IT.ILV rmb 1 Sector interleave offset
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
105 IT.SAS rmb 1 Segment allocation size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
106 * The following fields are from the OS-9 Level One V2.00.00 Addendum
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
107 IT.TFM rmb 1 DMA Transfer Mode
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
108 IT.Exten rmb 2 Path Extension (PE) for record locking
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
109 IT.SToff rmb 1 Sector/Track offsets (for "foreign" disk formats)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
110 * The following fields are not copied to the path descriptor
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
111 IT.WPC rmb 1 Write precomp cyl/4 (HD)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
112 IT.OFS rmb 2 Starting cylinder offset (HD)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
113 IT.RWC rmb 2 Reduced write current cylinder (HD)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
114 * These fields have been added because of SuperDriver. They probably
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
115 * can be used in other drivers
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
116 org IT.WPC
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
117 IT.SOFF1 rmb 1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
118 IT.SOFF2 rmb 1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
119 IT.SOFF3 rmb 1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
120 IT.LLDRV rmb 2
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
121 IT.MPI rmb 1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
122
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
123
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
124 * IT.TYP Definitions
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
125 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
126 TYP.HARD equ %10000000 Hard disk
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
127 TYP.FLP equ %00000000 Floppy disk
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
128 TYP.NSF equ %01000000 Non-standard format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
129 TYP.SOF equ %00000000 Standard NitrOS-9 format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
130
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
131 * IT.TYP bit definitions if bit 7 of IT.TYP is set (hard disk)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
132 TYPH.256 equ %00000000 256 byte sector media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
133 TYPH.512 equ %00000001 512 byte sector media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
134 TYPH.1024 equ %00000010 1024 byte sector media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
135 TYPH.2048 equ %00000011 2048 byte sector media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
136 TYPH.SSM equ %00000011 Sector size mask
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
137 TYPH.DRSV equ %00001100 Driver-reserved bits
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
138 TYPH.DSQ equ %00010000 Drive size query flag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
139
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
140 * IT.TYP bit definitions if bit 7 of IT.TYP is clear (floppy disk)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
141 TYP.5 equ %00000000 5" media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
142 TYP.3 equ %00000001 3.5" media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
143 TYP.SBO equ %00000010 Sector base offset (clear = 0; sect = 1)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
144 TYP.256 equ %00000000 256 byte sector media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
145 TYP.512 equ %00000100 512 byte sector media
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
146 TYP.CCF equ %00100000 CoCo format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
147 TYP.NCCF equ %00000000 Non-CoCo format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
148
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
149 * IT.DNS Definitions
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
150 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
151
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
152 * If bit 7 of IT.TYP is set, IT.DNS is driver-dependent
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
153
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
154 * IT.DNS bit definitions if bit 7 of IT.TYP is clear (floppy disk)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
155 DNS.FM equ %00000000 Single-density (FM)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
156 DNS.MFM equ %00000001 Double-density (MFM)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
157 DNS.STD equ %00000000 Single track distance (48/135 tpi)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
158 DNS.DTD equ %00000010 Double track distance (96 tpi)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
159
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
160 * Added PHS,2005-05-31, as format seems to use these
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
161 DNS.FM0 equ %00000000 Single density track 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
162 DNS.MFM0 equ %00000100 Double density track 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
163
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
164 * Floppy disk step rate definitions
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
165 STP.30ms equ 0 30ms step rate
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
166 STP.20ms equ 1 20ms step rate
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
167 STP.12ms equ 2 12ms step rate
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
168 STP.6ms equ 3 6ms step rate
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
169
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
170 pag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
171 *************************************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
172 * Random Block Path Descriptor Format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
173 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
174 * A path descriptor is created for every new path that is open
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
175 * via the I$Open system call (processed by IOMan). Process
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
176 * descriptors track state information of a path.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
177 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
178 org PD.FST
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
179 PD.SMF rmb 1 State flags
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
180 PD.CP rmb 4 Current logical byte position
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
181 PD.SIZ rmb 4 File size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
182 PD.SBL rmb 3 Segment beginning lsn
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
183 PD.SBP rmb 3 Segment beginning psn
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
184 PD.SSZ rmb 3 Segment size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
185 PD.DSK rmb 2 Disk id
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
186 PD.DTB rmb 2 Drive table ptr
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
187 org PD.OPT
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
188 rmb 1 Device type
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
189 PD.DRV rmb 1 Drive number
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
190 PD.STP rmb 1 Step rate
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
191 PD.TYP rmb 1 Disk device type (5" 8" other)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
192 PD.DNS rmb 1 Density capability
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
193 PD.CYL rmb 2 Number of cylinders
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
194 PD.SID rmb 1 Number of surfaces
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
195 PD.VFY rmb 1 0=verify disk writes
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
196 PD.SCT rmb 2 Default sectors/track
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
197 PD.T0S rmb 2 Default sectors/track tr00,s0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
198 PD.ILV rmb 1 Sector interleave offset
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
199 PD.SAS rmb 1 Segment allocation size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
200 PD.TFM rmb 1 DMA Transfer Mode
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
201 PD.Exten rmb 2 Path Extension (PE) for record locking
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
202 PD.SToff rmb 1 Sector/Track offsets (for "foreign" disk formats)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
203 PD.ATT rmb 1 File attributes
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
204 PD.FD rmb 3 File descriptor psn
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
205 PD.DFD rmb 3 Directory file descriptor psn
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
206 PD.DCP rmb 4 File directory entry ptr
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
207 PD.DVT rmb 2 User readable dev tbl ptr
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
208
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
209 * State Flags
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
210 BUFMOD equ $01 Buffer modified
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
211 SINBUF equ $02 Sector in buffer
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
212 FDBUF equ $04 File descriptor in buffer
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
213 *EOFSEC equ $08 End of file sector
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
214 *EOF equ $10 End of file
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
215 InDriver equ $20 Currently in Disk Driver, or queued
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
216 BufBusy equ $40 Buffer is currently busy
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
217
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
218 IFNE Level-1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
219 ************************************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
220 * Random Block Path Extension Format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
221 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
222 * RBF paths under Level Two have additional information that
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
223 * is referenced by the path extension area.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
224 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
225 org 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
226 PE.PE rmb 1 PE path number
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
227 PE.PDptr rmb 2 Back ptr to this PE's Path Descriptor
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
228 PE.NxFil rmb 2 Drive Open-File list ptr
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
229 PE.Confl rmb 2 Circular File Conflict list
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
230 PE.Lock rmb 1 Path lockout status
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
231 PE.LoLck rmb 4 Low Locked Logical addr
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
232 PE.HiLck rmb 4 High Locked Logical addr
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
233 PE.Wait rmb 2 PE ptr to (next) locked-out PE
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
234 PE.TmOut rmb 2 Max ticks to wait for locked segment
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
235 PE.Owner rmb 1 Process ID of owner of locked segment
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
236 PE.Req rmb 1 Temp for PE.Lock in GAIN when LockSeg fails
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
237 PE.Prior rmb 1 Temp for process priority while in driver
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
238 PE.SigSg rmb 1 Signal code to send
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
239 PE.SigID rmb 1 Process ID to send the signal to
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
240 rmb 32-. Reserved
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
241 PE.FilNm rmb 32 Temp for filename during directory search
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
242
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
243 * PE.Lock status codes
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
244 Unlocked equ 0 No portion of file is locked
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
245 RcdLock equ 1 Record from LoLck to HiLck locked
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
246 FileLock equ 2 Entire file locked
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
247 EofLock equ 4 End of file is locked
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
248 ENDC
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
249
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
250
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
251 pag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
252 ***********************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
253 * LSN0 Disk Data Format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
254 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
255 * Logical Sector Number 0 is the first sector on an RBF formatted device
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
256 * and contains information about the device's size and format.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
257 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
258 org 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
259 DD.TOT rmb 3 Total number of sectors
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
260 DD.TKS rmb 1 Track size in sectors
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
261 DD.MAP rmb 2 Number of bytes in allocation bit map
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
262 DD.BIT rmb 2 Number of sectors/bit
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
263 DD.DIR rmb 3 Address of root directory fd
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
264 DD.OWN rmb 2 Owner
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
265 DD.ATT rmb 1 Attributes
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
266 DD.DSK rmb 2 Disk ID
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
267 DD.FMT rmb 1 Disk format; density/sides
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
268 DD.SPT rmb 2 Sectors/track
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
269 DD.RES rmb 2 Reserved for future use
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
270 DD.SIZ equ . Device descriptor minimum size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
271 DD.BT rmb 3 System bootstrap sector
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
272 DD.BSZ rmb 2 Size of system bootstrap
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
273 DD.DAT rmb 5 Creation date
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
274 DD.NAM rmb 32 Volume name
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
275 DD.OPT rmb 32 Option area
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
276
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
277 * DD.FMT Bit Definitions - valid only if device is a floppy disk
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
278 FMT.SIDE equ %00000001 Single Sided=0, Double Sided=1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
279 FMT.DNS equ %00000010 Single Density=0, Double Density=1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
280 FMT.TDNS equ %00000100 Track Density: 48/135 TPI=0, 96 TPI=1
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
281 FMT.T0DN equ %00100000 Track 0 Density, see FMT.DNS
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
282
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
283
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
284 pag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
285 ************************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
286 * File Descriptor Format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
287 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
288 * The file descriptor is a sector that is present for every file
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
289 * on an RBF device. It contains attributes, modification dates,
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
290 * and segment information on a file.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
291 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
292 org 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
293 FD.ATT rmb 1 Attributes
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
294 FD.OWN rmb 2 Owner
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
295 FD.DAT rmb 5 Date last modified
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
296 FD.LNK rmb 1 Link count
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
297 FD.SIZ rmb 4 File size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
298 FD.Creat rmb 3 Segment list extension
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
299 FD.SEG equ . Beginning of segment list
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
300 * Segment List Entry Format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
301 org 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
302 FDSL.A rmb 3 Segment beginning physical sector number
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
303 FDSL.B rmb 2 Segment size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
304 FDSL.S equ . Segment list entry size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
305 FD.LS1 equ FD.SEG+((256-FD.SEG)/FDSL.S-1)*FDSL.S
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
306 FD.LS2 equ (256/FDSL.S-1)*FDSL.S
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
307 MINSEC set 16
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
308
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
309
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
310 pag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
311 ************************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
312 * Directory Entry Format
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
313 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
314 * Directory entries are part of a directory and define the name
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
315 * of the file, as well as a pointer to its file descriptor.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
316 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
317 org 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
318 DIR.NM rmb 29 File name
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
319 DIR.FD rmb 3 File descriptor physical sector number
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
320 DIR.SZ equ . Directory record size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
321
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
322
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
323 pag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
324 ********************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
325 * RBF Static Storage
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
326 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
327 * Overall Disk Static Storage
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
328 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
329 * Note: This does not reserve any memory for drive tables. Each
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
330 * driver is responsible for reserving sufficient memory for
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
331 * the appropriate number of tables.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
332 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
333 org V.USER Reserve required ($06)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
334 V.NDRV rmb 1 Number of drives ($07)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
335 rmb 8 reserved ($08)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
336 DRVBEG equ . Beginning of drive tables ($10)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
337
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
338
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
339 pag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
340 ****************
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
341 * Global Storage For Disk Drive Tables
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
342 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
343 * Each table contains the first 'DD.SIZ' bytes from
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
344 * LSN 0, and the current track, stepping rate,
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
345 * bitmap use flag, and disk type.
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
346 *
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
347 org 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
348 rmb DD.SIZ Device descriptor, LSN 0
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
349 V.TRAK rmb 2 Current track
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
350 V.BMB rmb 1 Bit-map use flag
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
351 V.FileHd rmb 2 Open file list for this drive
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
352 V.DiskID rmb 2 Disk ID
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
353 V.BMapSz rmb 1 Bitmap Size
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
354 V.MapSct rmb 1 Lowest reasonable bitmap sector
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
355 V.ResBit rmb 1 Reserved bitmap sector (for compaction)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
356 V.ScTkOf rmb 1 Sector/Track byte (Combined from descriptor)
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
357 V.ScOfst rmb 1 Sector offset split from byte above
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
358 V.TkOfst rmb 1 Track offset split from byte above
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
359 rmb 4 Reserved
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
360 DRVMEM equ .
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
361
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
362 ENDC
34868794d297 Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
boisy
parents: 1834
diff changeset
363