Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support memarg load/store instructions #29

Closed
xtuc opened this issue Dec 27, 2017 · 0 comments
Closed

Support memarg load/store instructions #29

xtuc opened this issue Dec 27, 2017 · 0 comments

Comments

@xtuc
Copy link
Owner

xtuc commented Dec 27, 2017

The syntax is described here: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-memarg.

WAST grammar (spec):

offset: offset=<nat>
align: align=(1|2|4|8|...)
<type>.load((8|16|32)_<sign>)? <offset>? <align>?
<type>.store(8|16|32)? <offset>? <align>?

Example:

(i64.load offset=0x000 align=1 (i32.const 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant