summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshbin1728 -> 1728 bytes
-rw-r--r--sh.asm6
2 files changed, 3 insertions, 3 deletions
diff --git a/sh b/sh
index 1efff95..de08c70 100755
--- a/sh
+++ b/sh
Binary files differ
diff --git a/sh.asm b/sh.asm
index 9aafb7d..90333eb 100644
--- a/sh.asm
+++ b/sh.asm
@@ -210,7 +210,7 @@ _parse:
;also needs pipes (|, >, <)
xor r13, r13 ;for _strlen
push r13 ;push 0
- jmp _strlen
+ call _strlen
;r8 holds strlen so we start at the end and parse backwards
; go through and sub/push
@@ -316,7 +316,7 @@ _parse7: ; absolute path
jmp _exec
-;input: r12 (return address), r15 (buffer)
+;input: r15 (buffer)
;output: r8 (length)
_strlen:
mov r8, -16
@@ -330,7 +330,7 @@ _strlen:
jnz _strlen1
add r8, rcx
xchg rsi,rcx
- jmp _parse1
+ ret
; input: rcx (a), r13 (b)
; output: rbx (string)