From 02c76d407e81dc62ba3c0083aeaf73a1c598751e Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Thu, 3 May 2018 22:53:39 +0200 Subject: [PATCH] docu --- .../jwebassembly/binary/InstructionOpcodes.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java b/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java index 308eea0..99acef0 100644 --- a/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java +++ b/src/de/inetsoftware/jwebassembly/binary/InstructionOpcodes.java @@ -18,6 +18,8 @@ package de.inetsoftware.jwebassembly.binary; /** * Instruction opcodes of the binary WebAssembly format. * + * Details can be found at: https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md + * * @author Volker Berlin * */ @@ -53,6 +55,12 @@ interface InstructionOpcodes { static final int BR_IF = 0x0D; + /** + * - br_table + * - target_count - count of entries in the table + * - target_table - levels of block breaks + * - default_target - levels of block breaks for default value + */ static final int BR_TABLE = 0x0E; static final int RETURN = 0x0F; @@ -63,6 +71,9 @@ interface InstructionOpcodes { static final int DROP = 0x1A; + /** + * select one of two values based on condition + */ static final int SELECT = 0x1B; // === Variable access ===========