aboutsummaryrefslogtreecommitdiff
path: root/BinaryEncoding.md
diff options
context:
space:
mode:
authortitzer <titzer@google.com>2016-02-11 15:45:44 +0100
committertitzer <titzer@google.com>2016-02-11 15:45:44 +0100
commit2f64313c57309d2c21ab07ef47ad7403da56fd4b (patch)
treea55942dd098ffcc43a5ead3cccbae7647c29d767 /BinaryEncoding.md
parentacab7ac6a768872f46d24dfeb3358804df49a403 (diff)
downloadnanowasm-design-2f64313c57309d2c21ab07ef47ad7403da56fd4b.tar.gz
Update BinaryEncoding.md
Diffstat (limited to 'BinaryEncoding.md')
-rw-r--r--BinaryEncoding.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md
index e885a57..9f42f61 100644
--- a/BinaryEncoding.md
+++ b/BinaryEncoding.md
@@ -31,6 +31,9 @@ implementations.
# Data types
+### int8
+A single-byte signed integer.
+
### uint8
A single-byte unsigned integer.
@@ -201,8 +204,8 @@ stored to from dedicated instructions.
Function bodies consist of a dense pre-order encoding of an [Abstract Syntax Tree](AstSemantics.md).
Each node in the abstract syntax tree corresponds to an operator, such as `i32.add` or `if` or `block`.
-Most operators encode as a single `uint8`, but some require *immediates* which immediately follow the
-first byte, before the child nodes.
+Operators are encoding by an opcode byte followed by immediate bytes (if any), followed by children
+nodes (if any).
## Control flow operators ([described here](AstSemantics.md#control-flow-structures))