Table 4-10 shows basic commands to display stack values.
Table 4-10 Basic Number Display
Command |
Stack Diagram |
Description |
---|---|---|
. |
( n -- ) |
Display a number in the current base. |
.r |
( n size -- ) |
Display a number in a fixed width field. |
.s |
( -- ) |
Display contents of data stack. |
showstack |
( ??? -- ??? ) |
Execute .s automatically before each ok prompt. |
noshowstack |
( ??? -- ??? ) |
Turn off automatic display of the stack before each ok prompt |
u. |
( u -- ) |
Display an unsigned number. |
u.r |
( u size -- ) |
Display an unsigned number in a fixed width field. |
The .s command displays the entire stack contents without disturbing them. It can be safely used at any time for debugging purposes. (This is the function that showstack performs automatically.)