From 7cc39751094583703bee1e320e8fe8e1939e97f0 Mon Sep 17 00:00:00 2001 From: faissaloo Date: Tue, 21 Jun 2016 18:28:23 +0100 Subject: Replaced all the mov *, 0s with xor *,* for speed --- sh.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sh.asm') diff --git a/sh.asm b/sh.asm index 123d772..53fe533 100644 --- a/sh.asm +++ b/sh.asm @@ -56,7 +56,7 @@ _rloop: _rloopr: mov rax, sys_read - mov rdi, 0x0 + xor rdi, rdi mov rsi, r15 mov rdx, 0xff syscall @@ -81,7 +81,7 @@ _exec: mov rax, stub_execve mov rdi, r13 mov rsi, r14 - mov rdx, 0x0 + xor rdx, rdx syscall ; and now kill the child process @@ -106,7 +106,7 @@ _wait4_it: _parse_path: mov rax, sys_open mov rdi, env - mov rsi, 0x0 + xor rsi, rsi syscall cmp rax, 0x0 jl _quit @@ -409,5 +409,5 @@ _weol: _quit: mov rax, sys_exit - mov rdi, 0x0 + xor rdi, rdi syscall -- cgit v1.2.3