From a790799bd6b53a0b2dd0207cdf3566ca6404d3a8 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Mon, 6 Feb 2012 14:21:05 +0000 Subject: use linux calling convention for second call of file_read_s_line (instead of windows calling convention) --- afileIO3.s | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/afileIO3.s b/afileIO3.s index 1630f39..4960095 100644 --- a/afileIO3.s +++ b/afileIO3.s @@ -788,16 +788,18 @@ st_copy_string2: sub rcx,1 jnc copy_st_lp2 - mov r9,rsp - mov r8,rdi - lea rdx,[r15*8] - mov rcx,rbx - + mov rcx,rsp + mov rdx,rdi mov rbp,rsp - or rsp,8 - sub rsp,40 + and rsp,-16 + mov r13,rsi + lea rsi,[r15*8] + mov r14,rdi + mov rdi,rbx call file_read_s_line mov rsp,rbp + mov rsi,r13 + mov rdi,r14 test rax,rax js readLineSF_again -- cgit v1.2.3