X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_args.adoc;h=ca3eef6ca2e36cf72089cedf5264c7398433f2d1;hb=1c80c7f2fc08f72bc20d01b12756070b13b230df;hp=825ca358b3ecd12c0d62da8e696ffd5c9b6d9dee;hpb=8e9e9a2c52a654a354a83c9d80662fa34fab677d;p=rrq%2Frrqforth.git diff --git a/adoc/p_args.adoc b/adoc/p_args.adoc index 825ca35..ca3eef6 100644 --- a/adoc/p_args.adoc +++ b/adoc/p_args.adoc @@ -10,7 +10,8 @@ Data stack: ( -- p[argv** argc] ) "ARGS" is a value word that holds a pointer to the command line data block which consists of a count cell followed by that many asciiz -pointers and then a 0 cell. +pointers and then a 0 cell. That is next followed by the environment +as a number of asciiz pointers and a 0 cell. ==== .the command line argument block @@ -18,8 +19,9 @@ pointers and then a 0 cell. ---- ARGS -> 8 bytes: count of non-zero asciiz pointers following 8 bytes: command name string - 8 bytes: first argument string - 8* ... - 8 zero + 8* bytes: argument strings + 8 bytes: zero cell + 8* bytes: envirnment strings + 8 bytes: zero cell ---- ====