From aef21db9841b526e004cf1338b4689c64b5f3f28 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Wed, 29 Nov 2023 15:35:50 +0100 Subject: [PATCH] Added doc for 2-pass mode --- include/ulas.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ulas.h b/include/ulas.h index ea50118..9e4698a 100644 --- a/include/ulas.h +++ b/include/ulas.h @@ -173,6 +173,14 @@ struct ulas_symbuf { * Assembly context */ +/** + * The assembler can go over the code twice to resolve all future labels as well + * as past labels This causes the entire process to start over for now meaning + * that the 2 passes will behave as if they run their own assembly process with + * slightly different settings. Pass settings ULAS_SYM_FINAL: Final pass, enable + * code output and evaluate all expressions and directives ULAS_SYM_RESOLVE: + * Disable code output and the .set directive. Resolve labels + */ enum ulas_pass { ULAS_PASS_FINAL = 0, ULAS_PASS_RESOLVE = 1, -- 2.30.2