]> cloudbase.mooo.com Git - z180-stamp-cpm3.git/commitdiff
Extended drive table for use with DRIVE.COM, a dynamic drive re-assignment utility. master
authorLeo C <erbl259-lmu@yahoo.de>
Mon, 16 Mar 2020 13:20:06 +0000 (14:20 +0100)
committerLeo C <erbl259-lmu@yahoo.de>
Mon, 16 Mar 2020 13:20:06 +0000 (14:20 +0100)
cbios/drvtbl.180

index 41d8cfbe67173bab57551f7ba2d66b00174c675f..abd8cd539ade5b7f2dbf98f189a5d58e9292f118 100644 (file)
@@ -1,13 +1,57 @@
+;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 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\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
+       end\r