mc

package
v0.0.0-...-56c637b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInstruction

func ParseInstruction(instrString string) (*instructions.Instruction, error)

Parses an instruction of the form 'mnemonic [operands, ...]'

The parser is as stupid as it gets, the commas separating operands are optional, operands are really splitted through the whitespaces between them (So multi-arg operands are not supported)

Types

type MachineCodeDescriptor

type MachineCodeDescriptor struct {
	// Information about instruction opcodes
	OpCodes *instructions.OpCodesDescriptor
	// Information about machine instructions
	Instructions *instructions.InstructionsDescriptor
	// Information about machine registers classes
	RegisterClasses *registers.RegisterClassesDescriptor
	// Information of machine register meta classes
	RegisterMetaClasses []*registers.RegisterMetaClass
}

Contains implementation information about the machine code

var Descriptor MachineCodeDescriptor = makeMachineFunctionDescriptor()

Contains implementation information about the machine code

func (*MachineCodeDescriptor) DocString

func (d *MachineCodeDescriptor) DocString() string

Like Documentation(), but with zero leftpad

func (*MachineCodeDescriptor) Documentation

func (d *MachineCodeDescriptor) Documentation(leftpad int) string

Dumps all the MC description as one big multiline string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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