return a basic instruction object

This commit is contained in:
Michael McLoughlin
2018-11-27 22:38:53 -08:00
parent 23289963d9
commit b65b6c02b8
4 changed files with 993 additions and 991 deletions

View File

@@ -70,7 +70,7 @@ func (p *GoPrinter) function(f *Function) {
p.printf("TEXT %s%s(SB),0,$%d-%d\n", dot, f.Name(), f.FrameBytes(), f.ArgumentBytes())
for _, i := range f.inst {
p.printf("\t%s\t%s\n", i.Mnemonic, joinOperands(i.Operands))
p.printf("\t%s\t%s\n", i.Opcode, joinOperands(i.Operands))
}
}