base

package
v0.0.0-...-129b147 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

func Branch(frame *rtda.Frame, offset int)

Types

type BranchInstruction

type BranchInstruction struct {
	Offset int
}

func (*BranchInstruction) FetchOperands

func (instr *BranchInstruction) FetchOperands(reader *CodeReader)

type CodeReader

type CodeReader struct {
	vmutils.BytesReader
}

func NewCodeReader

func NewCodeReader(code []byte) *CodeReader

func (*CodeReader) ReadInt8

func (reader *CodeReader) ReadInt8() int8

func (*CodeReader) ReadInt16

func (reader *CodeReader) ReadInt16() int16

func (*CodeReader) ReadInt32

func (reader *CodeReader) ReadInt32() int32

func (*CodeReader) ReadInt32s

func (reader *CodeReader) ReadInt32s(count int32) []int32

func (*CodeReader) SkipPadding

func (reader *CodeReader) SkipPadding()

used by lookupswitch and tableswitch

type Index8Instruction

type Index8Instruction struct {
	Index uint
}

func (*Index8Instruction) FetchOperands

func (instr *Index8Instruction) FetchOperands(reader *CodeReader)

type Index16Instruction

type Index16Instruction struct {
	Index uint
}

func (*Index16Instruction) FetchOperands

func (instr *Index16Instruction) FetchOperands(reader *CodeReader)

type Instruction

type Instruction interface {
	FetchOperands(reader *CodeReader)
	Execute(frame *rtda.Frame)
}

type NoOperandsInstruction

type NoOperandsInstruction struct {
}

func (*NoOperandsInstruction) FetchOperands

func (instr *NoOperandsInstruction) FetchOperands(reader *CodeReader)

Jump to

Keyboard shortcuts

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