From 216039a1ab2bd11285036887cd3dfd5fb0e6f3e6 Mon Sep 17 00:00:00 2001 From: nub31 Date: Mon, 27 Jan 2025 15:30:27 +0100 Subject: [PATCH] fix indenting --- Nub.Lang/Nub.Lang/Generation/Generator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nub.Lang/Nub.Lang/Generation/Generator.cs b/Nub.Lang/Nub.Lang/Generation/Generator.cs index c6337e2..e1243d9 100644 --- a/Nub.Lang/Nub.Lang/Generation/Generator.cs +++ b/Nub.Lang/Nub.Lang/Generation/Generator.cs @@ -43,10 +43,10 @@ public class Generator var main = _symbolTable.ResolveFunc(Entrypoint, []); + _builder.AppendLine($" ; Initialize global variables"); foreach (var globalVariable in _definitions.OfType()) { var symbol = _symbolTable.ResolveGlobalVariable(globalVariable.Name); - _builder.AppendLine($" ; Initialize global variable {symbol.Name}"); GenerateExpression(globalVariable.Value, main); _builder.AppendLine($" mov [{symbol.Identifier}], rax"); } @@ -88,7 +88,7 @@ public class Generator _builder.AppendLine(""" strcmp: - xor rdx, rdx + xor rdx, rdx strcmp_loop: mov al, [rsi + rdx] mov bl, [rdi + rdx]