home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / sources / wanted / 2091 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.3 KB

  1. Path: sparky!uunet!digex.com!digex.digex.com!tdarcos
  2. From: tdarcos@digex.digex.com (Paul Robinson)
  3. Newsgroups: alt.sources.wanted
  4. Subject: Re: Pascal Code Needed to read disk byte by byte
  5. Date: 21 Jan 1993 13:45:56 GMT
  6. Organization: Tansin A. Darcos & Company, Silver Spring, MD USA
  7. Lines: 20
  8. Message-ID: <1jm9ekINN8rv@mirror.digex.com>
  9. References: <1993Jan14.035536.16278@exucom.com>
  10. NNTP-Posting-Host: access.digex.com
  11. X-Newsreader: Tin 1.1 PL3
  12.  
  13. miket@exucom.com (Michael Teper) writes:
  14. : I need Pascal or ASM (or both) code that would allow me read data off of a
  15. : disk (PC environment) without any concern for the data or data format or
  16. : structure on the disk.
  17. : To make this simpler - I need to read some data put on a disk by an Apple
  18. : non-standard program. My intentions are to read whatever it stored on
  19. : Apple disks using the PC and then hopefully make some sence out of it
  20. : knowing the contents of the data.
  21.  
  22. While you can do direct disk I/O on an IBM, you can't read an Apple disk
  23. directly; the hardware won't let you.  In simple terms, the Apple II disk
  24. drive wrote a "signature" field on the start of each sector, that
  25. particular byte doesn't occur on the disk except at the start of a sector,
  26. and bytes are encoded down to fit into a special sequence, something
  27. similar to the way UUENCODE changes two bytes into three by carrying bits
  28. over.  
  29.  
  30.