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
Click to show internal directories.
Click to hide internal directories.