home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / System / MorphOS / Developer / emultools / fd2inline / tests / test.c next >
Encoding:
C/C++ Source or Header  |  2000-11-02  |  947 b   |  41 lines

  1. ;/*
  2. delete test.s 
  3. ;ppc-amigaos-gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S -E -C -dM test.c >test.err
  4. ppc-amigaos-gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S test.c
  5. delete test.o
  6. ppc-amigaos-gas  test.s -o test.o
  7. ppc-amigaos-ld -r test.o -o test
  8. ppc-amigaos-objdump --section-headers --full-contents --all-headers --disassemble-all test
  9. quit
  10. */
  11.  
  12. #include    <exec/lists.h>
  13. #include    <exec/ports.h>
  14. #include    <exec/memory.h>
  15. #include    <powerup/ppclib/interface.h>
  16. #include    <powerup/gcclib/powerup_protos.h>
  17. #include    <ppcinline/exec.h>
  18.  
  19. struct MsgPort*    main(void)
  20. {
  21. struct List    *MyList;
  22. struct Node    *MyNode;
  23. struct MsgPort    *MyPort;
  24. struct MsgPort    *MyPort2;
  25. struct Library    *SysBase;
  26. struct MemList    *MyMemList=NULL;
  27. struct MemList    *MyMemList1;
  28.  
  29.   SysBase    =(struct Library*) *((ULONG*) 4);
  30.  
  31.   MyMemList1        =    AllocEntry(MyMemList);
  32.   MyPort        =    CreateMsgPort();
  33.   MyPort2        =    CreateMsgPort();
  34.  
  35.   
  36.  
  37. //AddHead(MyList,MyNode);
  38.   return(MyPort);
  39. }
  40.  
  41.