UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
196
Examples
•
If Working Register R1 contains the value
38H
(00111000B) and Working Register
R14 contains the value
8DH
(10001101B), the statement:
XOR R1, R14
Object Code: B2 1E
leaves the value
B5H
(10110101B) in Working Register R1 sets the S flag and clears
the Z and V flags.
•
If Working Register R4 contains the value
F9H
(11111001B), Working Register R13
contains the value
7BH
, and Register 7B contains the value
6AH
(01101010B), the
statement:
XOR R4, @R13
Object Code: B3 4D
leaves the value
93H
(10010011B) in Working Register R4, sets the S flag and clears
the Z and V flags.
•
If Register 3AH contains the value
F5H
(11110101B) and Register 42H contains the
value
0AH
(00001010B), the statement:
XOR 3AH, 42H
Object Code: B4 42 3A
leaves the value
FFH
(11111111B) in Register 3AH, sets the S flag and clears the Z and
V flags.
•
If Working Register R5 contains the value
F0H
(11110000B), Register 45H contains
the value
3AH
, and Register 3AH contains the value
7FH
(01111111B), the statement:
XOR R5, @45H
Object Code: B5 45 E5
leaves the value
8FH
(10001111B) in Working Register R5, sets the S flag and clears
the C and V flags.
•
If Register 7AH contains the value
F7H
(11110111B), the statement:
XOR 7AH, #F0H
Object Code: B6 7A F0
leaves the value
07H
(00000111B) in Register 7AH and clears the Z, V and S.
•
If Working Register R3 contains the value
3EH
and Register 3EH contains the value
6CH
(01101100B), the statement:
XOR @R3, #05H
Object Code: B7 E3 05
leaves the value
69H
(01101001B) in Register 3EH and clears the Z, V, and S flags