base

package
v0.0.0-...-6774e02 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 1 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 (self *BranchInstruction) FetchOperands(reader *BytecodeReader)

type BytecodeReader

type BytecodeReader struct {
	// contains filtered or unexported fields
}

func (*BytecodeReader) PC

func (self *BytecodeReader) PC() int

func (*BytecodeReader) ReadInt16

func (self *BytecodeReader) ReadInt16() int16

func (*BytecodeReader) ReadInt32

func (self *BytecodeReader) ReadInt32() int32

func (*BytecodeReader) ReadInt32s

func (self *BytecodeReader) ReadInt32s(n int32) []int32

used by lookupswitch and tableswitch

func (*BytecodeReader) ReadInt8

func (self *BytecodeReader) ReadInt8() int8

func (*BytecodeReader) ReadUint16

func (self *BytecodeReader) ReadUint16() uint16

func (*BytecodeReader) ReadUint8

func (self *BytecodeReader) ReadUint8() uint8

func (*BytecodeReader) Reset

func (self *BytecodeReader) Reset(code []byte, pc int)

func (*BytecodeReader) SkipPadding

func (self *BytecodeReader) SkipPadding()

used by lookupswitch and tableswitch

type Index16Instruction

type Index16Instruction struct {
	Index uint
}

func (*Index16Instruction) FetchOperands

func (self *Index16Instruction) FetchOperands(reader *BytecodeReader)

type Index8Instruction

type Index8Instruction struct {
	Index uint
}

func (*Index8Instruction) FetchOperands

func (self *Index8Instruction) FetchOperands(reader *BytecodeReader)

type Instruction

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

type NoOperandsInstruction

type NoOperandsInstruction struct {
}

func (*NoOperandsInstruction) FetchOperands

func (self *NoOperandsInstruction) FetchOperands(reader *BytecodeReader)

Jump to

Keyboard shortcuts

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