D


d+
( d1 d2 --- d1+d2 )
"d-plus". Double number addition. The high order cell contains a dummy zero for a place holder for compatibility with other Forth implementations. Both d+ and + operate with 32-bit integer values.
d-
( d1 d2 --- d1-d2 )
"d-minus". Double number subtraction. (d1-d2). The high order cell contains a dummy zero for a place holder for compatibility with other Forth implementations. Both d- and - operate with 32-bit integer values.
d<
( d1 d2 --- tf )
"d-less-than". Compare two double numbers. TRUE is left on the stack if d1 is less than d2. The high order cell contains a dummy zero for a place holder for compatibility with other Forth implementations.
decimal
( --- )
"decimal". Set current base to 10.
definitions
( --- )
"definitions".
depth
( --- n )
"depth". Leave the current parameter stack depth on the stack.
dir
( --- )
Executes a "dir" command to the OS. This works fine in DOS, CP/M, and VAX/VMS. In Unix and its' clones, you must create a shell script named dir.
dnegate
( d --- d2 )
"d-negate". Leave the two's complement of a double number on the top of the stack. The high order cell contains a dummy zero for a place holder for compatibility with other Forth implementations.
do
( limit start --- )
"do". Begin a do loop. Can be used only in a macro definition.
      : ten-dots 10 0 do " ." loop ;
See loop.
does>
( --- )
"does". Not implemented, but not 100% necessary in Until because the same functionality can be achieved via C. I do plan to implement does> someday.
do_compile
( --- )
"do compile". This is an internal compiler word that should not be used!
do_definitions
( --- )
"do definitions". This is an internal compiler word that is the run-time portion of definitions.
do_do
Internal Use Only
"do-do". This is the run-time portion of do.
do_loop
Internal Use Only
"do-loop". This is the run-time portion of loop.
do_vocabulary
( --- )
"do vocabulary". This is the run-time portion of vocabulary.
drop
( n --- )
"drop". Remove the top number on the parameter stack.
dump
( addr len --- )
"dump". Type a hex dump starting at addr for a length of len. The actual number of bytes displayed is rounded up to the next 16-byte boundary to insure the complete last line in the dump prints.
dup
( n --- n n )
"dup". Duplicate the top stack entry:
      1 dup
Results in two 1s on the stack.

Table of Contents
Next Section