UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
67
Examples
•
If Register 93AH contains the value F5H (11110101B) and Register
142H
contains the
value
0AH
(00001010), the statement:
ANDX 93AH, 142H
Object Code: 58 14 29 3A
leaves the value
00H
(00000000B) in Register 93AH, sets the Z flag, and the V and S
flags clear.
•
If Register D7AH contains the value
F7H
(11110111B), the statement:
ANDX D7AH, #F0H
Object Code: 59 F0 0D 7A
leaves the value
F0H
(11110000B) in Register 7AH, sets the S flag and clears the Z
and V flags.