Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!cs.utexas.edu!mailrus!cornell!rochester!rit!ultb!gxr2848 From: gxr2848@ultb.UUCP (G.X. Roberts) Newsgroups: comp.sys.amiga.tech Subject: CreatePort() help Summary: need it in assembly Keywords: CreatePort() asm help! Message-ID: <1448@ultb.UUCP> Date: 19 Oct 89 04:31:06 GMT Reply-To: gxr2848@ultb.UUCP (G.X. Roberts ) Distribution: comp Organization: Only late at night.... Lines: 42 Hi Netland, I have a question for all you fellow techies. I would like to create my own MsgPort via the Exec. However, I want to do it in assembler I know that the CreatePort() function exists, but only in the link library. (ie. it's not a REAL rom routine.) So, I am trying to get its equivalent. I am currently doing something like the following: 1) Allocate a hunk of memory MP_SIZE big. 2) set the LN_NAME to point to my name. 3) set the LN_PRI to 0 4) Call AddPort() I >THINK< this is the correct way of going about it. However I'm not sure, and I don't have an Exec manual handy for the source to CreatePort(), and this part of the code is a strong suspect for a bug that I have. What I'd like is one of the following: a) confirmation that this method is right, b) an example of how to do this (C or ASM), or c) source to CreatePort() from the Exec manual I really doubt c) is legal, so I'm not too concerned about that. a) or b) would solve my problem just as well. ANY help/suggestions would be appreciated! E-mail or post, as you feel appropriate. Thanks in advance, Greg Roberts II -- --- Internet: gxr2848@ultb.isc.rit.edu BITNET: gxr2848@RITVAX Talking to a mirror: "I am you, and what I see is me." (Pink Floyd)