stack_instructions

package
v0.0.0-...-d1d7e88 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dup

dup Duplicate the top value on the operand stack and push the duplicated value onto the operand stack

func (*Dup) Execute

func (dup *Dup) Execute(frame *runtime_data_area.Frame)

type Dup2

dup2 Duplicate the top one or two values on the operand stack and push the duplicated value or values back onto the operand stack in the original order

func (*Dup2) Execute

func (dup2 *Dup2) Execute(frame *runtime_data_area.Frame)

type Dup2X1

type Dup2X1 struct {
	base_instructions.NoOperandsInstruction
}

dup2_x1 Duplicate the top one or two values on the operand stack and insert the duplicated values, in the original order, one value beneath the original value or values in the operand stack

func (*Dup2X1) Execute

func (dup2X1 *Dup2X1) Execute(frame *runtime_data_area.Frame)

type Dup2X2

type Dup2X2 struct {
	base_instructions.NoOperandsInstruction
}

dup2_x2 Duplicate the top one or two values on the operand stack and insert the duplicated values, in the original order, into the operand stack

func (*Dup2X2) Execute

func (dup2X2 *Dup2X2) Execute(frame *runtime_data_area.Frame)

type DupX1

dup_x1 Duplicate the top value on the operand stack and insert the duplicated value two values down in the operand stack

func (*DupX1) Execute

func (dupX1 *DupX1) Execute(frame *runtime_data_area.Frame)

type DupX2

dup_x2 Duplicate the top value on the operand stack and insert the duplicated value two or three values down in the operand stack

func (*DupX2) Execute

func (dupX2 *DupX2) Execute(frame *runtime_data_area.Frame)

type Pop

pop Pop the top value from the operand stack

func (*Pop) Execute

func (pop *Pop) Execute(frame *runtime_data_area.Frame)

type Pop2

pop2 Pop the top one or two values from the operand stack

func (*Pop2) Execute

func (pop2 *Pop2) Execute(frame *runtime_data_area.Frame)

type Swap

swap Swap the top two operand stack values

func (*Swap) Execute

func (swap *Swap) Execute(frame *runtime_data_area.Frame)

Jump to

Keyboard shortcuts

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