home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7636 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!demos!news-server
  3. From:  Andrew Kovalenko <Andrew.Kovalenko@p5.f81.n5020.z2.fidonet.org>
  4. Subject: BP7 using Extended Memory
  5. References: <66.67.256.0.CB5307D7@infos.msk.su>
  6. Date: Mon, 21 Dec 1992 09:26:44 GMT
  7. Reply-To: Andrew.Kovalenko@p5.f81.n5020.z2.fidonet.org
  8. Organization: InfoSoft (Gid:infos.msk.su)
  9. Sender: news-server@moscvax.hq.demos.su
  10. Message-ID: <2.5020.81.5.2b35b9ed@infos.msk.su>
  11. Lines: 28
  12.  
  13. 13 Dec 92 04:32, Chris Hafey wrote:
  14.  
  15.  cce>   I just read in the last issue of Dr Dobbs Journal an article on the new
  16.  cce> BP7.  The author stated that he was only able to get 4 megs of extended
  17.  cce> memory from his machine which had a total of 16 megs of ram.  Is this
  18.  cce> true, and if so can someone explain why?  Also- when a program is in
  19.  cce> protected mode, does it have to switch back to real mode to use msdos
  20.  cce> function calls like file i/o?  In protected mode, is the extended memory
  21.  cce> only available for data/variables or can code exist there as well?  In
  22.  cce> other words, does your code still have the 640K limit, or can you have a
  23.  cce> non-overlayed program with 2 megs of code?  Thanks for your time..
  24.  
  25.   You can switch to real-mode, using DPMI functions. One of int 2Fh functions
  26. returns a far-pointer to Real/Protected mode switch procedure. A call to it 
  27. turns your application to protected/real mode, and returns new prefix segment 
  28. value. But, I think, You are not needed to do this to perform DOS calls, 
  29. because DPMI sets its own interrupt vectors for all the software & hardware 
  30. interrups. But, I think, You need is to transform the segment parts of pointers 
  31. to their real-mode values to call DOS functions like disk read or write. The 
  32. DPMI survices provides this.
  33.  
  34.  cce> Chris Hafey
  35.  
  36. Andrew Kovalenko
  37.  
  38. --- GoldED 2.40.P0621+
  39.  * Origin:  ********* AGAMA online *********  (FidoNet 2:5020/81.5)
  40.  
  41.