enum StephieVM::Instruction

Defined in:

interpreter.cr

Enum Members

NOP = 0_u8
CONST1 = 1_u8
CONST2 = 2_u8
CONST4 = 4_u8
ADD = 10_u8
SUB = 11_u8
MUL = 12_u8
DIV = 13_u8
MOD = 14_u8
LT = 20_u8
LTE = 21_u8
GT = 22_u8
GTE = 23_u8
BRANCH = 30_u8
IF = 31_u8
PRINT = 40_u8
GNOP = 255_u8

Class Method Summary

Instance Method Summary

Class Method Detail

def self.from_value(value : UInt8) #

[View source]

Instance Method Detail

def add? #

[View source]
def branch? #

[View source]
def const1? #

[View source]
def const2? #

[View source]
def const4? #

[View source]
def div? #

[View source]
def gnop? #

[View source]
def gt? #

[View source]
def gte? #

[View source]
def if? #

[View source]
def lt? #

[View source]
def lte? #

[View source]
def mod? #

[View source]
def mul? #

[View source]
def nop? #

[View source]
def print? #

[View source]
def sub? #

[View source]