home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9252 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  2.1 KB

  1. Xref: sparky comp.os.msdos.programmer:9252 comp.os.msdos.misc:5166
  2. Path: sparky!uunet!mcsun!uknet!axion!spuddy!sweh
  3. From: sweh@spuddy.uucp (Stephen Harris)
  4. Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
  5. Subject: Re: Disk Drive Purchase?
  6. Message-ID: <1992Sep10.211038.347@spuddy.uucp>
  7. Date: 10 Sep 92 21:10:38 GMT
  8. References: <2aab4eed@ralf> <exuptr.458.716059101@exu.ericsson.se>
  9. Organization: Spuddy's Public Usenet Domain
  10. Lines: 37
  11.  
  12. In article <exuptr.458.716059101@exu.ericsson.se> exuptr@exu.ericsson.se (exuptr@exu.ericsson.se) writes:
  13. >In article <2aab4eed@ralf> Ralf.Brown@B.GP.CS.CMU.EDU writes:
  14. >>are 1024 cyl x 64 heads x 63 sectors/track--a little less than 4G sectors
  15. >Now this one makes sense.  Except that BIOS does not limit you to 1024
  16. >cylinders, that is DOS.  So theoretically you could have 2048 x 64 x 63.
  17.  
  18. No, originally the *BIOS* only had 10 bits for the cylinder address.
  19. Later more modern Bios's allow 12 bits (4096 cylinders) but since that is
  20. non standard, DOS can not make use of this.
  21.  
  22. From Ralf's interrupt list....
  23. ----------1302-------------------------------
  24. INT 13 - DISK - READ SECTOR(S) INTO MEMORY
  25.     AH = 02h
  26.     AL = number of sectors to read (must be nonzero)
  27.     CH = low eight bits of cylinder number
  28.     CL = sector number (bits 0-5)
  29.          high two bits of cylinder (bits 6-7, hard disk only)
  30.     DH = head number
  31.     DL = drive number (bit 7 set for hard disk)
  32.     ES:BX -> data buffer
  33. Return: CF set on error
  34.         if AH = 11h (corrected ECC error), AL = burst length
  35.     CF clear if successful
  36.     AH = status (see AH=01h)
  37.     AL = number of sectors transferred
  38. Notes:    errors on a floppy may be due to the motor failing to spin up quickly
  39.       enough; the read should be retried at least three times, resetting
  40.       the disk with AH=00h between attempts
  41.     AWARD AT BIOS extended to handle more than 1024 cylinders by placing
  42.       bits 10 and 11 of the cylinder number into bits 6 and 7 of DH
  43. SeeAlso: AH=03h,AH=0Ah
  44. -- 
  45.                                Stephen Harris
  46.                sweh@spuddy.uucp    ...!uknet!axion!spuddy!sweh
  47.  
  48.  * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
  49.