mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Control flow operators
This commit is contained in:
parent
e9e7d1aecc
commit
1db20a66b6
@ -23,8 +23,22 @@ package de.inetsoftware.jwebassembly.binary;
|
||||
*/
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user