Data stack: ( n -- a )
+From 53f50810894e81457a75348b0565b4281d4762b4 Mon Sep 17 00:00:00 2001
From: Ralph Ronnquist
DATA-STACK RETURN-STACK @@ -864,6 +865,7 @@ asciidoc.install(); PROGRAM_VERSION
READ-STREAM-CHAR +READ-STREAM-LINE READ-WORD REALLOC RETURN @@ -1194,6 +1196,19 @@ also is incremented accordingly.
Data stack: ( n -- a )
+"D[n]" is a function word that pushes the address for the n:th cell of +the data stack onto the data stack.
"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.
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
Data stack: ( n -- a )
"R[n]" is a function word that pushes the address for the n:th cell on -the top return stack value onto the data stack.
"R[n]" is a function word that pushes the address for the n:th cell of +the return stack onto the data stack.
Data stack: ( stream -- n )
+"READ-STREAM-LINE" is a function word that gets the next line from the +given stream buffer into PAD and returns number of characters. If the +stream is backed by a file descriptor, the stream buffer is refilled +from there as needed, by a SYS_READ call when more characters are +needed.