ppovin.pas 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. $Id$
  3. Copyright (c) 1997-98 by Daniel Mantione
  4. Handles the overlay initialisation for a TP7 compiled version
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit ppovin;
  19. interface
  20. var ovrminsize:longint;
  21. implementation
  22. uses overlay;
  23. var s:string;
  24. begin
  25. s:=paramstr(0);
  26. ovrinit(copy(s,1,length(s)-3)+'ovr');
  27. if ovrresult=ovrok then
  28. begin
  29. {May fail if no EMS memory is available. No need for error
  30. checking, though, as the overlay manager happily runs without
  31. EMS.}
  32. ovrinitEMS;
  33. ovrminsize:=ovrgetbuf;
  34. ovrsetbuf(ovrminsize+$20000);
  35. end
  36. else
  37. runerror($da);
  38. end.
  39. {
  40. $Log$
  41. Revision 1.1 1998-03-25 11:18:15 root
  42. Initial revision
  43. Revision 1.5 1998/03/10 01:17:24 peter
  44. * all files have the same header
  45. * messages are fully implemented, EXTDEBUG uses Comment()
  46. + AG... files for the Assembler generation
  47. Pre CVS Log:
  48. FK Florian Klaempfl
  49. DM Dani‰l Mantione
  50. + feature added
  51. - removed
  52. * bug fixed or changed
  53. 12th October 1997:
  54. Rewritten (DM).
  55. }