31
Basic Concepts Section 2-1
Note Unsigned decimal notation if used for the CX-Programmer only.
ASCII Characters
Text string Description Symbol Examples ---
Text string data is stored in ASCII
(one byte except for special charac-
ters) in order from the leftmost to the
rightmost byte and from the right-
most (smallest) to the leftmost word.
00 Hex (NUL code) is stored in the
rightmost byte of the last word if
there is an odd number of charac-
ters.
0000 Hex (2 NUL codes) is stored in
the leftmost and rightmost vacant
bytes of the last word + 1 if there is
an even number of characters.
---
ASCII characters that can be used in a text string includes alphanumeric characters, Katakana and sym-
bols (except for special characters). The characters are shown in the following table.
Bits 0 to 3 Bits 4 to 7
Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
Hex0123456789ABCDEF
0000 0
Space
0@P`p 0@P
0001 1 ! 1AQaq !1AQ
0010 2 ” 2BRbr ”2BR
0011 3 # 3CScs #3CS
0100 4 $ 4DTdt $4DT
0101 5 % 5EUeu %5EU
0110 6 & 6FVfv &6FV
0111 7 ’ 7GWgw ’7GW
1000 8 ( 8HXhx (8HX
1001 9 ) 9IYiy )9IY
1010 A * :JZjz *:JZ
1011 B + ;K[k{ +;K[
1100 C , <L\l| ,<L\
1101 D - =M]m} -=M]
1110 E .>N^n~ .>N^
1111 F /?O_o /?O_
'ABCDE'
'A' 'B'
'C'
'D'
'E'
NUL
41
42
43
44
45
00
'ABCD'
'A'
'B'
'C'
'D'
NUL
NUL
41
42
43
44
00
00
41 42
43
44
45
00
41
42
43
44
45
00
D00100
D00101
D00102
D00200
D00201
D00202
MOV$ D00100 D00200