Motorola HC12 Refrence Manual page 349

Table of Contents

Advertisement

Table A-1 Instruction Set Summary (Continued)
Source
Form
Effective Address ⇒ X
LEAX opr
Load Effective Address into X
Effective Address ⇒ Y
LEAY opr
Load Effective Address into Y
LSL opr
b7
C
Logical Shift Left
same function as ASL
LSLA
Logical Shift Accumulator A to Left
LSLB
Logical Shift Accumulator B to Left
LSLD
b7
C
Logical Shift Left D Accumulator
same function as ASLD
LSR opr
0
b7
Logical Shift Right
LSRA
Logical Shift Accumulator A to Right
LSRB
Logical Shift Accumulator B to Right
LSRD
0
b7
Logical Shift Right D Accumulator
MAX((A), (M)) ⇒ A
MAXA
MAX of 2 Unsigned 8-Bit Values
N, Z, V and C status bits reflect result of
internal compare ((A) – (M)).
MAX((A), (M)) ⇒ M
MAXM
MAX of 2 Unsigned 8-Bit Values
N, Z, V and C status bits reflect result of
internal compare ((A) – (M)).
µ (grade) ⇒ M
MEM
(X) + 4 ⇒ X; (Y) + 1 ⇒ Y; A unchanged
if (A) < P1 or (A) > P2 then µ = 0, else
µ = MIN[((A) – P1)×S1, (P2 – (A))×S2, $FF]
where:
A = current crisp input value;
X points at 4-byte data structure that de-
scribes a trapezoidal membership function
(P1, P2, S1, S2);
Y points at fuzzy input (RAM location).
See instruction details for special cases.
CPU12
REFERENCE MANUAL
Operation
0
b0
0
A
b0
b7
b0
B
b0
C
b0
A
b7
B
b0
C
;
(Y)
INSTRUCTION REFERENCE
Addr.
Machine
Mode
Coding (hex)
IDX
1A xb
IDX1
1A xb ff
IDX2
1A xb ee ff
IDX
19 xb
IDX1
19 xb ff
IDX2
19 xb ee ff
EXT
78 hh ll
IDX
68 xb
IDX1
68 xb ff
IDX2
68 xb ee ff
[D,IDX]
68 xb
[IDX2]
68 xb ee ff
INH
48
INH
58
INH
59
EXT
74 hh ll
IDX
64 xb
IDX1
64 xb ff
IDX2
64 xb ee ff
[D,IDX]
64 xb
[IDX2]
64 xb ee ff
INH
44
INH
54
INH
49
IDX
18 18 xb
IDX1
18 18 xb ff
IDX2
18 18 xb ee ff
[D,IDX]
18 18 xb
[IDX2]
18 18 xb ee ff
IDX
18 1C xb
IDX1
18 1C xb ff
IDX2
18 1C xb ee ff
[D,IDX]
18 1C xb
[IDX2]
18 1C xb ee ff
Special
01
*
~
S X H I N Z V C
2
– – –
2
2
2
– – –
2
2
– – ∆
∆ ∆
4
3
4
5
6
6
1
1
– – ∆
∆ ∆
1
∆ ∆
4
– – 0
3
4
5
6
6
1
1
∆ ∆
1
– – 0
– – ∆
∆ ∆
4
4
5
7
7
– – ∆
∆ ∆
4
5
6
7
7
5
? – ?
?
?
MOTOROLA
A-11
?

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents