English
Language : 

PD17012_15 Datasheet, PDF (58/320 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE
µPD17012, 17P012
Table 7-1. List of ALU Processing Instruction Operations
ALU
Function
Instruction
Difference in Operation Based on Program Status Word (PSWORD)
Value of Value of
BCD Flag CMP Flag
Arithmetic
Operation
Operation of
CY Flag
Operation of Z Flag
Address Modification
Index
Memory
Pointer
Addition ADD
r, m
0
m, #n4
ADDC r, m
0
0 Stores result of Set if carry or Set if result of operation
binary operation. borrow occurs; is 0000B; otherwise, reset.
1 Does not store otherwise, reset. Holds status if result of
Executed Not
executed
m, #n4
Subtrac- SUB
r, m
1
tion
m, #n4
result of binary
operation.
0 Stores result of
decimal operation.
operation is 0000B;
otherwise, reset.
Set if result of operation is
0000B; otherwise, reset.
SUBC r, m
1
1 Does not store
Holds status if result of
Logical OR
m, #n4
result of decimal
operation is 0000B; otherwise,
operation.
reset.
r, m
Any Any Not affected
Holds previous Holds previous status.
Executed Not
operation
m, #n4 (held) (held)
status.
executed
AND
r, m
m, #n4
XOR
r, m
m, #n4
Judgment SKT
m, #n
Any Any Not affected
Holds previous Holds previous status.
Executed Not
SKF
m, #n (held) (reset)
status.
executed
Compare SKE
m, #n4 Any Any Not affected
Holds previous Holds previous status.
Executed Not
SKNE m, #n4 (held) (held)
status.
executed
SKGE m, #n4
SKLT m, #n4
Transfer LD
r, m
Any Any Not affected
Holds previous Holds previous status
Executed Not
ST
MOV
m, r
m, #n4
@r, m
(held) (held)
status
executed
Executed
Rotation RORC
m, @r
r
Any Any Not affected
(held) (held)
Value of general Holds previous value
register b0
Not
Not
executed executed
56
Data Sheet U10101EJ4V0DS