summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lace_x86.asm10
1 files changed, 3 insertions, 7 deletions
diff --git a/lace_x86.asm b/lace_x86.asm
index 77e8ce9..1cf1e85 100644
--- a/lace_x86.asm
+++ b/lace_x86.asm
@@ -94,8 +94,9 @@ _start:
xchg edi, esi
call pipe
- xor ebx, ebx ; exit(0)
- jmp exit
+ xor eax, eax ; exit()
+ inc eax
+ int 0x80
pipe:
mov dl, 0xff ; read(src, buff, sizeof(buff))
@@ -114,8 +115,3 @@ pipe_cont:
mov al, 4
int 0x80
jmp pipe ; loop
-
-exit:
- xor eax, eax
- mov al, 1
- int 0x80