diff options
author | Astatin <[email protected]> | 2025-06-10 18:27:56 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-06-10 18:27:56 +0200 |
commit | 501b255423d9a08ab5d9765c3feb5bf3a6b7b0af (patch) | |
tree | c2f7573b409bf591dad3302ec6816878842d24d2 /instructions.go | |
parent | a7d6e62878245810323787eeb5458e418371b89f (diff) |
Add ASSERT macro + fix label substractions banks + add . for current address
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 } |