cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/15/06:33:14

From: "Tomas Kouba" <xkouba AT cs DOT felk DOT cvut DOT cz>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Formatting
Date: 15 Aug 1997 09:37:29 GMT
Organization: Czech Technical University
Lines: 25
Message-ID: <01bca954$a3f7bc00$12c3d5c2@polo.netforce.cz>
References: <3 DOT 0 DOT 1 DOT 32 DOT 19970814095817 DOT 006dcf74 AT post DOT softel DOT co DOT uk>
NNTP-Posting-Host: clppp3.netforce.cz
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019