opcodescsv

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	UnknownOrder = iota
	IntelOrder
	ReverseIntelOrder
	CMP3Order
)

Possible operand orders.

Variables

This section is empty.

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.

Jump to

Keyboard shortcuts

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