Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 735 Bytes

16.mdx

File metadata and controls

30 lines (20 loc) · 735 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 AND result.

Examples

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

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.