Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sphinx.UChicago.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!crsp!gargoyle!sphinx!shor From: shor@sphinx.UChicago.UUCP (Melinda Shore) Newsgroups: net.micro.cpm Subject: Re: Need program to read/write MS-DOS format in Pascal Message-ID: <155@sphinx.UChicago.UUCP> Date: Sun, 20-Jan-85 22:51:03 EST Article-I.D.: sphinx.155 Posted: Sun Jan 20 22:51:03 1985 Date-Received: Mon, 21-Jan-85 04:44:03 EST References: <7392@brl-tgr.ARPA> Organization: U. Chicago - Computation Center Lines: 25 [] > From: news@brl-tgr.ARPA (David Roth > Does anyone know of a public domain program to help read/write MS-DOS > format (written in Pascal of course), on non-IBM-PC type machines? We > have a need to do this on just about any kind of micro with a 5 1/4 > disk drive. Apples, Osborne, Kaypro,etc... The reason for Pascal is > that at least that much or it would be portable and the low level > stuff could be done just for that machine. > Oh, I have run across a program on a local R-CP/M system here called > RDMSDOS.C which claims to work on CP/M systems. If it was done right, your RDMSDOS.C should work correctly on just about any CP/M system. The author should have used BDOS call 31, which returns the address of the disk parameter block in HL. Since the DPB is a fixed size across all CP/M systems, you now know where to stuff the information you have about the MS-DOS disk format. Needless to say, it's a little more complicated than that, since the MS-DOS FAT is somewhat different from CP/M's FCB, but it's really not that complicated. BTW, could you send along a copy of your C program if it turns out to public domain? Melinda Shore University of Chicago Computation Center