Files
avo/internal/inst/table.go
Michael McLoughlin a70227cbe3 test for stdlib opcodes
2018-11-24 14:55:51 -08:00

13 lines
240 B
Go

package inst
//go:generate avogen -data ../data -output ztable.go godata
func Lookup(opcode string) (Instruction, bool) {
for _, i := range Instructions {
if i.Opcode == opcode {
return i, true
}
}
return Instruction{}, false
}