Difference between revisions of "WebAssembly/Instructions"
From Lazarus wiki
Jump to navigationJump to searchm (→Instructions) |
m (→Instructions) |
||
Line 79: | Line 79: | ||
| | | | ||
| | | | ||
+ | |- | ||
+ | |'''else''' | ||
+ | | | ||
+ | | | ||
+ | |can only be used with '''if'''. Only single '''else''' is allowed per '''if''' | ||
+ | |- | ||
+ | |'''end''' | ||
+ | | | ||
+ | | | ||
+ | |'''end''' can only close '''block''' or '''loop''' clocks | ||
|- | |- | ||
|} | |} |
Revision as of 22:17, 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 |
|
block must always be closed with end |
br labelidx | $0C labelidx |
|
|
br_if labelidx | $0D labelidx |
|
|
br_table vec(labelidxI) labelidx | |||
return | |||
call funcidx | |||
call_indirect typeuse | |||
else | can only be used with if. Only single else is allowed per if | ||
end | end can only close block or loop clocks |
See Also
- WebAssembly
- http://webassembly.github.io/spec/core/intro/index.html - official documentation