4501 Group
MITSUBISHI MICROCOMPUTERS
87
Skip condition
Number of
cycles
Number of
words
Instruction
code
Flag CY
2
16
Skip condition
Number of
cycles
Number of
words
Instruction
code
Flag CY
2
16
Skip condition
Number of
cycles
Number of
words
Instruction
code
Flag CY
2
16
Skip condition
Number of
cycles
Number of
words
Instruction
code
Flag CY
2
16
D
9
D
0
D
9
D
0
D
9
D
0
D
9
D
0
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
XAM j
(eXchange Accumulator and Memory data)
1
0
1
1
0
1
j
j
j
j
2
D
j
1
1
–
–
Grouping:
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.
RAM to register transfer
XAMD j
(eXchange Accumulator and Memory data and Decrement register Y and skip)
1
0
1
1
1
1
j
j
j
j
2
F
j
1
1
–
(Y) = 15
Grouping:
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.
RAM to register transfer
Operation:
(A)
←→
(M(DP))
(X)
←
(X)EXOR(j)
j = 0 to 15
(Y)
←
(Y) – 1
Operation:
(A)
←→
(M(DP))
(X)
(X)EXOR(j)
j = 0 to 15
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
XAMI j
(eXchange Accumulator and Memory data and Increment register Y and skip)
1
0
1
1
1
0
j
j
j
j
2
E
j
1
1
–
(Y) = 0
Grouping:
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.
RAM to register transfer
Operation:
(A)
←→
(M(DP))
(X)
←
(X)EXOR(j)
j = 0 to 15
(Y)
←
(Y) + 1