English
Language : 

UPD17015 Datasheet, PDF (29/120 Pages) NEC – 4-BIT SINGLE-CHIP MICROCONTROLLER FOR PORTABLE RADIOS
µPD17015
Table 7-1 ALU Operations
Operation difference due to program status word (PSWORD)
Instruction
Value Value
of the of the
BCD flag CMP flag
Operation
Operation
of the
CY flag
Operation of the Z flag
r, m
ADD
0
m, #n4
r, m
ADDC
0
m, #n4
r, m
SUB
1
m, #n4
r, m
SUBC
1
m, #n4
Binary operation
0
The result is stored.
Set if the operation result is
0000B. Otherwise, the flag is
reset.
Binary operation
1 The result is not
stored.
Set by a
carry or
borrow.
Otherwise,
Retains the status if the
operation result is 0000B.
Otherwise, the flag is reset.
Decimal operation the flag
Set if the operation result is
0
is reset.
The result is stored.
0000B. Otherwise, the flag is
reset.
Decimal operation
1 The result is not
stored.
Retains the status if the
operation result is 0000B.
Otherwise, the flag is reset.
r, m
OR
m, #n4
AND
r, m Optional Optional Not changed
m, #n4 (hold) (hold)
Retains the
previous
state.
Retains the previous state.
XOR
r, m
m, #n4
SKT m, #n Optional Optional Not changed
SKF m, #n (hold) (reset)
SKE m, #n4
SKNE m, #n4 Optional Optional Not changed
(hold) (hold)
SKGE m, #n4
SKLT m, #n4
LD
r, m
ST
m, r
Optional Optional Not changed
m, #n4 (hold) (hold)
MOV
@r, m
m, @r
Retains the
previous
state.
Retains the previous state.
Retains the
previous
state.
Retains the previous state.
Retains the
previous
state.
Retains the previous state.
RORC r
Optional Optional Not changed
(hold) (hold)
Value of b0 of
the general-
purpose
register
Retains the previous state.
29