Basic commands to display stack values are shown in Table 4-18.
Table 4-18 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 usually be used safely for debugging purposes. (This is the function that showstack performs automatically.)