diff options
author | Malfurious <m@lfurio.us> | 2023-01-13 01:45:44 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-01-13 01:45:44 -0500 |
commit | 658c9a0d0d5c01b28bd7c7f52b79d304cc97dfdf (patch) | |
tree | decba26f12af8567666a980e13461b2873a3e2e6 /lace_x86.asm | |
parent | 88fd51e06db1143405619c87e8d9e9ced146dbb1 (diff) | |
download | lace-658c9a0d0d5c01b28bd7c7f52b79d304cc97dfdf.tar.gz lace-658c9a0d0d5c01b28bd7c7f52b79d304cc97dfdf.zip |
Improve code comments
Signed-off-by: Malfurious <m@lfurio.us>
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 |