Difference between revisions of "WebAssembly/Instructions"
From Lazarus wiki
Jump to navigationJump to searchm (→Instructions) |
m (→Instructions) |
||
Line 35: | Line 35: | ||
| | | | ||
| | | | ||
+ | :1. Assert: due to validation, a value of value type i32 is on the top of the stack. | ||
+ | :2. Pop the value i32.const c from the stack. | ||
+ | :3. If c is non-zero, then: | ||
+ | ::a. Execute the instruction (br l). | ||
+ | :4. Else: | ||
+ | ::b. Do nothing. | ||
|- | |- | ||
|'''br_table''' ''vec(labelidxI)'' ''labelidx'' | |'''br_table''' ''vec(labelidxI)'' ''labelidx'' |
Revision as of 22:06, 10 September 2019
This page is created because it's annoying to constantly jump around the official WebAssembly documentation.
The page requires careful review as official specs are updated
Instructions
Instruction | Byte Code | Execution | Notes |
---|---|---|---|
Control Instructions | |||
unreachable | $00 | ||
nop | $01 | ||
block | $02 blocktype ... $0B | $0B is end | |
br labelidx | |||
br_if labelidx |
| ||
br_table vec(labelidxI) labelidx | |||
return | |||
call funcidx | |||
call_indirect typeuse |
See Also
- WebAssembly
- http://webassembly.github.io/spec/core/intro/index.html - official documentation