elfprog2016

package
v0.0.0-...-abdf023 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElfProg

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

func NewElfProg

func NewElfProg(in []byte) *ElfProg

func (*ElfProg) Run

func (p *ElfProg) Run() int

func (*ElfProg) SetReg

func (p *ElfProg) SetReg(i int, v int)

func (*ElfProg) String

func (p *ElfProg) String() string

type Inst

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

func (*Inst) String

func (i *Inst) String() string

type InstKind

type InstKind byte
const (
	CopyRR InstKind = iota
	CopyIR
	CopyRI
	CopyII
	Inc
	Dec
	JnzII
	JnzIR
	JnzRI
	JnzRR
	Toggle
	Nop
	Add
	Sub
	Mul
)

func (InstKind) String

func (ik InstKind) String() string

Jump to

Keyboard shortcuts

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