47
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Detailed description
C
46
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Function
Mnemonic
D
9
D
8
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
Hexadecimal
notation
Type of
instructions
Parameter
N
w
N
c
Instruction code
–
–
Overflow = 0
–
–
–
–
(CY) = 0
–
–
–
–
(Mj(DP)) = 0
j = 0 to 3
(A) = (M(DP))
(A) = n
–
0/1
–
–
–
1
0
–
–
0/1
–
–
–
–
–
Adds the contents of M(DP) to register A. Stores the result in register A. The contents of carry flag CY
remains unchanged.
Adds the contents of M(DP) and carry flag CY to register A. Stores the result in register A and carry flag
CY.
Adds the value n in the immediate field to register A.
The contents of carry flag CY remains unchanged.
Skips the next instruction when there is no overflow as the result of operation.
Performs the AND operation between the contents of register A and the contents of M(DP), and stores
the result in register A.
Performs the OR operation between the contents of register A and the contents of M(DP), and stores
the result in register A.
Sets carry flag CY to “1.”
Clears carry flag CY to “0.”
Skips the next instruction when the contents of carry flag CY is “0.”
Stores the one’s complement for register A’s contents in register A.
Rotates the contents of register A including the contents of carry flag CY to the right by 1 bit.
Sets the contents of bit j (bit specified by the value j in the immediate field) of M(DP) to “1.”
Clears the contents of bit j (bit specified by the value j in the immediate field) of M(DP) to “0.”
Skips the next instruction when the contents of bit j (bit specified by the value j in the immediate field)
of M(DP) is “0.”
Skips the next instruction when the contents of register A is equal to the contents of M(DP).
Skips the next instruction when the contents of register A is equal to the value n in the immediate field.
A
B
C
AM
AMC
A n
AND
OR
SC
RC
SZC
CMA
RAR
SB j
RB j
SZB j
SEAM
SEA n
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
1
0
1
1
0
0
0
1
1
0
n
n
n
n
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
0
1
1
1
1
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
1
1
1
0
1
0
0
0
1
0
1
1
1
j
j
0
0
0
1
0
0
1
1
j
j
0
0
0
0
1
0
0
0
j
j
0
0
0
0
1
0
0
1
1
0
0
0
0
0
1
0
0
1
0
1
0
0
0
1
1
1
n
n
n
n
0 0 A
0 0 B
0 6 n
0 1 8
0 1 9
0 0 7
0 0 6
0 2 F
0 1 C
0 1 D
0 5
C
+j
0 4
C
+j
0 2
j
0 2
6
0 2
5
0 7
n
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
(A)
←
(A) + (M(DP))
(A)
←
(A) + (M(DP))+ (CY)
(CY)
←
Carry
(A)
←
(A) + n
n = 0 to 15
(A)
←
(A)AND(M(DP))
(A)
←
(A)OR(M(DP))
(CY)
←
1
(CY)
←
0
(CY) = 0
(A)
←
(A)
→
CY
→
A
3
A
2
A
1
A
0
(Mj(DP))
←
1
j = 0 to 3
(Mj(DP))
←
0
j = 0 to 3
(Mj(DP)) = 0
j = 0 to 3
(A) = (M(DP))
(A) = n
n = 0 to 15
MACHINE INSTRUCTIONS (CONTINUED)