/*
 * Copyright 2017 Volker Berlin (i-net software)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package de.inetsoftware.jwebassembly.binary;

/**
 * Instruction opcodes of the binary WebAssembly format.
 * 
 * @author Volker Berlin
 *
 */
interface InstructionOpcodes {

    // === Control flow operators ====

    static final int BLOCK     = 0x02;

    static final int LOOP      = 0x03;

    static final int IF        = 0x04;

    static final int ELSE      = 0x05;

    static final int END       = 0x0B;

    static final int RETURN    = 0x0F;

    // === Variable access ===========

    static final int GET_LOCAL = 0x20;

    static final int SET_LOCAL = 0x21;

    static final int I32_CONST = 0x41;

    static final int I32_ADD   = 0x6A;

}

@@ -1,11 +1,10 @@
 /*
-%0D
 %0A * Copy
@@ -44,21 +44,19 @@
 oftware)
-%0D
 %0A *
-%0D
 %0A * Lice
@@ -114,17 +114,16 @@
 cense%22);
-%0D
 %0A * you 
@@ -182,17 +182,16 @@
 License.
-%0D
 %0A * You 
@@ -225,21 +225,19 @@
 cense at
-%0D
 %0A *
-%0D
 %0A *     
@@ -279,21 +279,19 @@
 ENSE-2.0
-%0D
 %0A *
-%0D
 %0A * Unle
@@ -353,17 +353,16 @@
 software
-%0D
 %0A * dist
@@ -422,17 +422,16 @@
 %22 BASIS,
-%0D
 %0A * WITH
@@ -498,17 +498,16 @@
 implied.
-%0D
 %0A * See 
@@ -569,17 +569,16 @@
 ions and
-%0D
 %0A * limi
@@ -603,22 +603,20 @@
 License.
-%0D
 %0A */
-%0D
 %0Apackage
@@ -656,16 +656,13 @@
 ary;
-%0D%0A%0D
+%0A
 %0A/**
-%0D
 %0A * 
@@ -718,14 +718,12 @@
 mat.
-%0D
 %0A * 
-%0D
 %0A * 
@@ -747,18 +747,15 @@
 rlin
-%0D
 %0A *
-%0D
 %0A */
-%0D
 %0Aint
@@ -781,19 +781,17 @@
 pcodes %7B
-%0D%0A%0D
+%0A
 %0A    // 
@@ -817,27 +817,25 @@
 erators ====
-%0D%0A%0D
+%0A
 %0A    static 
@@ -861,19 +861,17 @@
  = 0x02;
-%0D%0A%0D
+%0A
 %0A    sta
@@ -901,19 +901,17 @@
  = 0x03;
-%0D%0A%0D
+%0A
 %0A    sta
@@ -941,19 +941,17 @@
  = 0x04;
-%0D%0A%0D
+%0A
 %0A    sta
@@ -981,19 +981,17 @@
  = 0x05;
-%0D%0A%0D
+%0A
 %0A    sta
@@ -1021,19 +1021,17 @@
  = 0x0B;
-%0D%0A%0D
+%0A
 %0A    sta
@@ -1061,19 +1061,17 @@
  = 0x0F;
-%0D%0A%0D
+%0A
 %0A    // 
@@ -1101,19 +1101,17 @@
 ========
-%0D%0A%0D
+%0A
 %0A    sta
@@ -1141,19 +1141,17 @@
  = 0x20;
-%0D%0A%0D
+%0A
 %0A    sta
@@ -1181,19 +1181,17 @@
  = 0x21;
-%0D%0A%0D
+%0A
 %0A    sta
@@ -1221,19 +1221,137 @@
  = 0x41;
-%0D%0A%0D
+%0A%0A    static final int I64_CONST = 0x42;%0A%0A    static final int F32_CONST = 0x43;%0A%0A    static final int F64_CONST = 0x44;%0A
 %0A    sta
@@ -1385,11 +1385,8 @@
 x6A;
-%0D%0A%0D
+%0A
 %0A%7D
-%0D
 %0A

complete const codes