summaryrefslogtreecommitdiff
path: root/sh.asm
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2016-08-05 16:37:33 +0100
committerfaissaloo <faissaloo@gmail.com>2016-08-05 16:37:33 +0100
commitd3facea389360f784d4261288df9682fd41b6ac8 (patch)
tree4d47adccc268ed241589f6575e5b2aa60258a220 /sh.asm
parentffe8d881dd5fc91abc125b8d0802198dfbffc69d (diff)
downloaddbsh-d3facea389360f784d4261288df9682fd41b6ac8.tar.gz
Speed up for sys_read
Diffstat (limited to 'sh.asm')
-rw-r--r--sh.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh.asm b/sh.asm
index 369157f..3cc195c 100644
--- a/sh.asm
+++ b/sh.asm
@@ -81,7 +81,7 @@ _start:
_parse_path2:
mov rdi, rax
- mov rax, sys_read
+ xor rax, rax ;sys_read
mov rsi, r9
mov rdx, path_buffer_size
syscall
@@ -146,7 +146,7 @@ _read_loop:
call _bzero
_read_loopr:
- mov rax, sys_read
+ xor rax, rax ;sys_read
xor rdi, rdi ;stdin
mov rsi, r15
mov rdx, input_buffer_size