add skeleton for instruction constructors

This commit is contained in:
Michael McLoughlin
2018-11-25 21:50:46 -08:00
parent 4dcfed6e16
commit af02be06ba
7 changed files with 165 additions and 77 deletions

View File

@@ -28,6 +28,14 @@ type Form struct {
ImplicitOperands []ImplicitOperand
}
func (f Form) Signature() []string {
s := make([]string, len(f.Operands))
for i, op := range f.Operands {
s[i] = op.Type
}
return s
}
type Operand struct {
Type string
Action Action