
LC72P366 Instruction Overview
Abbreviations : ADDR : Program memory address
b
: Borrow
C
: Carry
DH
: Data memory address high (Row address) [2 bits]
DL
: Data memory address low (Column address) [4 bits]
I
: Immediate data [4 bits]
M
: Data Memory address
N
: Bit position [4 bits]
Pn
: Port number [4 bits]
PWn
: Port control word number [4 bits]
r
: General register (on of location 00 to 0FH in the current bank)
Rn
: Register number [4 bits]
( )
: Contents of register or memory
( )n
: Contents of bit N of register or memory
No. 5544-12/14
LC72P366
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
r
←
(r) – (M) – b
0
1
0
0
0
0
D
H
D
H
D
L
D
L
r
ADS
r
M
Add M to r,
then skip if carry
0
1
0
0
0
1
r
AC
r
M
Add M to r with carry
0
1
0
0
1
0
D
H
D
H
D
L
D
L
r
ACS
r
M
Add M to r with carry,
then skip if carry
0
1
0
0
1
1
r
AI
M
I
Add I to M
0
1
0
1
0
0
D
H
D
H
D
L
D
L
I
AIS
M
I
Add I to M,
then skip if carry
0
1
0
1
0
1
I
AIC
M
I
Add I to M with carry
0
1
0
1
1
0
D
H
D
H
D
L
D
L
I
AICS
M
I
Add I to M with carry,
then skip if carry
0
1
0
1
1
1
I
SU
r
M
Subtract M from r
0
1
1
0
0
0
D
H
D
H
D
L
D
L
r
SUS
r
M
Subtract M from r,
then skip if borrow
0
1
1
0
0
1
r
SB
r
M
Subtract M from r with
borrow
0
1
1
0
1
0
D
H
D
L
r
SBS
r
M
Subtract M from r with
borrow,
then skip if borrow
r
←
(r) – (M) – b
skip if borrow
0
1
1
0
1
1
D
H
D
L
I
SI
M
I
Subtract I from M
M
←
(M) – I
M
←
(M) – I
skip if borrow
M
←
(M) – I – b
0
1
1
1
0
0
D
H
D
H
D
L
D
L
I
SIS
M
I
Subtract I from M,
then skip if borrow
0
1
1
1
0
1
I
SIB
M
I
Subtract I from M with
borrow
0
1
1
1
1
0
D
H
D
L
I
SIBS
M
I
Subtract I from M with
borrow,
then skip if borrow
M
←
(M) – I – b
skip if borrow
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
H
D
H
D
H
D
L
D
L
D
L
D
L
r
SEQI
M
I
Skip if M equal to I
(M) – I skip if zero
0
0
0
1
0
1
I
SNEI
M
I
Skip if M not equal to I
(M) – I skip if not zero
0
0
0
0
0
1
I
SGE
r
M
Skip if r is greater than
or equal to M
(r) – (M)
skip if not borrow
0
0
0
1
1
0
r
SGEI
M
I
Skip if M is greater than (M) – I
or equal to I
0
0
0
1
1
1
D
H
D
L
I
skip if not borrow
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
Continued on next page.
A
S
C
I
g