![](http://datasheet.mmic.net.cn/360000/Z80B-CTC_datasheet_16678678/Z80B-CTC_147.png)
Z8 Microcontrollers
Instruction Set
ZiLOG
UM001600-Z8X0599
12-7
Additional symbols used are:
Assignment of a value is indicated by the symbol “¨”. For
example,
dst ¨ dst + src
indicates the source data is added to the destination data
and the result is stored in the destination location.
The notation 'addr(n)' is used to refer to bit'n' of a given lo-
cation. For example,
dst (7)
refers to bit 7 of the destination operand.
12.4.1 Assembly Language Syntax
For proper instruction execution, Z8 assembly language
syntax requires ‘dst, src’ be specified, in that order. The fol-
lowing instruction descriptions show the format of the ob-
ject code produced by the assembler. This binary format
should be followed by users who prefer manual program
coding or who intend to implement their own assembler.
Example
: If the contents of registers 43H and 08H are
added and the result is stored in 43H, the assembly syntax
and resulting object code is:
In general, whenever an instruction format requires an 8-
bit register address, that address can specify any register
location in the range 0 - 255 or a Working Register R0 -
R15. If, in the above example, register 08H is a Working
Register, the assembly syntax and resulting object code
would be:
Note:
See the device product specification to determine
the exact register file range available. The register file size
varies by device type
Table 12-13. Additional Symbols
Symbol
dst
src
@
SP
PC
FLAGS
RP
IMR
#
%
H
B
OPC
Definition
Destination Operand
Source Operand
Indirect Address Prefix
Stack Pointer
Program Counter
Flag Register (FCH)
Register Pointer (FDH)
Interrupt Mask Register (FBH)
Immediate Operand Prefix
Hexadecimal Number Prefix
Hexadecimal Number Suffix
Binary Number Suffix
Opcode
ASM:
OBJ:
ADD
04
43H,
08
08H
43
(ADD dst, src)
(OPC src, dst)
ASM:
OBJ:
ADD
04
43H,
08
08H
43
(ADD dst, src)
(OPC src, dst)