Article View: comp.sys.ibm.pc.misc
Article #10360INT 21H, AH=27H -- Random Block Read help.
From: GOUDIE ray
Date: Wed, 16 Dec 1992 20:44
Date: Wed, 16 Dec 1992 20:44
24 lines
1718 bytes
1718 bytes
I am referencing "The Programmer's PC Sourcebook" by Thom Hogan to try and read a block from a disk unit. On page 3-37, there is int21H, which does just that. It tells you what to set up before calling the interrupt, like AH=27H, CX=Number of records to read, etc. Besides all the registers, there is something called DTA. This is where the actual data read will be upon return from the interrupt. I searched the book and can't find what the DTA is. It is not listed in BIOS.H, or at least I didn't see it. Oh, I'm programming in C. I use the int86() function. Forgetting all this, can anyone that knows how to use int27H, AH=27H tell me where my data will be after the call? Also, while I'm here. How can I turn the cursor on while I'm running my program? I have a getch() function waiting for a keypress, and I'd like the cursor to be on. Is this possible, or will I have to blink a cursor myself? Thanks again! -Ray. -- Ray Goudie; Montreal, Quebec, Canada romania@cs.concordia.ca aa1412@freenet.lorain.oberlin.edu ad278@yfn.ysu.edu ap415@cleveland.freenet.edu rgoudie@heartland.bradley.edu usr5965a@tso.uc.edu ===============================================================================
Technical Details
Message-ID:
<BzDDLD.CFy@newsflash.concordia.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!romaniaShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc.misc Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!romania From: romania@cs.concordia.ca (GOUDIE ray) Subject: INT 21H, AH=27H -- Random Block Read help. Message-ID: <BzDDLD.CFy@newsflash.concordia.ca> Sender: usenet@newsflash.concordia.ca (USENET News System) Nntp-Posting-Host: violet.cs.concordia.ca Organization: Computer Science, Concordia University, Montreal, Quebec Date: Wed, 16 Dec 1992 20:44:00 GMT Lines: 24