bitand

Group: bits

Perform bitwise and of two bit strings.

Syntax

bitand destination:r-op lhs:r-op rhs:r-op
    

Examples

.function: example/0
    bits %1 local 0b0011
    bits %2 local 0b1010

    bitand %3 local %1 local %2 local

    -- prints '0010'
    print %3 local

    return
.end
    

Related instructions

bits, bitor, bitxor, bitnot.