STMicroelectronics ST10 Series Programming Manual page 171

Hello, I am your AI assistant. How can I help you?
Table of Contents

Advertisement

Addressing Modes
Mnemonic
CoSUB
Rw
, Rw
n
CoSUBR
Rw
, Rw
n
CoSUB2
Rw
, Rw
n
CoSUB2R
Rw
, Rw
n
CoSUB
[IDX
CoSUBR
[IDX
CoSUB2
[IDX
CoSUB2R
[IDX
CoSUB
Rw
, [Rw
n
CoSUBR
Rw
, [Rw
n
CoSUB2
Rw
, [Rw
n
CoSUB2R
Rw
, [Rw
n
Examples
CoSUB
CoSUB2
Repeat 3 times
CoSUB
Repeat MRW times CoSUB2R
CoSUB2R
Subtraction Examples
Instr.
MS
op 1
CoSUB
x
183A
CoSUBR
x
183A
CoSUB2
x
0C1D
CoSUB2R
x
0C1D
CoSUB
0
FFFF
1
CoSUB2
0
0000
CoSUB2
0
0001
1
m
m
m
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗]
i
m
⊗], [Rw
⊗]
i
m
⊗]
m
⊗]
m
⊗]
m
⊗]
m
R0, R1
R2, [R6+]
CoSUB
[IDX1+QX1], [R10+QR0] ; (ACC) <-- (ACC) - ( ((R10))\((IDX1)) )
R4, [R8 - QR1]
op 2
ACC (before)
72AC
00 7FFF FFFF
h
h
72AC
00 7FFF FFFF
h
h
3956
00 E604 5564
h
h
3956
00 E604 5564
h
h
FFFF
7F FFFF FFFF
h
h
3000
7F FFFF FFFF
h
h
0000
80 0000 0000
h
h
ST10 FAMILY PROGRAMMING MANUAL
Rep
Format
No
A3 nm 0A 00
No
A3 nm 12 00
No
A3 nm 4A 00
No
A3 nm 52 00
Yes
93 Xm 0A rrrr:rqqq
Yes
93 Xm 12 rrrr:rqqq
Yes
93 Xm 4A rrrr:rqqq
Yes
93 Xm 52 rrrr:rqqq
Yes
83 nm 0A rrrr:rqqq
Yes
83 nm 12 rrrr:rqqq
Yes
83 nm 4A rrrr:rqqq
Yes
83 nm 52 rrrr:rqqq
; (ACC) <-- (ACC) - (R1)\(R0)
; (ACC) <-- (ACC) - 2*( ((R6)) \ (R2) )
; (R6) <-- (R6) + 2
; (R10) <-- (R10) + (QR0)
; (IDX1) <-- (IDX1) + (QX1)
; (ACC) <-- 2*( ((R8))\(R4) ) - (ACC)
; (R8) <-- (R8) - (QR1)
ACC (after)
00 0D53 E7C5
h
h
FF F2AC 183B
h
h
00 7358 3D2A
h
h
FF 8CA7 C2D6
h
h
80 0000 0000
h
h
00 7FFF FFFF
h
7F 9FFF FFFF
h
h
7F FFFF FFFE
h
h
FF 8000 0000
h
Bytes
4
4
4
4
4
4
4
4
4
4
4
4
N
Z
C
SV
E
0
0
0
-
0
1
0
1
-
0
0
0
0
-
0
1
0
1
-
0
1
0
1
1
1
0
0
1
1
0
0
0
0
-
1
0
0
0
1
1
1
0
0
1
0
169/172
SL
-
-
-
-
-
1
-
-
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST10 Series and is the answer not in the manual?

Questions and answers

Table of Contents