AND

Performs bitwise AND operation.

Syntax

AND1 value1 [in,1], value2 [in,1], result [out,1] ;code:97
AND2 value1 [in,2], value2 [in,2], result [out,2] ;code:98
AND4 value1 [in,4], value2 [in,4], result [out,4] ;code:99
AND8 value1 [in,8], value2 [in,8], result [out,8] ;code:100

Description

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

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

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

NoASM

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

AND1,  AND2,  AND4,  AND8,
AND1u, AND2u, AND4u, AND8u