home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / drivers / scsi / futrdomn / manual / int13_08.txt < prev    next >
Encoding:
Text File  |  1990-08-18  |  1.5 KB  |  41 lines

  1. Code 08                                  -Return Parameters
  2.  
  3. Input registers - none.
  4.  
  5. Special output registers.
  6.  
  7.     DH - Number of heads-1
  8.     DL - Number of drives in HF_NUM.
  9.     CH - LSB 8 bits of number of cylinders-1.
  10.     CL - Number of sectors per track + 2 MSB of cylinders - 1.
  11.  
  12. Operation:
  13.  
  14.     This function returns the parameters that are used to convert the
  15.     caller's disk address specification into a logical sector number
  16.     to be issued to the SCSI device. The formula used by the ROM BIOS 
  17.     is:
  18.  
  19.     Sector=cyl*(HEADS*SECTS)+head*SECTS+(sect-1)
  20.  
  21.          SECTOR   -Logical sector number
  22.          HEADS    -Number of heads reported for device
  23.          SECTS    -Sectors per track reported for device
  24.          cyl      -Caller specified cylinder number
  25.          head     -Caller specified head number
  26.          sect     -Caller specified sector number
  27.  
  28.     Note that these values need have no relationship to the actual 
  29.     values on the physical drive for cylinders, heads, and sectors 
  30.     per track. These are only "funny" numbers used for the Int 13h 
  31.     call.
  32.  
  33.     These parameters are based on the standard sector size of 512 
  34.     bytes. If, in fact, the drive used 256 byte sectors, the fact is 
  35.     masked from the system.
  36.  
  37.     Before the caller makes an Int 13h call to read, write, or verify 
  38.     a logical sector, the reverse of the above algorithm needs to be 
  39.     performed on the desired logical sector number for setting up of 
  40.     the registers.
  41.