This commit is contained in:
nub31
2025-01-30 18:05:59 +01:00
parent 1f4b2a42eb
commit b6c80af6c4
11 changed files with 67 additions and 14 deletions

View File

@@ -76,7 +76,7 @@ public class Generator
mov rdi, 69
syscall
strcmp:
str_cmp:
xor rdx, rdx
.loop:
mov al, [rsi + rdx]
@@ -436,7 +436,7 @@ public class Generator
case StringType:
_builder.AppendLine(" mov rdi, rax");
_builder.AppendLine(" mov rsi, rbx");
_builder.AppendLine(" call strcmp");
_builder.AppendLine(" call str_cmp");
break;
default:
throw new ArgumentOutOfRangeException(nameof(type));