home *** CD-ROM | disk | FTP | other *** search
- ;/*
- delete test1.s
- ;gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S -E -C -dM test1.c >test1.err
- gcc -Iinclude: -I../include/ -I./include/ -v -O2 -S test1.c
- delete test1.o
- gas test1.s -o test1.o
- ld -r test1.o -o test1
- objdump --section-headers --full-contents --all-headers --disassemble-all test
- quit
- */
-
- #include <exec/lists.h>
- #include <exec/ports.h>
- #include <exec/memory.h>
- #include <inline/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);
- }
-
-