nop: Wasm-Textinstruktion
nop steht für No-Operation. Es tut buchstäblich nichts.
Probieren Sie es aus
(module
(func (export "do_nothing")
nop
)
)
const url = "{%wasm-url%}";
await WebAssembly.instantiateStreaming(fetch(url)).then((result) => {
result.instance.exports.do_nothing();
});
Syntax
wat
nop
| Instruktion | Binärer Opcode |
|---|---|
nop |
0x01 |
Spezifikationen
| Spezifikation |
|---|
| WebAssembly Core Specification> # -hrefsyntax-instr-controlmathsfnop> |