From cca7ff5b8eb426629e26b23208611270ae82ae67 Mon Sep 17 00:00:00 2001 From: nub31 Date: Mon, 27 Jan 2025 17:03:53 +0100 Subject: [PATCH] Fix tabs --- Nub.Lang/Nub.Lang/Generation/Generator.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Nub.Lang/Nub.Lang/Generation/Generator.cs b/Nub.Lang/Nub.Lang/Generation/Generator.cs index 7cdd640..f8af200 100644 --- a/Nub.Lang/Nub.Lang/Generation/Generator.cs +++ b/Nub.Lang/Nub.Lang/Generation/Generator.cs @@ -90,19 +90,19 @@ public class Generator strcmp: xor rdx, rdx strcmp_loop: - mov al, [rsi + rdx] - mov bl, [rdi + rdx] - inc rdx - cmp al, bl - jne strcmp_not_equal - cmp al, 0 - je strcmp_equal - jmp strcmp_loop + mov al, [rsi + rdx] + mov bl, [rdi + rdx] + inc rdx + cmp al, bl + jne strcmp_not_equal + cmp al, 0 + je strcmp_equal + jmp strcmp_loop strcmp_not_equal: - mov rax, 0 + mov rax, 0 ret strcmp_equal: - mov rax, 1 + mov rax, 1 ret """); @@ -148,7 +148,7 @@ public class Generator GenerateBlock(node.Body, func); _builder.AppendLine($"{func.EndLabel}:"); - _builder.AppendLine("; Clean up stack frame"); + _builder.AppendLine(" ; Clean up stack frame"); _builder.AppendLine(" mov rsp, rbp"); _builder.AppendLine(" pop rbp"); _builder.AppendLine(" ret");