home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / atari / st / 19140 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.5 KB

  1. Path: sparky!uunet!wupost!emory!uumind!undermind!only_bbs!news
  2. From: only_bbs!King_Midas@under.mind.ORG
  3. Newsgroups: comp.sys.atari.st
  4. Subject: Re: 823k compression source
  5. Message-ID: <2414369@under.mind.ORG>
  6. Date: 02 Jan 93 15:29:00 -0500
  7. Organization: Not really.
  8. X-newsreader: Fortress v1f-75
  9. Lines: 33
  10.  
  11.   
  12.    Luckily, the ST's built-in GEMDOS and XBIOS functions have no 
  13. problem dealing with 10-sector, 83-track formats. It's the 11-sector
  14. format that required messing with low-level disk functions (VERY 
  15. ugly). 
  16.   
  17.    floprd(long a, 0L, int d, int s, int t, int si, int n) 
  18.    flopwr(long a, 0L, int d, int s, int t, int si, int n) 
  19.    flopfmt(long a, 0L, int d, int s, int t, int si, int i, long 
  20. magic, int virgin) 
  21.   
  22.   
  23.    a = address to buffer 
  24.    d = disk drive number (0/1) 
  25.    s = sector number; with flopfmt it contains the number of 
  26. sectors/track 
  27.    t = track number 
  28.    si = side (0/1) 
  29.    n = number of sectors to be read or written 
  30.    i = interleave (usually 1). determines the order of the sectors 
  31. within tracks. 
  32.    magic = $87654321 (a constant used for formatting) 
  33.    virgin = intitial value of sectors (usually $E5E5). Can be any 
  34. number as long as the high nibbles are not F. 
  35.   
  36.   
  37.    In addition to using flopfmt, you must write a bootsector to the 
  38. disk. I'll have to find the relevant info, but I recommend you look 
  39. in some book that covers XBIOS and GEMDOS (e.g., Compute's Third 
  40. Book, ST Drives Inside & Out, a good C manual, etc).
  41.  
  42. --
  43. via Fortress Gateway at uumind.mind.ORG
  44.