Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.