Mail Archives: djgpp/1997/08/15/06:33:14
Shaun Wilde <shaun DOT wilde AT softel DOT co DOT uk> píše v článku
<3 DOT 0 DOT 1 DOT 32 DOT 19970814095817 DOT 006dcf74 AT post DOT softel DOT co DOT uk>...
> Hello
>
> I would like to format a disk (floppy) that would have
> 256 bytes per sector, 16 sectors per track and 80 tracks (2 heads)
>
INT 15h (biosdisk) funcion 05
ah = 05
dl = drive (0=A, 1=B, ..., 80h=hd 0, ...)
dh = head number
cx = cylinder/sector (only cylinder is valid)
CX: c c c c c c c c | C c S s s s s s
hight 2 bites in cl is most significant bits of cylynder number
es:bx -> pointer to byte array CHSV for each sector
C - cylinder
H - header
S - sector
V - sector size 0-128; 1-256; 2-512; 3-1024
This is only from manual, and not tested. Please send me any results.
Tomas
- Raw text -