diff options
author | Malfurious <m@lfurio.us> | 2023-01-12 04:43:12 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-01-12 04:43:12 -0500 |
commit | 8221b239c2d9b8214f0ed0cdd88517b86df26498 (patch) | |
tree | 203102de93d3562a1cdcfa4ea47fcf7c49caf8e6 /lace_x86.asm | |
parent | b28d784c4defed03c8f0083ba03b4bb1710ca371 (diff) | |
download | lace-8221b239c2d9b8214f0ed0cdd88517b86df26498.tar.gz lace-8221b239c2d9b8214f0ed0cdd88517b86df26498.zip |
Fix bug in exit routine
If an error condition is met during the pipe IO syscalls, eax will be
filled with a negative value. We need to then zero the rest of the
register before attempting to exit, so we don't continue on to execute
garbage.
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'lace_x86.asm')
-rw-r--r-- | lace_x86.asm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lace_x86.asm b/lace_x86.asm index 8c8ed14..5579d58 100644 --- a/lace_x86.asm +++ b/lace_x86.asm @@ -144,5 +144,6 @@ pipe_cont: jmp pipe ; loop exit: + xor eax, eax mov al, 1 int 0x80 |