ZiLOG Z8 User Manual page 160

Hide thumbs Also See for Z8:
Table of Contents

Advertisement

Z8 Microcontrollers
Instruction Descriptions and Formats
CLR
CLEAR
CLR dst
Instruction Format:
Operation:
dst <— 0
The destination operand is cleared to 00H.
Flags:
C:
Unaffected
Z:
Unaffected
S:
Unaffected
V:
Unaffected
D:
Unaffected
H:
Unaffected
Note:
Address modes R or IR can be used to specify a 4-bit Working Register. In this format, the destination Working
Register operand is specified by adding 1110B (EH) to the high nibble of the operand. For example, if Working
Register R12 (CH) is the destination operand, then ECH will be used as the destination operand in the Op Code.
Example:
If Working Register R6 contains AFH, the statement:
will leave the value 00H in Working Register R6.
If Register A5H contains the value 23H, and Register 23H contains the value FCH, the statement:
will leave the value 00H in Register 23H.
12-20
CLR R6
Op Code: B0 E6
CLR @A5H
Op Code: B1 A5
ZiLOG
CLR
CLEAR
UM001601-0803

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z8 and is the answer not in the manual?

Table of Contents