DC - Data Conversion
3-37
3
DC - Data Conversion
Command Input
DC EXP | ADDR [;[B] [O] [A]]
Options
Description
The DC command calculates an expression into a single numeric
value. This equivalent value is displayed in its hexadecimal and
decimal representation. If the numeric value could be interpreted as
a signed negative number (i.e., if the most significant bit of the 32-
bit internal representation of the number is set), then both the
signed and unsigned interpretations are displayed.
Examples
Example 1:
PPC1-Bug>DC 10 <Return>
00000010 = $10 = &16
PPC1-Bug>
Example 2:
PPC1-Bug>DC &10-&20 <Return>
SIGNED : FFFFFFF6 = -$A = -&10
UNSIGNED: FFFFFFF6 = $FFFFFFF6 = &4294967286
PPC1-Bug>
Example 3:
PPC1-Bug>DC 123+&345+@67+%1100001 <Return>
00000314 = $314 = &788
PPC1-Bug>
B Display the output in binary
O Display the output in octal
A Display the ASCII character equal to the value. If the value is
greater than $7F, the A option displays NA.
Comments to this Manuals