load

package
v0.0.0-...-81a76c0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package load loads the instruction database from external sources.

Index

Constants

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

Expected data source filenames.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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