UM001601-0803 12-1
USER’S MANUAL
CHAPTER 12
INSTRUCTION SET
12.1 Z8 FUNCTIONAL SUMMARY
Z8
instructions can be divided functionally into the following
eight groups:
•Load
• Bit Manipulation
• Arithmetic
• Block Transfer
• Logical
• Rotate and Shift
• Program Control
• CPU Control
The following summary shows the instructions belonging to
each group and the number of operands required for each. The
source operand is src, the destination operand is dst, and a con
-
dition code is cc.
Table 12-1. Load Instructions
Mnemonic Operands Instruction
CLR dst Clear
LD dst, src Load
LDC dst, src Load Constant
LDE dst, src Load External
POP dst Pop
PUSH src Push
Table 12-2. Arithmetic Instructions
Mnemonic Operands Instruction
ADC dst, src Add with Carry
ADD dst, src Add
CP dst, src Compare
DA dst Decimal Adjust
DEC dst Decrement
DECW dst Decrement Word
INC dst Increment
INCW dst Increment Word
SBC dst, src Subtract with Carry
SUB dst, src Subtract
Table 12-3. Logical Instructions
Mnemonic Operands Instruction
AND dst, src Logical AND
COM dst Complement
OR dst, src Logical OR
XOR dst, src Logical Exclusive OR
Table 12-4. Program Control Instructions
Mnemonic Operands Instruction
CALL dst Call Procedure
DJNZ dst, src Decrement and Jump
Non-Zero
IRET Interrupt Return
JP cc, dst Jump
JR cc, dst Jump Relative
RET Return