
LC6529N/F/L Instruction Table (by Function)
Abbreviations:
AC:
ACt:
CF:
DP:
E:
M:
M (DP):
P (DP
L
):
PC:
Note:
*
The second and subsequent repetitions of an LI or CLA instruction produce the same effects as an NOP instruction.
Accumulator
Accumulator bit t
Carry flag
Data pointer
E register
Memory
Memory addressed by DP
I/O port specified by DP
L
Program counter
STACK
TM:
TMF:
ZF:
( ), [ ]:
←
:
+:
–:
:
Stack register
Timer
Timer overflow flag
Zero flag
Indicates the contents of a location
Transfer direction, result
Addition
Subtraction
Exclusive or
No. 5117-26/39
LC6529N, LC6529F, LC6529L
Continued on next page.
Instruction code
Affected
status
bits
Mnemonic
Operation
Description
Note
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
[Accumulator manipulation instructions]
CLA
Clear AC
1 1 0 0
0 0 0 0
1
1
AC
←
0
CF
←
0
CF
←
1
AC
←
(AC)
AC
←
(AC) + 1
AC
←
(AC) – 1
E
←
(AC)
Set AC to zero.
ZF
*
CLC
Clear CF
1 1 1 0
0 0 0 1
1
1
Clear CF to zero.
CF
STC
Set CF
1 1 1 1
0 0 0 1
1
1
Set CF to one.
CF
CMA
Complement AC
1 1 1 0
1 0 1 1
1
1
Take ones complement of AC. ZF
INC
Increment AC
0 0 0 0
1 1 1 0
1
1
Add one to AC.
ZF, CF
DEC
Decrement AC
0 0 0 0
1 1 1 1
1
1
Subtract one from AC.
ZF, CF
TAE
Transfer AC to E
0 0 0 0
0 0 1 1
1
Copy contents of AC to E.
XAE
Exchange AC with E
0 0 0 0
1 1 0 1
1
1
(AC)
(E)
Exchange contents of
AC and E.
[Memory manipulation instructions]
INM
Increment M
0 0 1 0
1 1 1 0
1
1
M (DP)
←
[M (DP)] + 1
M (DP)
←
[M (DP)] – 1
Add one to M (DP).
ZF, CF
DEM
Decrement M
0 0 1 0
1 1 1 1
1
1
Subtract one from M (DP).
ZF, CF
SMB bit
Set M data bit
0 0 0 0
1 0 B
1
B
0
1
1
M (DP, B
1
B
0
)
←
1
Set bit specified by immediate
data B
1
B
0
in M (DP) to one.
Clear bit specified by
immediate data B
1
B
0
in
M (DP) to zero.
RMB bit
Reset M data bit
0 0 1 0
1 0 B
1
B
0
1
1
M (DP, B
1
B
0
)
←
0
ZF
[Arithmetic, logic and comparison instructions]
AC
←
(AC) +
[M (DP)]
Add contents of M (DP) to
contents of AC and store
result in AC.
AD
Add M to AC
0 1 1 0
0 0 0 0
1
1
ZF, CF
AC
←
(AC) +
[M (DP)] + (CF)
Add contents of M (DP) and
CF to contents of AC and
store result in AC.
ADC
Add M to AC with CF
0 0 1 0
0 0 0 0
1
1
ZF, CF
DAA
Decimal adjust AC
in addition
1 1 1 0
0 1 1 0
1
1
AC
←
(AC) + 6
Add 6 to contents of AC.
ZF
DAS
Decimal adjust AC
in subtraction
1 1 1 0
1 0 1 0
1
1
AC
←
(AC) + 10
Add 10 to contents of AC.
ZF
AC
←
(AC)
[M (DP)]
XOR contents of AC with
contents of M (DP) and store
result in AC.
EXL
Exclusive or M to AC
1 1 1 1
0 1 0 1
1
1
ZF
Compare contents of M (DP)
with those of AC and set CF
and ZF according to result.
CM
Compare AC with M
1 1 1 1
1 0 1 1
1
1
[M (DP)] + (AC) + 1
ZF, CF
N
b
N
c