FIX: Loading arg from stack to wrong register (rsi->rdi) for %d

This commit is contained in:
2025-06-25 13:43:06 +02:00
parent 266cb57d1c
commit 74178a6a2d
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ printf:
je .rep_d_r9 je .rep_d_r9
;get from stack ;get from stack
mov rsi, qword [rbp + 16 + (r10-5)*8] mov rdi, qword [rbp + 16 + (r10-5)*8]
jmp .convertInt jmp .convertInt
.rep_d_rsi: .rep_d_rsi:

View File

@ -233,7 +233,7 @@ main:
lea r8, [rel tS4] lea r8, [rel tS4]
lea r9, [rel tS5] lea r9, [rel tS5]
push tS9 push tS9
push qword [num1] push qword [rel num1]
push tS8 push tS8
push tS7 push tS7
push tS6 push tS6