ST10 FAMILY PROGRAMMING MANUAL
133/172
CoLOAD(2)(-)
Load Accumulator
Group
40-bit Arithmetic Instructions
Syntax
CoLOAD op1, op2
Operation
(tmp) <--
(op2)\(op1)
(ACC)
<-- 0 + (tmp)
Syntax
CoLOAD- op1,
op2
Operation
(tmp) <--
(op2)\(op1)
(ACC)
<-- 0 - (tmp)
Syntax
CoLOAD2 op1, op2
Operation
(tmp)
<-- 2 * (op2)\(op1)
(ACC)
<-- 0 + (tmp)
Syntax
CoLOAD2- op1, op2
Operation
(tmp)
<-- 2 * (op2)\(op1)
(ACC)
<-- 0 - (tmp)
Data Types
DOUBLE WORD
Result
40-bit signed value
Description
Loads the accumulator with a 40-bit source operand. The 40-bit source operand results from the concate-
nation of the two source operands op1 (LSW) and op2 (MSW) which is then sign-extended. “2” and “-”
options indicate that the 40-bit operand is also multiplied by two or/and negated, respectively, prior being
stored in the accumulator. The “-” option indicates that the source operand is 2’s complemented. When
the MS bit of the MCW register is set and when a 32-bit overflow or underflow occurs, the obtained result
becomes 00 7FFF FFFF
h
or FF 8000 0000
h
, respectively. This instruction is not repeatable and allows up
to two parallel memory reads.
MAC Flags
Addressing Modes
N
Z
C
SV
E
SL
*
*
*
-
*
*
N
Set if the most significant bit of the result is set. Cleared otherwise.
Z
Set if the result equals zero. Cleared otherwise.
C
Set if a borrow is generated. Cleared otherwise.
SV
Not affected.
E
Set if the MAE is used. Cleared otherwise.
SL
Set if the contents of the ACC is automatically saturated. Not affected otherwise.
Mnemonic
Rep
Format
Bytes
CoLOAD
Rw
n
, Rw
m
No
A3 nm 22 00
4
CoLOAD-
Rw
n
, Rw
m
No
A3 nm 2A 00
4
CoLOAD2
Rw
n
, Rw
m
No
A3 nm 62 00
4
CoLOAD2-
Rw
n
, Rw
m
No
A3 nm 6A 00
4
CoLOAD
[IDX
i
⊗
], [Rw
m
⊗
]
No
93 Xm 22 0:0qqq
4
CoLOAD-
[IDX
i
⊗
], [Rw
m
⊗
]
No
93 Xm 2A 0:0qqq
4
CoLOAD2
[IDX
i
⊗
], [Rw
m
⊗
]
No
93 Xm 62 0:0qqq
4
CoLOAD2-
[IDX
i
⊗
], [Rw
m
⊗
]
No
93 Xm 6A 0:0qqq
4
CoLOAD
Rw
n
, [Rw
m
⊗
]
No
83 nm 22 0:0qqq
4
CoLOAD-
Rw
n
, [Rw
m
⊗
]
No
83 nm 2A 0:0qqq
4
CoLOAD2
Rw
n
, [Rw
m
⊗
]
No
83 nm 62 0:0qqq
4
CoLOAD2-
Rw
n
, [Rw
m
⊗
]
No
83 nm 6A 0:0qqq
4
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...