diff options
author | Astatin <[email protected]> | 2025-06-18 16:44:10 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-06-18 16:44:10 +0200 |
commit | 14b1fc9b3ea5520a3e9c5a7a457a7a03660bc910 (patch) | |
tree | de1945a351ccbe14b6512dbcca8bd800576352f2 /instructions.go | |
parent | 501b255423d9a08ab5d9765c3feb5bf3a6b7b0af (diff) |
Fix .PADTO in macro & allow to use current_address in .DEFINE
Diffstat (limited to 'instructions.go')
-rw-r--r-- | instructions.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/instructions.go b/instructions.go index ff87e44..c852ec4 100644 --- a/instructions.go +++ b/instructions.go @@ -563,7 +563,14 @@ instruction_param_loop: } if instrParam.MacroForbidden && isMacro { - return nil, fmt.Errorf("This instruction cannot be used with this set of params inside of a macro") + rejectedError := fmt.Errorf("\t[Rejected] Param Type %v: This instruction cannot be used with this set of params inside of a macro\n", paramType, err) + if rejectedErrors == nil { + rejectedErrors = rejectedError + } else { + rejectedErrors = fmt.Errorf("%w%w", rejectedErrors, rejectedError) + } + continue + // return nil, fmt.Errorf("") } return instrParam.Assembler(currentAddress, parsed_params) |