home *** CD-ROM | disk | FTP | other *** search
- ;/*
- delete test.s
- ;ppc-amigaos-gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S -E -C -dM test.c >test.err
- ppc-amigaos-gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S test.c
- delete test.o
- ppc-amigaos-gas test.s -o test.o
- ppc-amigaos-ld -r test.o -o test
- ppc-amigaos-objdump --section-headers --full-contents --all-headers --disassemble-all test
- quit
- */
-
- #include <exec/lists.h>
- #include <exec/ports.h>
- #include <exec/memory.h>
- #include <powerup/ppclib/interface.h>
- #include <powerup/gcclib/powerup_protos.h>
- #include <ppcinline/exec.h>
-
- struct MsgPort* main(void)
- {
- struct List *MyList;
- struct Node *MyNode;
- struct MsgPort *MyPort;
- struct MsgPort *MyPort2;
- struct Library *SysBase;
- struct MemList *MyMemList=NULL;
- struct MemList *MyMemList1;
-
- SysBase =(struct Library*) *((ULONG*) 4);
-
- MyMemList1 = AllocEntry(MyMemList);
- MyPort = CreateMsgPort();
- MyPort2 = CreateMsgPort();
-
-
-
- //AddHead(MyList,MyNode);
- return(MyPort);
- }
-
-