Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 741 Bytes

drop.md

File metadata and controls

39 lines (21 loc) · 741 Bytes

drop

Drop one value from the stack 1 2.

$$ \mathsf{drop} \enspace (T) \to \varnothing $$

Instructions

Opcode Instruction Stack Arity
0x1A drop $[ T ] \to [ ]$

WAT Examples

Dropping a value from the stack

;; Place something on the stack
i32.const 10

;; Drop the value off the stack
drop

References

WebAssembly Core Specification

Footnotes

  1. Structure, Parametric Instructions - https://www.w3.org/TR/wasm-core-2/syntax/instructions.html#parametric-instructions

  2. Execution, Parametric Instructions, drop - https://www.w3.org/TR/wasm-core-2/exec/instructions.html#exec-drop