Q: How do I change the numeric base for the Open Firmware user interface?
A: Use the decimal and hex words to change the numeric base to 10 or 16 respectively. These words will change the base for the remainder of the Open Firmware user interface session, or until the next change is entered. To change the base for just the next input value use the d# and h# words. Try this at the interface:
0> d# 10 dup cr .d .
The result will be:
10 a ok
0>
10 was entered in decimal, then duplicated. After a carriage return, the top stack item was displayed in decimal and again, but this time in the default base of hex.
|