AND

Die and-Anweisungen werden verwendet, um eine bitweise UND-Operation durchzuführen, ähnlich dem &-Operator in anderen Sprachen.

Probieren Sie es aus

Syntax

wasm
;; load two numbers onto the stack
i32.const 5   ;; 00000101
i32.const 3   ;; 00000011

;; perform a bitwise AND
i32.and

;; the top item on the stack will now be 1 (00000001)
Anweisung Binärer Opcode
i32.and 0x71
i64.and 0x83