Difference between revisions of "WebAssembly/Instructions"
From Free Pascal wiki
Jump to navigationJump to searchm (→Instructions) |
m (→Instructions) |
||
Line 81: | Line 81: | ||
|- | |- | ||
|'''else''' | |'''else''' | ||
− | | | + | |$05 |
| | | | ||
|can only be used with '''if'''. Only single '''else''' is allowed per '''if''' | |can only be used with '''if'''. Only single '''else''' is allowed per '''if''' | ||
|- | |- | ||
|'''end''' | |'''end''' | ||
− | | | + | |$0B |
| | | | ||
|'''end''' can only close '''block''' or '''loop''' clocks | |'''end''' can only close '''block''' or '''loop''' clocks |
Revision as of 22:18, 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 | $05 | can only be used with if. Only single else is allowed per if | |
end | $0B | end can only close block or loop clocks |
See Also
- WebAssembly
- http://webassembly.github.io/spec/core/intro/index.html - official documentation