Debugger Engine Commands
Debugger Commands
806
Microcontrollers Debugger Manual
Usage
NB [base]
Where base is the new number base (2, 8, 10 or 16).
Components
Debugger engine.
Table Example:
0x2F00, /* Hexadecimal Constant */
043, /* Octal Constant */
255 /* Decimal Constant */
In the same way, the Assembler notation for constant is also supported. That
means that independent of the current number base you can specify hexadecimal,
octal or binary constants using the Assembler prefixes shown in Table 34.7.
Table Example:
$2F00, /* Hexadecimal Constant */
@43, /* Octal Constant */
%10011 /* Binary Constant */
When the default number base is 16, constants starting with a letter A, B, C, D, E
or F must be prefixed either by 0x or by $, as shown in Table 34.8. Otherwise, the
command line interpreter cannot detect if you are specifying a number or a symbol.
Table 34.6 ANSI C Constant Notation
Notation Meaning
0x---- Hexadecimal constant
0---- Octal constant
Table 34.7 Assembler Notation for Constant
Notation Meaning
$---- Hexadecimal constant
@---- Octal constant
%---- Binary constant