
No. 5065-11/13
LC72358N, 72362N, 72366
Continued on next page.
LC72358N, LC72362N and LC72366 Instruction Table
Abbreviations:
ADDR: Program memory address
b:
Borrow
C:
Carry
D
H
:
Data memory address high (row address): 2 bits
D
L
:
Data memory address low (column address):4 bits
I:
Immediate data:4 bits
M:
Data memory address
N:
Bit position
Pn:
Port number:4 bits
PWn:
Port control word number: 4 bits
r:
General register (one of banks 00 to 0FH)
Rn:
Register number:4 bits
( ):
Contents of register or memory
( )N:
Contents of bit N of register or memory
Mnemonic
Operand
Function
Operation
Machine code
1st
2nd
D15 14 13 12 11 10 9 8
7 6 5 4
3 2 1 D0
AD
r
M
Add M to r
r
←
(r) + (M)
r
←
(r) + (M)
skip if carry
r
←
(r) + (M) + C
r
←
(r) + (M) + C
skip if carry
M
←
(M) + I
M
←
(M) + I
skip if carry
M
←
(M) + I + C
M
←
(M) + I + C
skip if carry
r
←
(r) – (M)
r
←
(r) – (M)
skip if borrow
0
1
0
0
0
0
D
H
D
L
r
ADS
r
M
Add M to r,
then skip if carry
0
1
0
0
0
1
D
H
D
L
r
AC
r
M
Add M to r with carry
0
1
0
0
1
0
D
H
D
L
r
ACS
r
M
Add M to r with carry,
then skip if carry
0
1
0
0
1
1
D
H
D
L
r
AI
M
I
Add I to M
0
1
0
1
0
0
D
H
D
L
I
AIS
M
I
Add I to M,
then skip if carry
0
1
0
1
0
1
D
H
DL
I
AIC
M
I
Add I to M with carry
0
1
0
1
1
0
D
H
D
L
I
AICS
M
I
Add I to M with carry,
then skip if carry
0
1
0
1
1
1
D
H
D
L
I
SU
r
M
Subtract M from r
0
1
1
0
0
0
D
H
D
L
r
SUS
r
M
Subtract M from r,
then skip if borrow
0
1
1
0
0
1
D
H
D
L
r
SB
r
M
Subtract M from r with
borrow
r
←
(r) – (M) – b
0
1
1
0
1
0
D
H
D
L
r
Subtract M from r with
borrow,
then skip if borrow
r
←
(r) – (M) – b
skip if borrow
SBS
r
M
0
1
1
0
1
1
D
H
D
L
r
SI
M
I
Subtract I from M
M
←
(M) – I
M
←
(M) – I
skip if borrow
0
1
1
1
0
0
D
H
D
L
I
SIS
M
I
Subtract I from M,
then skip if borrow
0
1
1
1
0
1
D
H
D
L
I
SIB
M
I
Subtract I from M with
borrow
M
←
(M) – I – b
0
1
1
1
1
0
D
H
D
L
I
Subtract I from M with
borrow,
then skip if borrow
M
←
(M) – I – b
skip if borrow
SIBS
M
I
0
1
1
1
1
1
D
H
D
L
I
SEQ
r
M
Skip if r equal to M
(r) – M
skip if zero
0
0
0
1
0
0
D
H
D
L
r
SEQI
M
I
Skip if M equal to I
(M) – I
skip if zero
0
0
0
1
0
1
D
H
D
L
I
SNEI
M
I
Skip if M not equal to I
(M) – I
skip if not zero
0
0
0
0
0
1
D
H
D
L
I
Skip if r is greater
than or equal to M
(r) – M
skip if not borrow
SGE
r
M
0
0
0
0
1
1
D
H
D
L
r
Skip if M is greater
than or equal to I
(M) – I
skip if not borrow
SGEI
M
I
0
0
0
1
1
1
D
H
D
L
I
SLEI
M
I
Skip if M is less than I
(M) – I
skip if zero
0
0
0
0
1
1
D
H
D
L
I
C
I
G
A
S