OR

Performs bitwise OR operation.

Syntax

OR1 value1 [in,1], value2 [in,1], result [out,1] ;code:101
OR2 value1 [in,2], value2 [in,2], result [out,2] ;code:102
OR4 value1 [in,4], value2 [in,4], result [out,4] ;code:103
OR8 value1 [in,8], value2 [in,8], result [out,8] ;code:104

Description

This instruction performs bitwise OR operation: result = value1 OR value2.

Every bit of the result value is 1 if either of the corresponding bits from input values are 1. Otherwise, the bit is 0.

value1   0 0 1 1
value2   0 1 0 1
result   0 1 1 1

NoASM

There are several kinds of these instructions defined in NoASM Compiler:

OR1,  OR2,  OR4,  OR8,
OR1u, OR2u, OR4u, OR8u