return a basic instruction object
This commit is contained in:
6
ast.go
6
ast.go
@@ -19,14 +19,10 @@ type Operand interface {
|
||||
|
||||
// Instruction is a single instruction in a function.
|
||||
type Instruction struct {
|
||||
Mnemonic string
|
||||
Opcode string
|
||||
Operands []Operand
|
||||
}
|
||||
|
||||
type Node interface {
|
||||
Asm
|
||||
}
|
||||
|
||||
// File represents an assembly file.
|
||||
type File struct {
|
||||
functions []*Function
|
||||
|
||||
Reference in New Issue
Block a user