delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/04/21:17:46

Date: Thu, 4 May 1995 13:38:34 -0400
From: dj (DJ Delorie)
To: morphine AT server DOT cs DOT jhu DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Checking for disk in drive

> Does anyone have any suggestions for the proper settings for the
> buffer pointer and/or the head, sector, and track #'s?  (I assumed
> the first sector corresponds to zeros for all of these three; my
> assumption could easily be incorrect.)

head zero, cylinder zero, sector one.  Set ES to
(_go32_info_block.linear_address_of_transfer_buffer >> 4), BX to
(_go32_info_block.linear_address_of_transfer_buffer & 15).  Use
dosmemget() to transfer it back to protected mode if you need it.

Once you have it in memory, the first byte(s) is(are) the "signature"
for dos disks.

- Raw text -


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