asmdb

package
v0.0.0-...-5710c07 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func X86Reference

func X86Reference() *x86Reference

Types

type AddressingType

type AddressingType string
const (
	CodeDirectAddress       AddressingType = "DirectAddress"
	CodeBasedAddressA       AddressingType = "BasedAddressA"
	CodeBasedAddressB       AddressingType = "BasedAddressB"
	CodeBasedAddressD       AddressingType = "BasedAddressD"
	CodeCRField             AddressingType = "CRField"
	CodeDebugField          AddressingType = "DebugField"
	CodeModRMAddress        AddressingType = "ModRMAddress"
	CodeModRMAddressX87FPU  AddressingType = "ModRMAddressX87FPU"
	CodeModRMX87FPU         AddressingType = "ModRMX87FPU"
	CodeRFlags              AddressingType = "RFlags"
	CodeGeneralReg          AddressingType = "GeneralReg"
	CodeGeneralRegAddr      AddressingType = "GeneralRegAddr"
	CodeImmediate           AddressingType = "Immediate"
	CodeRelativeOffset      AddressingType = "RelativeOffset"
	CodeModRMAddrOnlyMemory AddressingType = "ModRMAddrOnlyMemory"
	CodeModRM_MMX           AddressingType = "ModRM_MMX"
	CodeModRMAddressMoffs   AddressingType = "ModRMAddressMoffs"
	CodeModRM_MMXRegField   AddressingType = "ModRM_MMXRegField"
	CodeModRMMinor          AddressingType = "ModRMMinor"
	CodeSregField           AddressingType = "SregField"
	CodeStackField          AddressingType = "StackField"
	CodeRegFieldTest        AddressingType = "RegFieldTest"
	CodeXmmRMField          AddressingType = "XmmRMField"
	CodeXmmRegField         AddressingType = "XmmRegField"
	CodeXmmOperand          AddressingType = "XmmOperand"
	CodeMemoryAddressX      AddressingType = "MemoryAddressX"
	CodeMemoryAddressY      AddressingType = "MemoryAddressY"
	CodeModRM               AddressingType = "ModRM" // r
)

func GetCode

func GetCode(s string) (AddressingType, bool)

type Instruction

type Instruction struct {
	Mnemonic    string   `yaml:"mnem"`
	Opcode      string   `yaml:"opcd"`
	Operand1    *Operand `yaml:"op1,omitempty"`
	Operand2    *Operand `yaml:"op2,omitempty"`
	Proc        string   `yaml:"proc"`
	Description string   `yaml:"desc,omitempty"`
}

type Operand

type Operand struct {
	Destination struct {
		Str     string `yaml:"operand_s"`
		Address string `yaml:"a,omitempty"`
		Type    string `yaml:"t,omitempty"`
	} `yaml:"dst,omitempty"`
	Source struct {
		Str     string `yaml:"operand_s"`
		Address string `yaml:"a,omitempty"`
		Type    string `yaml:"t,omitempty"`
	} `yaml:"src,omitempty"`
}

type Option

type Option func(*Options)

func BitMode

func BitMode(b ast.BitMode) Option

func TargetCPU

func TargetCPU(s ast.SupCPU) Option

type Options

type Options struct {
	BitMode   ast.BitMode
	TargetCPU ast.SupCPU
}

Jump to

Keyboard shortcuts

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