ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/02/03/15:14:26

From: dvldbg AT cs DOT umu DOT se
Subject: Absolute read
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Mon, 3 Feb 92 20:32:29 GMT
Cc: dvldbg AT cs DOT umu DOT se (Daniel Brahneborg)
Status: O

I looked at the sources for the function library, trying to
figure out how to do an absolute disk read, but just got
confused. In the source for 'read', EBX, ECX and EDX are set
to the arguments, and then an 'int 21h' is done, with ah=3fh.
But... In the description of that function, CX should be
the number of bytes, and DS:DX the adress to read to. How does
the bios know that is should use EDX instead of just DX?
And what happens if you try to read more than 65535 bytes?

And, what I really want to know, how do I read a specific
sector?

/Basic

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\ When hacking     : Basic                 /\   The best way to accelerate   /
/ In the real world: Daniel Brahneborg     \/      a M*c is to do it in      \
\ On the net       : dvldbg AT cs DOT umu DOT se      /\   Conneticut (g=9.83 m/s^2)    /
/ Phone: +46 90 198198  Fax: +46 90 197085 \/                                \
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Hi! I am a .signature virus. Copy me into your .signature to join in!

- Raw text -


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