From 658c9a0d0d5c01b28bd7c7f52b79d304cc97dfdf Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 13 Jan 2023 01:45:44 -0500 Subject: Improve code comments Signed-off-by: Malfurious --- lace_x86.asm | 6 +++--- 1 file 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 -- cgit v1.2.3