ZiLOG Z8 PLUS User Manual page 129

Table of Contents

Advertisement

Example: Working register R1 contains 38H (00111000B). Working register R14 contains 8DH
(10001101B). The following statement leaves the value B5H (10110101B) in working register R1. The
Z, and V flags are set to 0, and the S flag is set to 1.
XOR R1, R14
Op Code: B2 1E
Example: Working register R4 contains F9H (11111001B). Working register R13 contains 7BH. Register
7B contains 6AH (01101010B). The following statement leaves the value 93H (10010011B) in working
register R4. The S flag is set to 1, and the Z and V flags are set to 0.
XOR R4, @R13
Op Code: B3 4D
Example: Register 3AH contains the value F5H (11110101B). Register 42H contains the value 0AH
(00001010B). The following statement leaves the value FFH (11111111B) in register 3AH. The S flag is
set to 1, and the C and V flags are set to 0.
XOR 3AH, 42H
Op Code: B4 42 3A
Example: Working register R5 contains F0H (11110000B). Register 45H contains 3AH. Register 3A
contains 7F (01111111B). The statement leaves the value 8FH (10001111B) in working register R5. The
S flag is set to 1, and the C and V flags are set to 0.
XOR R5, @45H
Op Code: B5 45 E5
Example: Register 7AH contains the value F7H (11110111B). The following statement leaves the value
07H (00000111B) in register 7AH. The Z, V, and S flags are set to 0.
XOR 7AH, #F0H
Op Code: B6 7A F0
Example: Working register R3 contains the value 3EH. Register 3EH contains the value 6CH
(01101100B). The following statement leaves the value 69H (01101001B) in register 3EH. The Z, V, and
S flags are set to 0.
XOR @R3, #05H
Op Code: B7 E3 05
.75
P
Â
Logical Exclusive OR
XOR

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents