Download Print this page

Default Base Commands - Intel EV80Cl96KB User Manual

Microcontroller evaluation board

Advertisement

-289
EV80C196KB Microcontroller Evaluation Board User's Manual
Default Base Commands
These commands are used to set the default base for numeric input and output. The
valid bases are: 16 (hexadecimal) , 10 (decimal), and 8 (octal). The default base is
used to display variables. It is not used to display addresses (which are displayed in
hexadecimal) or breakpoint numbers (which are displayed in decimal). The default
base is also used to enter numbers into the command parser, but it is possible to
override the default base during input by adding a character at the end of the num-
ber which forces the appropriate base to be used. The override characters are H (or
h) for hexadecimal, T (or t) for decimal, and 0 (or o) for octal. The override charac-
ter must appear immediately following the last digit of the number with no interven-
ing space.
BASE
This command will display the current default base.
BASE=cvalid-base>
This command will set the current default base to <valid-base>.
When entering this
command it is advisable to use an override character to select the new default base:
BASE=1 00
; selects octal
BASE=1 OT
; selects decimal
BASE=1 OH
; selects hexadecimal
This avoids confusion when changing bases. As an example of the confusion which
is avoided, consider the following commands entered while the base is hexadecimal.
The command:
BASE=1 0
will leave the default base as hexadecimal and the command:
BASE=1 6
will result in an error because 16H (22T) is not a valid base. The command:
BASE=OA
will select decimal as the default base but it is cleaner and simpler to use the over-
ride character:
BASE=1 OT
This works independently
of the current default base and leaves a useful record in
log or list files which may be open.

Advertisement

loading