The ORI instruction

The ORI (Logical OR Immediate) instruction performs a bitwise logical OR between the contents of the accumulator and an 8-bit immediate value.

The ORI instruction format

InstructionDescription
ORI imm8 This format is used to perform a bitwise logical OR of the 8-bit value in register A with imm8.

Usage example

; Author: Evgeny Sergeevich Dovgopolov

main:
    mvi     a, 01h  ; Load the hexadecimal value 01h into register A
    ori     02h     ; Perform a bitwise logical OR between A and 2

    hlt             ; Stop program execution

Example taken from the textbook "HANDYFAR - MASM (Evgeny Sergeevich Dovgopolov)".

Processor status flags

S
Yes
Z
Yes
AC
Yes
P
Yes
CY
Yes