EasyManua.ls Logo

ZiLOG Z8 - Page 188

ZiLOG Z8
220 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Z8 Microcontrollers
Instruction Descriptions and Formats ZiLOG
12-48 UM001601-0803
OR
LOGICAL OR
Example:
If Working Register R4 contains F9H (11111001B), Working Register R13 contains 7BH, and Register 7B contains
6AH (01101010B), the statement:
OR R4, @R13
Op Code: 43 4D
leaves the value FBH (11111011B) in Working Register R4. The S Flag is set, and the Z and V Flags are cleared.
Example:
If Register 3AH contains the value F5H (11110101B) and Register 42H contains the value 0AH (00001010), the
statement:
OR 3AH, 42H
Op Code: 44 42 3A
leaves the value FFH (11111111B) in Register 3AH. The S Flag is set, and the Z and V Flags are cleared.
Example:
If Working Register R5 contains 70H (01110000B), Register 45H contains 3AH, and Register 3AH contains 7FH
(01111111B), the statement:
OR R5, @45H
Op Code: 45 45 E5
leaves the value 7FH (01111111B) in Working Register R5. The Z, V, and S Flags are cleared.
Example:
If Register 7AH contains the value F3H (11110111B), the statement:
OR 7AH, #F0H
Op Code: 46 7A F0
leaves the value F3H (11110111B) in Register 7AH. The S Flag is set, and the Z and V Flags are cleared.
Example:
If Working Register R3 contains the value 3EH and Register 3EH contains the value 0CH (00001100B), the
statement:
OR @R3, #05H
Op Code: 57 E3 05
leaves the value 0DH (00001101B) in Register 3EH. The Z, V, and S Flags are cleared.

Table of Contents

Other manuals for ZiLOG Z8

Related product manuals