![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268048.webp)
9
General Instruction Characteristics
Section 1-1
Specifying Constants
Specifying Text Strings
Method
Applicable
operands
Data
format
Code
Range
Example
Constant
(16-bit data)
All binary data
and binary data
within a range
Unsigned
binary
#
#0000 to #FFFF
MOV #0100 D00000
Stores #0100 hex (&256 decimal)
in D00000.
+
#0009 #0001 D00001
Stores #000A hex (&10 decimal)
in D00001.
Signed dec-
imal
±
–32,768 to +32,767
MOV
−
100 D00000
Stores
−
100 decimal (#FF9C hex)
in D00000.
+−
9
−
1 D00001
Stores
−
10 decimal (#FFF6 hex)
in D00001.
Unsigned
decimal
&
&0 to &66,535
MOV &256 D00000
Stores
−
256 decimal (#0100 hex)
in D00000.
+
&9 &1 D00001
Stores
−
10 decimal (#000A hex)
in D00001.
All BCD data
and BCD data
within a range
BCD
#
#0000 to #9999
MOV #0100 D00000
Stores #0100 (BCD) in D00000.
+
B #0009 #0001 D00001
Stores #0010 (BCD) in D00001.
Constant
(32-bit data)
All binary data
and binary data
within a range
Unsigned
binary
#
#0000 0000 to
#FFFF FFFF
MOVL #12345678 D00000
Stores #12345678 hex in D00000
and D00001.
Signed dec-
imal
+
–
–2,147,483,648 to
+2,147,483,647
MOVL
−
12345678 D00000
Stores
−
12345678 decimal in
D00000 and D00001.
Unsigned
decimal
&
&0 to &4,294,967,295
MOVL &12345678 D00000
Stores &12345678 decimal in
D00000 and D00001.
All BCD data
and BCD data
within a range
BCD
#
#0000 0000 to
#9999 9999
MOVL #12345678 D00000
Stores #12345678 (BCD) in
D00000 and D00001
Method
Description
Code
Examples
Instruction example
Text strings
Text is stored in ASCII (1 byte/
character excluding special
characters) starting with the
lower byte of the lowest word
in the range.
If there is an odd number of
characters, 00 (NULL) is
stored in the higher byte of the
last word in the range.
If there is an even number of
characters, 0000 (two NULLs)
are stored in the word after the
last in the range.
1234
5678
D0001
D00000
"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
D00100
D00101
D00102
41
42
43
44
45
00
D00200
D00201
D00202
MOV$ D00100 D00200
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...