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
Jamesport, New York

... the town the population is spread out with 20.6% under the age of 18, 5.0% from 18 to 24, 26.8% from 25 to 44, 27.7% from 45 to 64, and 19.9% who are 65 years of age or ...

 
 
 
This page was created in 26.5 ms