comparisons

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FCMPG

type FCMPG struct {
	base.NoOperandsInstruction
}

浮点数与整形相比,存在一种特殊的情况 NaN(not a number) FCMPG与FCMPL两者的差别是: FCMPG:遇到NaN情况时,结果为1(大于) FCMPL:遇到NaN情况时,结果为-1(小于)

func (*FCMPG) Execute

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

type FCMPL

type FCMPL struct {
	base.NoOperandsInstruction
}

func (*FCMPL) Execute

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

type ICMP

type ICMP struct {
	base.NoOperandsInstruction
}

用于比较long变量

func (*ICMP) Execute

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

type IFEQ

type IFEQ struct{ base.BranchInstruction }

if equals

func (*IFEQ) Execute

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

type IFGE

type IFGE struct{ base.BranchInstruction }

if(left smaller than right or equals)

func (*IFGE) Execute added in v1.7.1

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

type IFGT

type IFGT struct{ base.BranchInstruction }

if(left smaller than right)

func (*IFGT) Execute added in v1.7.1

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

type IFLE

type IFLE struct{ base.BranchInstruction }

if(left bigger than right or equals)

func (*IFLE) Execute added in v1.7.1

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

type IFLT

type IFLT struct{ base.BranchInstruction }

if (left bigger than right)

func (*IFLT) Execute added in v1.7.1

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

type IFNE

type IFNE struct{ base.BranchInstruction }

if not equals

func (*IFNE) Execute added in v1.7.1

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

type IF_ACMPEQ

type IF_ACMPEQ struct{ base.BranchInstruction }

func (*IF_ACMPEQ) Execute

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

弹出两个引用对象,如果相同就跳转

type IF_ACMPNE

type IF_ACMPNE struct{ base.BranchInstruction }

func (*IF_ACMPNE) Execute added in v1.8.0

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

type IF_ICMPEQ

type IF_ICMPEQ struct{ base.BranchInstruction }

func (*IF_ICMPEQ) Execute

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

type IF_ICMPGE

type IF_ICMPGE struct{ base.BranchInstruction }

func (*IF_ICMPGE) Execute

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

type IF_ICMPGT

type IF_ICMPGT struct{ base.BranchInstruction }

func (*IF_ICMPGT) Execute

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

type IF_ICMPLE

type IF_ICMPLE struct{ base.BranchInstruction }

func (*IF_ICMPLE) Execute

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

type IF_ICMPLT

type IF_ICMPLT struct{ base.BranchInstruction }

func (*IF_ICMPLT) Execute

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

type IF_ICMPNE

type IF_ICMPNE struct{ base.BranchInstruction }

func (*IF_ICMPNE) Execute

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

去除两个数,如果两者不想等就跳转

type LCMP

type LCMP struct {
	base.NoOperandsInstruction
}

用于比较long变量

func (*LCMP) Execute

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

Jump to

Keyboard shortcuts

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