[Coco] reading the command line in assembler

Gene Heskett gene.heskett at verizon.net
Sat Mar 14 00:12:29 EDT 2009


On Friday 13 March 2009, Bob Devries wrote:
>hi all,
>
>No, I don't need to know *how* to read the command line; I already know that
>
>:)
>
>When a command in NitrOS9 executes, X points to the command line, which is
>terminated in a carriage return. I'd like to know if the memory after the
>last character can be assumed to be $00?
>
I don't believe so.  A proper program, presumes it is done with the command 
parsing when it finds the $0D.  There could be anything beyond that.

>In C, the number of command line arguments and the array of arguments are
>nicely packaged. Not so in assembler, I fear.
>
>If this information is in the manual, will some kind soul point me to the
>page?
>
>--
>Regards, Bob Devries, Dalby, Queensland, Australia
>
>Isaiah 50:4 The sovereign Lord has given me
>the capacity to be his spokesman,
>so that I know how to help the weary.
>
>website: http://www.home.gil.com.au/~bdevasl
>my blog: http://bdevries.invigorated.org/
>
>
>--
>Coco mailing list
>Coco at maltedmedia.com
>http://five.pairlist.net/mailman/listinfo/coco


-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The solution of this problem is trivial and is left as an exercise for
the reader.




More information about the Coco mailing list