Encyclopedia > CHS conversion Assembler code

  Article Content

CHS conversion/Assembler code

The following procedure calculates the geometric coordinate of a block of data based on an LBA address specified.

 GetCHS proc
             mov         AX, LHA
             xor         DX, DX
             mov         BX, SPT
             div         BX
             inc         DX
             mov         SECT, DL
             xor         DX, DX
             mov         BX, HPC
             div         BX
             mov         CYL, AL
             mov         HEAD, DL
             ret	
 GetCHS endp

See: CHS conversion



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Westhampton Beach, New York

... from 18 to 24, 24.6% from 25 to 44, 28.2% from 45 to 64, and 20.7% who are 65 years of age or older. The median age is 44 years. For every 100 females there are 93.5 ...

 
 
 
This page was created in 20.8 ms