ADC Home > Reference Library > Technical Q&As > Hardware & Drivers > Apple Hardware >

How do I change the numeric base for the Open Firmware user interface?


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.

[Oct 11 1999]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.