stack

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dup

type Dup struct {
	base.NoOperandsInstruction
}

func (*Dup) Execute

func (self *Dup) Execute(frame *rtda.Frame)

Duplicate the top operandStack value

type Dup2

type Dup2 struct {
	base.NoOperandsInstruction
}

func (*Dup2) Execute

func (self *Dup2) Execute(frame *rtda.Frame)

type Dup2_X1

type Dup2_X1 struct {
	base.NoOperandsInstruction
}

func (*Dup2_X1) Execute

func (self *Dup2_X1) Execute(frame *rtda.Frame)

type Dup2_X2

type Dup2_X2 struct {
	base.NoOperandsInstruction
}

func (*Dup2_X2) Execute

func (self *Dup2_X2) Execute(frame *rtda.Frame)

type Dup_X1

type Dup_X1 struct {
	base.NoOperandsInstruction
}

func (*Dup_X1) Execute

func (self *Dup_X1) Execute(frame *rtda.Frame)

Duplicate the top operand stack value and insert two values down before : top ->down 1,2,3,4 after : 1,2,1,3,4 . top value 1 duplicate and then insert two values down

type Dup_X2

type Dup_X2 struct {
	base.NoOperandsInstruction
}

func (*Dup_X2) Execute

func (self *Dup_X2) Execute(frame *rtda.Frame)

Duplicate the top operand stack value and insert three values down before : top ->down 1,2,3,4 after : 1,2,3,1,4 . top value 1 duplicate and then insert three values down

type POP

type POP struct {
	base.NoOperandsInstruction
}

弹出一个操作数栈位大小 适用于int,float等

func (*POP) Execute

func (self *POP) Execute(frame *rtda.Frame)

type POP2

type POP2 struct {
	base.NoOperandsInstruction
}

弹出两个操作数栈位大小 例如double,long

type SWAP

type SWAP struct {
	base.NoOperandsInstruction
}

func (*SWAP) Execute

func (self *SWAP) Execute(frmae *rtda.Frame)

Swap the two values at the top of the stack

Jump to

Keyboard shortcuts

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