calli

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CALLInst

type CALLInst struct {
	instructions.Instruction
	CpIndex int
}

CALLInst is responsible for get the operand and call the lib function.

func New

func New() *CALLInst

New creates a new CALLInst.

func (*CALLInst) Execute

func (i *CALLInst) 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 (*CALLInst) FetchOperands

func (i *CALLInst) 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