instruction

package
v0.0.0-...-2c802aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package instruction provides the instruction structure and some its methods. Using one or more instructions build a bytecode for VM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inst

type Inst struct {
	Opcode opcode.Opcode
	C      rune  // operand for Char
	X      *Inst // operand for Jmp, Split
	Y      *Inst // operand for Split
}

Inst represents a instruction which is executable with the VM.

func NewInst

func NewInst(op opcode.Opcode, c rune, x, y *Inst) *Inst

NewInst returns a new Inst.

func (Inst) String

func (inst Inst) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL