From 685111b3b7a1bf05938d5c55bc8358d483de400a Mon Sep 17 00:00:00 2001 From: titzer Date: Mon, 8 Feb 2016 19:17:38 +0100 Subject: Add links. --- BinaryEncoding.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'BinaryEncoding.md') diff --git a/BinaryEncoding.md b/BinaryEncoding.md index 50afc0f..72f44e5 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -194,7 +194,7 @@ Each node in the abstract syntax tree corresponds to an operator, such as `i32.a Most operators encode as a single `uint8`, but some require *immediates* which immediately follow the first byte, before the child nodes. -## Control flow operators +## Control flow operators ([described here](AstSemantics.md#control-flow-structures)) | Name | Opcode | Immediate | Description | | ---- | ---- | ---- | ---- | @@ -220,7 +220,7 @@ The `tableswitch` operator has as complex immediate operand which is encoded as The table switch operator is then immediately followed by `case_count` case expressions which by default fall through to each other. -## Basic operators +## Basic operators ([described here](AstSemantics.md#constants)) | Name | Opcode | Immediate | Description | | ---- | ---- | ---- | ---- | | `i8.const` | `0x09` | value = `uint8` | a constant value, signed extended to type `i32` | @@ -235,7 +235,7 @@ The table switch operator is then immediately followed by `case_count` case expr | `call_function` | `0x12` | function_index = `varuint32` | call a function by its index | | `call_indirect` | `0x13` | signature_index = `varuint32` | call a function indirect with an expected signature | -## Memory-related operators +## Memory-related operators ([described here](AstSemantics.md#linear-memory-accesses)) | Name | Opcode | Immediate | Description | | ---- | ---- | ---- | ---- | @@ -272,7 +272,7 @@ The `memory_immediate` type is encoded as follows: | flags | `uint8` | always | a bitfield where
bit `4` indicates an offset follows
bit `7` indicates natural alignment | | offset | `varuint32` | `flags[4] == 1` | the value of the offset | -## Simple operators +## Simple operators ([described here](AstSemantics#32-bit-integer-operators)) | Name | Opcode | Immediate | Description | | ---- | ---- | ---- | ---- | -- cgit v1.2.3