internal/opcodes{csv/xml}: doc exported symbols (#9)

This commit is contained in:
Michael McLoughlin
2019-01-05 14:41:37 -08:00
parent cf1739b920
commit f4c5957820
2 changed files with 626 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
"golang.org/x/arch/x86/x86csv"
)
// Alias records another possible name for an instruction configuration.
type Alias struct {
Opcode string
DataSize int
@@ -41,8 +42,10 @@ func BuildAliasMap(is []*x86csv.Inst) (map[Alias]string, error) {
return m, nil
}
// OperandOrder describes the order an instruction takes its operands.
type OperandOrder uint8
// Possible operand orders.
const (
UnknownOrder = iota
IntelOrder