home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 106 / EnigmaAmiga106CD.iso / software / sviluppo / ahisrc / device / elftest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-11  |  455 b   |  32 lines

  1.  
  2. #include <stdio.h>
  3. #include <proto/exec.h>
  4.  
  5. #include "elfloader.h"
  6.  
  7. int TimerBase;
  8. int MixGeneric;
  9. int MixPowerUp;
  10. void* PPCObject;
  11.  
  12. void main( void )
  13. {
  14.   PPCObject = ELFLoadObject( "devs:ahi.elf" );
  15.  
  16.   printf( "PPCObject: 0x%08x\n", PPCObject );
  17.  
  18.   ELFUnLoadObject( PPCObject );
  19. }
  20.  
  21. APTR
  22. AHIAllocVec( ULONG byteSize, ULONG requirements )
  23. {
  24.   return AllocVec( byteSize, requirements );
  25. }
  26.  
  27. void
  28. AHIFreeVec( APTR memoryBlock )
  29. {
  30.   FreeVec( memoryBlock );
  31. }
  32.