package opcodescsv

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

Package opcodescsv extracts data from the Go x86.csv database.

Index

Constants

const (
	UnknownOrder = iota
	IntelOrder
	ReverseIntelOrder
	CMP3Order
)

Possible operand orders.

Functions

func BuildAliasMap

func BuildAliasMap(is []*x86csv.Inst) (map[Alias]string, error)

BuildAliasMap constructs a map from AT&T/GNU/Intel to Go syntax.

func BuildOrderMap

func BuildOrderMap(is []*x86csv.Inst) map[string]OperandOrder

BuildOrderMap collects operand order information from the instruction list.

func ReadFile

func ReadFile(filename string) ([]*x86csv.Inst, error)

ReadFile reads the given x86 CSV file.

Types

type Alias

type Alias struct {
	Opcode      string
	DataSize    int
	NumOperands int
}

Alias records another possible name for an instruction configuration.

type OperandOrder

type OperandOrder uint8

OperandOrder describes the order an instruction takes its operands.

Source Files

analysis.go doc.go io.go

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

Tools for package owners.