NEC PD17062 User Manual
Page 50
50
µ
PD17062
Table 7-1 ALU Operations
ALU function
Addition
Subtraction
Logic operation
Discrimi-
nation
Comparison
Transfer
Rotation
ADD
ADDC
SUB
SUBC
OR
AND
XOR
SKT
SKF
SKE
SKNE
SKGE
SKLT
LD
ST
MOV
RORC r
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
m, #n
m, #n
m, #n4
m, #n4
m, #n4
m, #n4
r, m
m, r
m, #n4
@r, m
m, @r
0
0
0
1
1
0
1
1
Instruction
Operation difference due to program status word (PSWORD)
Address modification
Value
of the
BCD flag
Value
of the
CMP flag
Operation
Operation
of the
CY flag
Operation of the Z flag
Index
Memory
pointer
Optional
(hold)
Optional
(hold)
Optional
(hold)
Optional
(hold)
Optional
(hold)
Optional
(hold)
Optional
(hold)
Optional
(hold)
Optional
(hold)
Optional
(reset)
Binary operation
The result is stored.
Binary operation
The result is not
stored.
Decimal operation
The result is stored.
Decimal operation
The result is not
stored.
Not changed
Not changed
Not changed
Not changed
Not changed
Set by a
carry or
borrow.
Otherwise,
the flag
is reset.
Retains the
previous
state.
Retains the previous state.
Retains the
previous
state.
Retains the previous state.
Retains the
previous
state.
Retains the previous state.
Retains the
previous
state.
Retains the previous state.
Value of b
0
of
the general-
purpose
register
Retains the previous state.
Set if the operation result is
0000B. Otherwise, the flag is
reset.
Set if the operation result is
0000B. Otherwise, the flag is
reset.
Retains the status if the
operation result is 0000B.
Otherwise, the flag is reset.
Retains the status if the
operation result is 0000B.
Otherwise, the flag is reset.
Provided
Not
provided
Provided
Not
provided
Provided
Not
provided
Provided
Provided
Not
provided
Not
provided
Provided
Not
provided
Not
provided