emu

package
v0.0.0-...-5ea726b Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulator

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

func LoadProgram

func LoadProgram(p hir.Program) (e *Emulator)

func (*Emulator) Ap

func (self *Emulator) Ap(i int, v unsafe.Pointer) *Emulator

func (*Emulator) Au

func (self *Emulator) Au(i int, v uint64) *Emulator

func (*Emulator) Free

func (self *Emulator) Free()

func (*Emulator) Gr

func (self *Emulator) Gr(id hir.GenericRegister) uint64

func (*Emulator) Pr

func (self *Emulator) Pr(id hir.PointerRegister) unsafe.Pointer

func (*Emulator) Reset

func (self *Emulator) Reset(p hir.Program) *Emulator

func (*Emulator) Rp

func (self *Emulator) Rp(i int) unsafe.Pointer

func (*Emulator) Ru

func (self *Emulator) Ru(i int) uint64

func (*Emulator) Run

func (self *Emulator) Run()

func (*Emulator) SetGr

func (self *Emulator) SetGr(id hir.GenericRegister, val uint64)

func (*Emulator) SetPr

func (self *Emulator) SetPr(id hir.PointerRegister, val unsafe.Pointer)

func (*Emulator) String

func (self *Emulator) String() string

type Value

type Value struct {
	U uint64
	P unsafe.Pointer
}

Jump to

Keyboard shortcuts

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