small fix: copying 8 bytes at once
This commit is contained in:
parent
80ecf726e7
commit
d190827141
1 changed files with 3 additions and 4 deletions
7
hello.s
7
hello.s
|
@ -111,10 +111,9 @@ make_sockaddr:
|
|||
make_sockaddr__copy_server_path:
|
||||
cmp rax, server_path_len
|
||||
jge return
|
||||
mov r10, [rax+server_path]
|
||||
add rax, 2
|
||||
mov [rax+sockaddr], r10
|
||||
sub rax, 1
|
||||
mov r10, [server_path + rax]
|
||||
mov [sockaddr + rax + 2], r10
|
||||
add rax, 8
|
||||
jmp make_sockaddr__copy_server_path
|
||||
|
||||
return:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue