mov X, 0 -> xor X, X - Fixes #3

This commit is contained in:
2025-07-20 22:38:06 +02:00
parent 6bc6000454
commit ebee21c457
2 changed files with 3 additions and 3 deletions

View File

@@ -141,7 +141,7 @@ printf:
mov rcx, 1
jmp %%movr8 ;nice label name isn't it?
%%padSpaces:
mov rcx, 0
xor rcx, rcx
%%movr8:
mov r8, %2
call %3
@@ -176,7 +176,7 @@ printf:
.process:
cmp byte [rdi], EOS
je .wrapup
mov r9b, 0
xor r9b, r9b
cmp r10, printfBuffLen-1
je .flushBuffer
.flushReturn_0:

View File

@@ -1120,5 +1120,5 @@ _start:
;--- exit()
;---
leave
mov rdi, 0
xor rdi, rdi
call exit