OpenBoot 3.x Command Reference Manual

Changing the Number Base

Table I-24 Changing the Number Base

Command  

Stack Diagram 

Description 

.d

( n -- ) 

Display n in decimal without changing base.

.h

( n -- ) 

Display n in hex without changing base.

base

( -- addr ) 

Variable containing number base. 

decimal

( -- ) 

Set the number base to 10. 

d# number

( -- n ) 

Interpret number in decimal; base is unchanged.

hex

( -- ) 

Set the number base to 16. 

h# number

( -- n ) 

Interpret number in hex; base is unchanged.