English
Language : 

4502 Datasheet, PDF (89/116 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4502 Group
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
XAMI j (eXchange Accumulator and Memory data and Increment register Y and skip)
Instruction
code
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Number of Number of Flag CY
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.
Rev.3.01 2005.02.02 page 89 of 112
REJ03B0105-0301