5 Understanding Programming
5-80
CJ2 CPU Unit Software User’s Manual
z Values Represented in 1-word Data
Value
(Decimal)
Binary representation
BCD representation
(decimal)
Decimal representations
Hexadecimal representa-
tion
Unsigned Signed
1 &1 +1 #0001 #0001
2 &2 +2 #0002 #0002
3 &3 +3 #0003 #0003
4 &4 +4 #0004 #0004
5 &5 +5 #0005 #0005
6 &6 +6 #0006 #0006
7 &7 +7 #0007 #0007
8 &8 +8 #0008 #0008
9 &9 +9 #0009 #0009
10 &10 +10 #000A #0010
11 &11 +11 #000B #0011
12 &12 +12 #000C #0012
13 &13 +13 #000D #0013
14 &14 +14 #000E #0014
15 &15 +15 #000F #0015
16 &16 +16 #0010 #0016
:::::
9999 &9999 +9999 #270F #9999
10000 &10000 +10000 #2710 Not applicable.
:::
32767 &32767 +32767 #7FFF
32768 &32768 Not applicable. #8000
:: :
65535 &65535 #FFFF
−1 Not applicable. −1 #FFFF Not applicable.
:::
−32768 −32768 #8000
−32769 Not applicable. Not applicable.