From 501b255423d9a08ab5d9765c3feb5bf3a6b7b0af Mon Sep 17 00:00:00 2001 From: Astatin Date: Tue, 10 Jun 2025 18:27:56 +0200 Subject: Add ASSERT macro + fix label substractions banks + add . for current address --- instructions.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'instructions.go') 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 } -- cgit v1.2.3-70-g09d2