function Opcodes()
{
  this.NOP = 0;       this.LIT = 1;         this.DUP = 2;
  this.DROP = 3;      this.SWAP = 4;        this.PUSH = 5;
  this.POP = 6;       this.LOOP = 7;        this.JUMP = 8;
  this.RETURN = 9;    this.GT_JUMP = 10;    this.LT_JUMP = 11;
  this.NE_JUMP = 12;  this.EQ_JUMP = 13;    this.FETCH = 14;
  this.STORE = 15;    this.ADD = 16;        this.SUB = 17;
  this.MUL = 18;      this.DIVMOD = 19;     this.AND = 20;
  this.OR = 21;       this.XOR = 22;        this.SHL = 23;
  this.SHR = 24;      this.ZERO_EXIT = 25;  this.INC = 26;
  this.DEC = 27;      this.IN = 28;         this.OUT = 29;
  this.WAIT = 30;
}
/**********************************************************************
 * Symbolic constants for each instruction.
 **********************************************************************/
Symbolic constants for each instruction.
Symbolic constants for each instruction .
function Opcodes()
{
  this.NOP = 0;       this.LIT = 1;         this.DUP = 2;
  this.DROP = 3;      this.SWAP = 4;        this.PUSH = 5;
  this.POP = 6;       this.LOOP = 7;        this.JUMP = 8;
  this.RETURN = 9;    this.GT_JUMP = 10;    this.LT_JUMP = 11;
  this.NE_JUMP = 12;  this.EQ_JUMP = 13;    this.FETCH = 14;
  this.STORE = 15;    this.ADD = 16;        this.SUB = 17;
  this.MUL = 18;      this.DIVMOD = 19;     this.AND = 20;
  this.OR = 21;       this.XOR = 22;        this.SHL = 23;
  this.SHR = 24;      this.ZERO_EXIT = 25;  this.INC = 26;
  this.DEC = 27;      this.IN = 28;         this.OUT = 29;
  this.WAIT = 30;
}
function Opcodes ( ) { this . NOP = 0 ; this . LIT = 1 ; this . DUP = 2 ; this . DROP = 3 ; this . SWAP = 4 ; this . PUSH = 5 ; this . POP = 6 ; this . LOOP = 7 ; this . JUMP = 8 ; this . RETURN = 9 ; this . GT_JUMP = 10 ; this . LT_JUMP = 11 ; this . NE_JUMP = 12 ; this . EQ_JUMP = 13 ; this . FETCH = 14 ; this . STORE = 15 ; this . ADD = 16 ; this . SUB = 17 ; this . MUL = 18 ; this . DIVMOD = 19 ; this . AND = 20 ; this . OR = 21 ; this . XOR = 22 ; this . SHL = 23 ; this . SHR = 24 ; this . ZERO_EXIT = 25 ; this . INC = 26 ; this . DEC = 27 ; this . IN = 28 ; this . OUT = 29 ; this . WAIT = 30 ; }
Symbolic constants for each instruction.
Symbolic constants for each instruction .