...
1 package x86_64
2
3
4 func CreateLabel(name string) *Label {
5 p := new(Label)
6
7
8 p.refs = 1
9 p.Name = name
10 return p
11 }
12
13 func newProgram(arch *Arch) *Program {
14 p := new(Program)
15
16
17 p.arch = arch
18 return p
19 }
20
21 func newInstruction(name string, argc int, argv Operands) *Instruction {
22 p := new(Instruction)
23
24
25 p.name = name
26 p.argc = argc
27 p.argv = argv
28 return p
29 }
30
31
32 func CreateMemoryOperand() *MemoryOperand {
33 p := new(MemoryOperand)
34
35
36 p.refs = 1
37 return p
38 }
39
View as plain text