home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / misc / 15874 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.6 KB  |  36 lines

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