![](http://datasheet.mmic.net.cn/30000/M34570MD-XXXFP_datasheet_2359531/M34570MD-XXXFP_45.png)
47
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Detailed description
Carry
flag
CY
46
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Function
Mnemonic
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal
notation
Type of
instructions
Parameter
Number
of
words
Number
of
cycles
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.
Arithmetic
operation
Bit
operation
Comparison
operation
AM
AMC
A n
AND
OR
SC
RC
SZC
CMA
RAR
SB j
RB j
SZB j
SEAM
SEA n
0000001010
0000001011
000110nnnn
0000011000
0000011001
0000000111
0000000110
0000101111
0000011100
0000011101
00010111j
j
00010011j
j
00001000j
j
0000100110
0000100101
000111nnnn
00 A
00 B
06 n
01 8
01 9
00 7
00 6
02 F
01 C
01 D
05
C
+j
04
C
+j
02
j
02
6
02
5
07
n
1
2
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 → A3A2A1A0
(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)