package load

import "github.com/mmcloughlin/avo/internal/load"

Package load loads the instruction database from external sources.

Index

Constants

const (
	DefaultCSVName        = "x86.v0.2.csv"
	DefaultOpcodesXMLName = "x86_64.xml"
)

Expected data source filenames.

Types

type Loader

type Loader struct {
	X86CSVPath     string
	OpcodesXMLPath string
	// contains filtered or unexported fields
}

Loader builds an instruction database from underlying datasources.

func NewLoaderFromDataDir

func NewLoaderFromDataDir(dir string) *Loader

NewLoaderFromDataDir constructs an instruction loader from datafiles in the given directory. The files themselves are expected to have the standard names: see Default*Name constants.

func (*Loader) Load

func (l *Loader) Load() ([]inst.Instruction, error)

Load performs instruction loading.

Source Files

doc.go load.go tables.go zannoyingaliases.go

Version
v0.6.0 (latest)
Published
Jan 7, 2024
Platform
linux/amd64
Imports
12 packages
Last checked
1 month ago

Tools for package owners.