]>
Commit | Line | Data |
---|---|---|
1 | ;Extended CP/M 3 drive table for use with\r | |
2 | ;DRIVE.COM, a CP/M 3 dynamic drive re-assignment utility.\r | |
3 | ;\r | |
4 | ;Originally written by Jim Lopushinsky, Edmonton Alberta\r | |
5 | \r | |
6 | \r | |
7 | public @dtbl\r | |
8 | extrn sd0,sd1,sd2,sd3\r | |
9 | extrn sd4,sd5,sd6,sd7\r | |
10 | extrn cf0,cf1,cf2,cf3\r | |
11 | \r | |
12 | cseg ;table is in common memory\r | |
13 | \r | |
14 | @dtbl dw sd0,sd1,sd2,sd3 ; drives A-D\r | |
15 | dw sd4,sd5,sd6,sd7 ; drives E-H\r | |
16 | dw cf0,cf1,cf2,cf3 ; drives I-L\r | |
17 | dw 0,0,0,0 ; drives M-P - not defined\r | |
18 | \r | |
19 | ;Following is a table of existing drives. This table can be used\r | |
20 | ;to dynamically assign CP/M drives (A:, etc) to different physical\r | |
21 | ;units. Use BIOS function 22 (return address of drive table), and\r | |
22 | ;add 32 to point to this table:\r | |
23 | \r | |
24 | dw sd0 ;address of DPH for drive 0\r | |
25 | db 'DSK0 ' ;6 char unit name\r | |
26 | dw sd1\r | |
27 | db 'DSK1 '\r | |
28 | dw sd2\r | |
29 | db 'DSK2 '\r | |
30 | dw sd3\r | |
31 | db 'DSK3 '\r | |
32 | dw sd4\r | |
33 | db 'DSK4 '\r | |
34 | dw sd5\r | |
35 | db 'DSK5 '\r | |
36 | dw sd6\r | |
37 | db 'DSK6 '\r | |
38 | dw sd7\r | |
39 | db 'DSK7 '\r | |
40 | dw cf0\r | |
41 | db 'SIDE0 '\r | |
42 | dw cf1\r | |
43 | db 'SIDE1 '\r | |
44 | dw cf2\r | |
45 | db 'SIDE2 '\r | |
46 | dw cf3\r | |
47 | db 'SIDE3 '\r | |
48 | dw 0\r | |
49 | db ' '\r | |
50 | dw 0\r | |
51 | db ' '\r | |
52 | dw 0\r | |
53 | db ' '\r | |
54 | dw 0\r | |
55 | db ' '\r | |
56 | \r | |
57 | end\r |