mov X, 0 -> xor X, X - Fixes #3
This commit is contained in:
@@ -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:
|
||||||
|
@@ -1120,5 +1120,5 @@ _start:
|
|||||||
;--- exit()
|
;--- exit()
|
||||||
;---
|
;---
|
||||||
leave
|
leave
|
||||||
mov rdi, 0
|
xor rdi, rdi
|
||||||
call exit
|
call exit
|
||||||
|
Reference in New Issue
Block a user