diff options
Diffstat (limited to 'lace_x86.asm')
-rw-r--r-- | lace_x86.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lace_x86.asm b/lace_x86.asm index cee44da..ee615ea 100644 --- a/lace_x86.asm +++ b/lace_x86.asm @@ -82,7 +82,7 @@ _start: sub esp, 16 ; alloc struct sockaddr_in - mov dl, 16 ; read(fd, sockaddr_in, sizeof(sockaddr_in)) + mov dl, 16 ; read(argv[1], sockaddr, sizeof(sockaddr)) mov ecx, esp mov ebx, eax mov al, 3 @@ -100,7 +100,7 @@ _start: mov al, 0x66 int 0x80 - push 16 ; connect(sock, sockaddr_in, sizeof(sockaddr_in)) + push 16 ; connect(sock, sockaddr, sizeof(sockaddr)) lea ecx, [esp+16] push ecx push eax @@ -132,7 +132,7 @@ pipe: mov al, 3 int 0x80 - cmp eax, 0 ; if finished, return + cmp eax, 0 ; if finished/error, return jg pipe_cont ret |