summaryrefslogtreecommitdiff
path: root/sh.asm
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2016-07-26 18:40:12 +0100
committerfaissaloo <faissaloo@gmail.com>2016-07-26 18:40:12 +0100
commit03e957f08f8072d32fdb75e36a937562c3f25495 (patch)
tree3fad890deb7fd1de3b3b50675618901eefcf0de3 /sh.asm
parent69bcd9da88a418642444ebc6de66cbe7b1b3d8d3 (diff)
downloaddbsh-03e957f08f8072d32fdb75e36a937562c3f25495.tar.gz
I need to remember to make before testing next time lol, yeah it doesn't work
Diffstat (limited to 'sh.asm')
-rw-r--r--sh.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/sh.asm b/sh.asm
index 8189393..5257997 100644
--- a/sh.asm
+++ b/sh.asm
@@ -349,6 +349,10 @@ _concat_dir:
_dirty_strcpy_1:
movDqU xmm2, [rdi+r8]
movDqU [rbx+r8],xmm2
+
+ pcmpistri xmm1, xmm2, 122
+ jz _dirty_strcpy_1_exit
+
PcmpIstrI xmm0, xmm2, 122 ;if there was a null in the
;copied string exit loop
jz _dirty_strcpy_1_exit
@@ -364,6 +368,9 @@ _concat_dir:
movdqu xmm2, [r15+r11]
movdqu [rbx+r8], xmm2
+ pcmpistri xmm1, xmm2, 122
+ jz _parse5
+
pcmpistri xmm0, xmm2, 122
jz _parse5