From 4571841ee5dbb4786fa6293d447aea16aa808443 Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Fri, 23 Nov 2018 23:48:47 -0800 Subject: [PATCH] fix implicit operands --- internal/inst/types.go | 2 +- internal/load/load.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/inst/types.go b/internal/inst/types.go index 20b6f2f..f3ae69f 100644 --- a/internal/inst/types.go +++ b/internal/inst/types.go @@ -9,7 +9,7 @@ type Instruction struct { type Form struct { ISA []string Operands []Operand - ImplicitOperands []Operand + ImplicitOperands []ImplicitOperand } type Operand struct { diff --git a/internal/load/load.go b/internal/load/load.go index 0bba60d..e1dd0cd 100644 --- a/internal/load/load.go +++ b/internal/load/load.go @@ -291,8 +291,9 @@ func (l Loader) form(opcode string, f opcodesxml.Form) inst.Form { } return inst.Form{ - Operands: ops, - ISA: isas, + ISA: isas, + Operands: ops, + ImplicitOperands: implicits, } }