home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 18078 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.2 KB

  1. 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
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: CreateNewProc NP_Arguments
  5. References: <robertm.3241@terapin.com>
  6. Message-ID: <paulk.32c5@terapin.com>
  7. Date: 3 Jan 93 08:25:33 PST
  8. Organization: BBS
  9. Lines: 17
  10.  
  11. > Has anyone ever used the NP_Arguments tag using CreateNewProc or
  12. > CreateNewProcTags.  The Bantam dos manual makes reference to
  13. > needing to put the length of the argument string in one register
  14. > and the pointer to it in another.  This makes no sense as the
  15. > registers would hold info based on the CreateNewProc call and not
  16. > on the specific tags you did or did not happen to specify--these
  17. > are on the stack.
  18.  
  19. The argument pointer and length go in A0 and D0  => at the time the
  20. new process is started up <=.  That's how a new program (except BCPL
  21. programs) find out what the arguments are.  CreateNewProc puts the
  22. right values there as part of what it does for you.
  23.  
  24. I just tried a test program that did CreateNewProcTags(..., NP_Arguments,
  25. "string\n", ...) and it worked fine.  DO remember to end the argument
  26. line with a \n, because the arg lines passed by the shell have one.
  27.  
  28.