Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/webassembly/reference/numeric/or/index.md
6516 views
---
title: OR slug: WebAssembly/Reference/Numeric/OR
---

{{WebAssemblySidebar}}

The or instructions, are used for performing a bitwise OR, similar to the | operator in other languages.

{{EmbedInteractiveExample("pages/wat/or.html", "tabbed-taller")}}

Syntax

;; load two numbers onto the stack i32.const 5 ;; 00000101 i32.const 3 ;; 00000011 ;; perform a bitwise OR i32.or ;; the top item on the stack will now be 7 (00000111)
InstructionBinary opcode
i32.or0x72
i64.or0x84