FIX: Stack alignment in printf()
This commit is contained in:
@@ -84,7 +84,6 @@ puts:
|
|||||||
printf:
|
printf:
|
||||||
push rbp
|
push rbp
|
||||||
mov rbp, rsp
|
mov rbp, rsp
|
||||||
sub rsp, SIZE_QWORD
|
|
||||||
|
|
||||||
cmp byte [rdi], EOS
|
cmp byte [rdi], EOS
|
||||||
je .emptyStr
|
je .emptyStr
|
||||||
@@ -287,6 +286,5 @@ printf:
|
|||||||
xor rax, rax
|
xor rax, rax
|
||||||
|
|
||||||
.quit:
|
.quit:
|
||||||
add rsp, SIZE_QWORD
|
|
||||||
leave
|
leave
|
||||||
ret
|
ret
|
||||||
|
Reference in New Issue
Block a user