Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 739 Bytes

17.mdx

File metadata and controls

30 lines (20 loc) · 739 Bytes
fork group
Frontier
Comparison & Bitwise Logic Operations

Index 1 is top of the stack. See PUSH.

Stack input

  1. a: first binary value.
  2. b: second binary value.

Stack output

  1. a | b: the bitwise OR result.

Examples

* Input Output * * Input Output
1 0xF0 0xFF * 1 0xFF 0xFF
2 0xF * 2 0xFF

Reproduce in playground.

Error cases

The state changes done by the current context are reverted in those cases:

  • Not enough gas.
  • Not enough values on the stack.