printf() comment cleanup
This commit is contained in:
@ -50,7 +50,6 @@ printf:
|
|||||||
|
|
||||||
push r12
|
push r12
|
||||||
push r13
|
push r13
|
||||||
;sub rsp, 8
|
|
||||||
|
|
||||||
xor r10, r10
|
xor r10, r10
|
||||||
lea r11, [rel printfBuff]
|
lea r11, [rel printfBuff]
|
||||||
@ -76,7 +75,6 @@ printf:
|
|||||||
|
|
||||||
.rep_s:
|
.rep_s:
|
||||||
push rdi
|
push rdi
|
||||||
;mov byte [r11], 's' ;%s => Ss
|
|
||||||
cmp r10, 0
|
cmp r10, 0
|
||||||
je .sinsertLoop ;nothing to do, rsi already correct
|
je .sinsertLoop ;nothing to do, rsi already correct
|
||||||
cmp r10, 1
|
cmp r10, 1
|
||||||
@ -89,7 +87,7 @@ printf:
|
|||||||
je .rep_s_r9
|
je .rep_s_r9
|
||||||
|
|
||||||
;get from stack
|
;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]
|
mov rsi, qword [rsp + 5*8 + (r10-5)*8]
|
||||||
jmp .sinsertLoop
|
jmp .sinsertLoop
|
||||||
|
|
||||||
@ -127,7 +125,6 @@ printf:
|
|||||||
lea rdi, [rel printfBuff]
|
lea rdi, [rel printfBuff]
|
||||||
call print
|
call print
|
||||||
|
|
||||||
;add rsp, 8
|
|
||||||
pop r13
|
pop r13
|
||||||
pop r12
|
pop r12
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user