Drop
The drop
instruction, pops a value from the stack, and discards it.
尝试一下
语法
wasm
;; push multiple values onto the stack
i32.const 1
i32.const 2
i32.const 3
;; drop the top item from the stack (`3`)
drop
;; the top item on the stack will now be `2`
指令 | 二进制操作码 |
---|---|
drop |
0x1a |