printf() comment cleanup

This commit is contained in:
2025-06-25 12:12:26 +02:00
parent 3a55212f3e
commit 1de7731139

View File

@ -50,7 +50,6 @@ printf:
push r12
push r13
;sub rsp, 8
xor r10, r10
lea r11, [rel printfBuff]
@ -76,7 +75,6 @@ printf:
.rep_s:
push rdi
;mov byte [r11], 's' ;%s => Ss
cmp r10, 0
je .sinsertLoop ;nothing to do, rsi already correct
cmp r10, 1
@ -89,7 +87,7 @@ printf:
je .rep_s_r9
;get from stack
; rsp + 6*8 : RIP to printf call (+1), PUSH rbp,r12,r13,rdi (+4), +1 should be tS6
; rsp + 5*8 : RIP to printf call (+1), PUSH rbp,r12,r13,rdi (+4)
mov rsi, qword [rsp + 5*8 + (r10-5)*8]
jmp .sinsertLoop
@ -127,7 +125,6 @@ printf:
lea rdi, [rel printfBuff]
call print
;add rsp, 8
pop r13
pop r12