From 2f64313c57309d2c21ab07ef47ad7403da56fd4b Mon Sep 17 00:00:00 2001 From: titzer Date: Thu, 11 Feb 2016 15:45:44 +0100 Subject: Update BinaryEncoding.md --- BinaryEncoding.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'BinaryEncoding.md') 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)) -- cgit v1.2.3