ldvi

package
v0.0.0-...-3974014 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDVInst

type LDVInst struct {
	instructions.Instruction
	VarIndex int
}

LDVInst is responsible for push a variable content into the stack.

func New

func New() *LDVInst

New creates a new LDVInst.

func (*LDVInst) Execute

func (i *LDVInst) Execute(cp *cp.CP, vars *vars.Vars, st *stack.Stack, stdin instructions.StdinInterface, stdout instructions.StdoutInterface) error

Execute receives the context and runs the opcode.

func (*LDVInst) FetchOperands

func (i *LDVInst) FetchOperands(fetch instructions.FetchOperandsImplementation) error

FetchOperands gets the opcode operands.

Jump to

Keyboard shortcuts

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