diff options
| author | faissaloo <faissaloo@gmail.com> | 2016-07-25 18:38:32 +0100 |
|---|---|---|
| committer | faissaloo <faissaloo@gmail.com> | 2016-07-25 18:38:32 +0100 |
| commit | 441b0c35789af6c0f104b06f95d464b19031b47b (patch) | |
| tree | 494d45bee267dfea57868dccd8e34e089faaeb62 /sh.asm | |
| parent | e6e385e3a5b8a875d728706181078f01749e8882 (diff) | |
| download | dbsh-441b0c35789af6c0f104b06f95d464b19031b47b.tar.gz | |
strlen can now be used in other areas
Diffstat (limited to 'sh.asm')
| -rw-r--r-- | sh.asm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
