Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pucc-i Path: utzoo!watmath!clyde!floyd!harpo!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:Pucc-I:ags From: ags@pucc-i (Seaman) Newsgroups: net.micro.apple Subject: Re: PASCAL on the //e Message-ID: <241@pucc-i> Date: Tue, 27-Mar-84 10:24:22 EST Article-I.D.: pucc-i.241 Posted: Tue Mar 27 10:24:22 1984 Date-Received: Wed, 28-Mar-84 07:08:29 EST References: <161@zps.UUCP> Organization: Purdue University Computing Center Lines: 32 A good source of information for Pascal <-> DOS 3.3 file transfers is the book "Beneath Apple DOS" by Don Worth. There is a companion book and disk called "Bag of Tricks" from Quality Software. The disk contains a program which can do the transfers, but it is not extremely convenient to use, since the file transfer is only a side effect of the program's main purpose, which is to examine disks and display raw data, make patches, etc. There have been file transfer programs in various magazines. I don't have a reference in front of me but I can dig one up if anyone needs it. I have never seen the need for Pascal <-> DOS file transfers myself, since I don't use DOS for anything but the most trivial purposes, but I know what is involved. Basically, you need to use the lowest-level disk routines (Pascal's "unitread" and DOS "RWTS") to read the foreign disk. The trickiest part, if you want to program it yourself, is figuring out how to map Pascal "blocks" into DOS "track/sector" addresses. The two systems use a different interleaving scheme, which largely explains why Pascal disk operations are so much faster than DOS. This is detailed in "Beneath Apple DOS," which also describes the Apple CP/M format (yet another interleaving scheme). You also need to decipher the directories. The DOS directory is located on track 17 (11 HEX) and is well-documented in the Apple manual. The Pascal directory is on blocks 2-5 and is not so well documented, but I can post a description if anyone needs it. -- Dave Seaman ..!pur-ee!pucc-i:ags "Against people who give vent to their loquacity by extraneous bombastic circumlocution."