summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2016-06-21 18:28:23 +0100
committerfaissaloo <faissaloo@gmail.com>2016-06-21 18:28:23 +0100
commit7cc39751094583703bee1e320e8fe8e1939e97f0 (patch)
tree05595c5f1c7a1969fe949a52f83cc1c3304be3a1
parent0c02286ad78fc0d2d26c3f2cb585ecafd4d52da9 (diff)
downloaddbsh-7cc39751094583703bee1e320e8fe8e1939e97f0.tar.gz
Replaced all the mov *, 0s with xor *,* for speed
-rw-r--r--sh.asm8
1 files changed, 4 insertions, 4 deletions
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