exec.pp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2004 Karoly Balogh for Genesi S.a.r.l. <www.genesi.lu>
  5. exec.library interface unit for MorphOS/PowerPC
  6. MorphOS port was done on a free Pegasos II/G4 machine
  7. provided by Genesi S.a.r.l. <www.genesi.lu>
  8. See the file COPYING.FPC, included in this distribution,
  9. for details about the copyright.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. **********************************************************************}
  14. unit exec;
  15. interface
  16. var
  17. ExecBase: Pointer;
  18. {$include execd.inc}
  19. {$include execf.inc}
  20. { * Define real AllocMem() and FreeMem() * }
  21. function AllocMem(byteSize : LongInt location 'd0';
  22. requirements: LongInt location 'd1'): Pointer;
  23. SysCall MOS_ExecBase 198;
  24. procedure FreeMem(memoryBlock: Pointer location 'a1';
  25. byteSize : LongInt location 'd0');
  26. SysCall MOS_ExecBase 210;
  27. implementation
  28. begin
  29. ExecBase:=MOS_ExecBase;
  30. end.
  31. {
  32. $Log$
  33. Revision 1.1 2004-06-13 22:46:36 karoly
  34. * initial revision
  35. }