printf(): Fix wrong instruction when fetching arg from stack (lea->mov : arg already is (supposed to be) an address)

This commit is contained in:
2025-07-06 21:26:26 +02:00
parent 3ccad56d76
commit 3d2bf1b40d

View File

@@ -138,7 +138,7 @@ printf:
mov rsi, [printfArgs + SIZE_QWORD * rdx]
jmp .insertString
.s_fromStack:
lea rsi, [rbp + RBP_OFFSET_CALLER + ((rdx-5) * SIZE_QWORD)]
mov rsi, [rbp + RBP_OFFSET_CALLER + ((rdx-5) * SIZE_QWORD)]
;--- Insert string to buffer ---;
.insertString: