+;Extended CP/M 3 drive table for use with\r
+;DRIVE.COM, a CP/M 3 dynamic drive re-assignment utility.\r
+;\r
+;Originally written by Jim Lopushinsky, Edmonton Alberta\r
+\r
+\r
public @dtbl\r
extrn sd0,sd1,sd2,sd3\r
+ extrn sd4,sd5,sd6,sd7\r
+ extrn cf0,cf1,cf2,cf3\r
\r
- cseg\r
+ cseg ;table is in common memory\r
\r
@dtbl dw sd0,sd1,sd2,sd3 ; drives A-D\r
- dw 0,0,0,0 ; drives E-H non-existant\r
- dw 0,0,0,0 ; drives I-L\r
- dw 0,0,0,0 ; drives M-P\r
+ dw sd4,sd5,sd6,sd7 ; drives E-H\r
+ dw cf0,cf1,cf2,cf3 ; drives I-L\r
+ dw 0,0,0,0 ; drives M-P - not defined\r
+\r
+;Following is a table of existing drives. This table can be used\r
+;to dynamically assign CP/M drives (A:, etc) to different physical\r
+;units. Use BIOS function 22 (return address of drive table), and\r
+;add 32 to point to this table:\r
+\r
+ dw sd0 ;address of DPH for drive 0\r
+ db 'DSK0 ' ;6 char unit name\r
+ dw sd1\r
+ db 'DSK1 '\r
+ dw sd2\r
+ db 'DSK2 '\r
+ dw sd3\r
+ db 'DSK3 '\r
+ dw sd4\r
+ db 'DSK4 '\r
+ dw sd5\r
+ db 'DSK5 '\r
+ dw sd6\r
+ db 'DSK6 '\r
+ dw sd7\r
+ db 'DSK7 '\r
+ dw cf0\r
+ db 'SIDE0 '\r
+ dw cf1\r
+ db 'SIDE1 '\r
+ dw cf2\r
+ db 'SIDE2 '\r
+ dw cf3\r
+ db 'SIDE3 '\r
+ dw 0\r
+ db ' '\r
+ dw 0\r
+ db ' '\r
+ dw 0\r
+ db ' '\r
+ dw 0\r
+ db ' '\r
\r
end\r