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

View File

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