English
Language : 

4501_M Datasheet, PDF (101/212 Pages) Renesas Technology Corp – 4-BIT CISC SINGLE-CHIP MICROCOMPUTER 4500 SERIES
4501 Group
HARDWARE
INSTRUCTIONS
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
XAM j (eXchange Accumulator and Memory data)
Instruction D9
D0
Number of Number of Flag CY
code
words
cycles
1 0 1 1 0 1 j j j j 2 2 D j 16
1
1
–
Skip condition
–
Operation:
(A) ←→ (M(DP))
(X) ← (X)EXOR(j)
j = 0 to 15
Grouping: RAM to register transfer
Description: After exchanging the contents of M(DP)
with the contents of register A, an exclusive
OR operation is performed between regis-
ter X and the value j in the immediate field,
and stores the result in register X.
XAMD j (eXchange Accumulator and Memory data and Decrement register Y and skip)
Instruction D9
D0
Number of Number of Flag CY
code
words
cycles
1 0 1 1 1 1 j j j j 2 2 F j 16
1
1
–
Skip condition
(Y) = 15
Operation:
(A) ←→ (M(DP))
(X) ← (X)EXOR(j)
j = 0 to 15
(Y) ← (Y) – 1
Grouping: RAM to register transfer
Description: After exchanging the contents of M(DP)
with the contents of register A, an exclusive
OR operation is performed between regis-
ter X and the value j in the immediate field,
and stores the result in register X.
Subtracts 1 from the contents of register Y.
As a result of subtraction, when the con-
tents of register Y is 15, the next instruction
is skipped. When the contents of register Y
is not 15, the next instruction is executed.
XAMI j (eXchange Accumulator and Memory data and Increment register Y and skip)
Instruction D9
D0
Number of Number of Flag CY
code
101110j j j j
2 Ej
words
cycles
2
16
1
1
–
Skip condition
(Y) = 0
Operation:
(A) ←→ (M(DP))
(X) ← (X)EXOR(j)
j = 0 to 15
(Y) ← (Y) + 1
Grouping: RAM to register transfer
Description: After exchanging the contents of M(DP)
with the contents of register A, an exclusive
OR operation is performed between regis-
ter X and the value j in the immediate field,
and stores the result in register X.
Adds 1 to the contents of register Y. As a re-
sult of addition, when the contents of register
Y is 0, the next instruction is skipped. when
the contents of register Y is not 0, the next
instruction is executed.
Instruction D9
code
D0
2
Number of Number of Flag CY
words
cycles
16
Skip condition
Rev.2.01 Feb 07, 2005
REJ09B0192-0201
1-89