ST10 FAMILY PROGRAMMING MANUAL
155/172
Addressing Modes
Examples
Multiplication Examples
Mnemonic
Rep
Format
Bytes
CoMUL
Rw
n
, Rw
m
No
A3 nm C0 00
4
CoMUL-
Rw
n
, Rw
m
No
A3 nm C8 00
4
CoMUL
Rw
n
, Rw
m
, rnd
No
A3 nm C1 00
4
CoMUL
[IDX
i
⊗
], [Rw
m
⊗]
No
93 Xm C0 0:0qqq
4
CoMUL-
[IDX
i
⊗
], [Rw
m
⊗]
No
93 Xm C8 0:0qqq
4
CoMUL
[IDX
i
⊗
], [Rw
m
⊗]
, rnd
No
93 Xm C1 0:0qqq
4
CoMUL
Rw
n
, [Rw
m
⊗]
No
83 nm C0 0:0qqq
4
CoMUL-
Rw
n
, [Rw
m
⊗]
No
83 nm C8 0:0qqq
4
CoMUL
Rw
n
, [Rw
m
⊗]
, rnd
No
83 nm C1 0:0qqq
4
CoMUL
R0, R1, rnd
; (ACC) <-- (R0)*(R1) + rnd
CoMUL-
R2, [R6+]
; (ACC)<-- -(R2)*((R6))
; (R6) <-- (R6) + 2
CoMUL
[IDX0+QX1], [R11+]
; (ACC) <-- ((IDX0))*((R11))
; (R11)<-- (R11) + 2
; (IDX0) <-- (IDX0) + (QX1)
CoMUL-
[IDX1-], [R15+QR0]
; (ACC) <-- -((IDX1))*((R15))
; (R15) <-- (R15) + (QR0)
; (IDX1) <-- (IDX1) - 2
CoMUL
[IDX1+QX0], [R9 - QR1], rnd
; (ACC) <-- ((IDX1))*((R9)) + rnd
; (R9) <-- (R9) - (QR1)
; (IDX1) <-- (IDX1) + (QX0).
Cases
op 1
op 2
rnd
MAE
MAH
MAL
N
Z
C
SV
E
SL
MP=0, MS=x
8000
h
8000
h
0
00
h
4000
h
0000
h
0
0
0
-
0
-
MP=1, MS=0
0
00
h
8000
h
0000
h
0
0
0
-
1
-
MP=1, MS=1
0
00
h
7FFF
h
FFFF
h
0
0
0
-
0
1
MP=0, MS=x
7FFF
h
7FFF
h
0
00
h
3FFF
h
0001
h
0
0
0
-
0
-
MP=1, MS=x
0
00
h
7FFE
h
0002
h
0
0
0
-
0
-
MP=1, MS=x
1
00
h
7FFE
h
0000
h
0
0
0
-
0
-
MP=0, MS=x
4001
h
F456
h
0
FF
h
FD15
h
7456
h
1
0
0
-
0
-
MP=1, MS=x
0
FF
h
FA2A
h
E8AC
h
1
0
0
-
0
-
MP=0, MS=x
1
FF
h
FD15
h
0000
h
1
0
0
-
0
-
MP=1, MS=x
1
FF
h
FA2B
h
0000
h
1
0
0
-
0
-
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...