diff options
Diffstat (limited to 'instructions.go')
-rw-r--r-- | instructions.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/instructions.go b/instructions.go index 80bedec..ff87e44 100644 --- a/instructions.go +++ b/instructions.go @@ -13,6 +13,7 @@ type InstructionParams struct { Wildcard bool MacroForbidden bool LabelsBeforeOnly bool + SkipFirstPass bool } type InstructionSet map[string][]InstructionParams @@ -525,6 +526,10 @@ func (set InstructionSet) Parse( var rejectedErrors error instruction_param_loop: for _, instrParam := range instruction { + if instrParam.SkipFirstPass && isFirstPass { + return []byte{}, nil + } + if !instrParam.Wildcard && len(instrParam.Types) != len(params) { continue } |