internal/inst: doc exported symbols (#9)

This commit is contained in:
Michael McLoughlin
2019-01-05 11:43:39 -08:00
parent d54d413e54
commit f9a67bb2c0
2 changed files with 33 additions and 6 deletions

View File

@@ -3,6 +3,8 @@ package inst
//go:generate avogen -bootstrap -data ../data -output ztable.go godata
//go:generate avogen -bootstrap -data ../data -output ztable_test.go godatatest
// Lookup returns the instruction with the given opcode. Boolean return value
// indicates whether the instruction was found.
func Lookup(opcode string) (Instruction, bool) {
for _, i := range Instructions {
if i.Opcode == opcode {