package
Version:
v0.0.0-...-6b8dc72
Opens a new window with list of versions in this module.
Published: Sep 11, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
An Inst represents an assembler instruction.
Comment returns the original GNU assembler instruction string, if it cannot be transformed into Go assembly. Otherwise it returns an empty string.
String returns a string representation of the instruction.
A Program represents an assembler program.
New returns a new Program.
AddBytes adds opcodes to a latest instruction.
AddInst adds an instruction to the program.
Instrs returns a slice of instructions the program contains.
Label returns a label for an instruction, if there are any jumps or calls referencing it. Otherwise it returns an empty string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.