From b6099ab700d1af16647c1bc8d17f2b4d84bfd338 Mon Sep 17 00:00:00 2001 From: faissaloo Date: Fri, 22 Jul 2016 16:00:38 +0100 Subject: Switched to a faster cpid check, as well as other 0 dependant checks --- sh.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh.asm') diff --git a/sh.asm b/sh.asm index 0ef79d4..d899a31 100644 --- a/sh.asm +++ b/sh.asm @@ -90,7 +90,7 @@ _exec: mov rax, stub_fork syscall mov dword [cpid], eax - cmp dword [cpid], 0x0 + test eax, eax ;checks if cpid is 0 jne _wait_for_proc ; now that we know what to execute, do so @@ -146,7 +146,7 @@ _parse_path2: jl _quit mov r8, r9 dec r8 - +; Reads the PATH variable _pathfinder: inc r8 xor rax, rax -- cgit v1.2.3