home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!rrz.uni-koeln.de!unidui!math.fu-berlin.de!umn.edu!csus.edu!netcom.com!netcomsv!terapin!paulk
- From: paulk@terapin.com (Paul Kienitz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: CreateNewProc NP_Arguments
- References: <robertm.3241@terapin.com>
- Message-ID: <paulk.32c5@terapin.com>
- Date: 3 Jan 93 08:25:33 PST
- Organization: BBS
- Lines: 17
-
- > Has anyone ever used the NP_Arguments tag using CreateNewProc or
- > CreateNewProcTags. The Bantam dos manual makes reference to
- > needing to put the length of the argument string in one register
- > and the pointer to it in another. This makes no sense as the
- > registers would hold info based on the CreateNewProc call and not
- > on the specific tags you did or did not happen to specify--these
- > are on the stack.
-
- The argument pointer and length go in A0 and D0 => at the time the
- new process is started up <=. That's how a new program (except BCPL
- programs) find out what the arguments are. CreateNewProc puts the
- right values there as part of what it does for you.
-
- I just tried a test program that did CreateNewProcTags(..., NP_Arguments,
- "string\n", ...) and it worked fine. DO remember to end the argument
- line with a \n, because the arg lines passed by the shell have one.
-
-