home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7695 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  2.9 KB

  1. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!wupost!waikato.ac.nz!aukuni.ac.nz!woodgate
  2. Newsgroups: comp.lang.pascal
  3. Subject: BP7 DPMI, Reading graphic formats .. PCX etc..
  4. Message-ID: <1992Dec28.024709.6004@ccu1.aukuni.ac.nz>
  5. From: woodgate@ccu1.aukuni.ac.nz (Dr S.Woodgate)
  6. Date: Mon, 28 Dec 1992 02:47:09 GMT
  7. Organization: University of Auckland, New Zealand.
  8. Lines: 56
  9.  
  10. Hi there, this is really two questions.
  11. 1.  The perennial does anyone have PCX readers out there that
  12. A. CAN read PCX files that expand to > 64K (the pcx.tpu at simtel can't)
  13. B. CAN read 24-bit PCX files ?
  14. - I have also looked at PCX.C at simtel, and PCXFMT.LZH at garbo but these
  15. have no info on 24-bit PCX files.
  16. Assembly source would be preferable ? - but I can translate (must be FAST)
  17. Likewise anyone with GIF decoder that can hook to TP any help would be gratefully
  18. accepted! - (I have the format gif.doc)
  19.  
  20. 2. BP7
  21.  
  22. A. Using the Turbo Vision editor!
  23. The application I am using is graphics based.  What I am trying to do is go into
  24. text mode - do a Turbo Vision editor and then return (i.e. I perform Init, Run, and Done)
  25. However, upon entering the Turbo Vision editor (direct copy of TVEDIT.PAS) I have 
  26. MEMAVAIL and MAXAVAIL = 185K.  On exit MEMAVAIL and MAXAVAIL are 46K !!! - is it not
  27. cleaning up everything?  
  28. The MAXHEAPSIZE variable seems to be the problem.  BP7 manual contradicts itself
  29. about what this specifies and I think the problem heap is PERMANENTLY reduced by
  30. MAXHEAPSIZE - even when I leave the TVEDIT and return to by graphics application.
  31.  
  32. As an aside, is there anyway I can redirect the Turbo Vision editor / whole system
  33. to perform its New() procedures in EMS/XMS - I am very short of memory....
  34.  
  35. B. Using DPMI
  36.  
  37. Because I am short of memory I have considered DPMI.  My graphics application
  38. uses a third party toolkit (which I have the assembly source for).  It interfaces
  39. to Turbo Pascal thro'
  40. e.g.
  41.     regs.ax := 2
  42.     regs.ds := 3
  43.     regs.es := Seg(FileName);
  44.     regs.si := Ofs(FileName[1]);
  45.     Intr($66,regs)
  46.  
  47. In DPMI this does not work.  I know it has to do with selectors c.f. physical
  48. addresses (Borland's Language manual could do with MUCH work here).  
  49. Do I need to change how I am calling the TSR routines from pascal, or the
  50. routines themselves ? - If I need to change the assembly language please tell
  51. me HOW to get around changing cs,ds,es - how to use selectors in tasm.
  52.  
  53. One more final aside - the TSR routines are in a .COM file.  TASM manual says
  54. they must be compiled under TINY.  If I compile under TINY, and then attempt to
  55. use them the system crashes (but if compiled tasm /p (protected mode check) it
  56. gives only two errors).  If I compile under SMALL then it works FINE but with
  57. tasm /p gives 180 errors!!!!!
  58.  
  59. Sorry if some of this is hard to understand,
  60. " Its never to late to learn but sometimes you learn when its too late "
  61.  
  62. Dr. S. Woodgate
  63. Chemistry Dept. Auckland University NZ
  64.  
  65. woodgate@ccu1.aukuni.ac.nz
  66.