summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2016-07-23 19:34:05 +0100
committerfaissaloo <faissaloo@gmail.com>2016-07-23 19:34:05 +0100
commitc2b6ae2d55e3eba64e10eaeb39c126ab569e85ae (patch)
treea9c727f0fb8ad6f25a545e7c8772dac725086f21
parentc2f00cb50d8507c83b45798fb287dff407d18cdd (diff)
downloaddbsh-c2b6ae2d55e3eba64e10eaeb39c126ab569e85ae.tar.gz
Oops, was moving the string into r10 every loop
-rwxr-xr-xshbin4664 -> 4664 bytes
-rw-r--r--sh.asm3
-rw-r--r--sh.obin4880 -> 4880 bytes
3 files changed, 2 insertions, 1 deletions
diff --git a/sh b/sh
index c41dcb8..c4ab5f8 100755
--- a/sh
+++ b/sh
Binary files differ
diff --git a/sh.asm b/sh.asm
index 0c5d707..81f616f 100644
--- a/sh.asm
+++ b/sh.asm
@@ -151,12 +151,13 @@ _parse_path2:
jl _quit
mov r8, r9
dec r8
+
; Reads the PATH variable
+ mov r10, `\0\0PATH="`
_pathfinder:
inc r8
;Check that we've found the PATH variable
- mov r10, `\0\0PATH="`
mov rax, [r8]
shl rax, 16
cmp rax,r10
diff --git a/sh.o b/sh.o
index 1487269..a108f8e 100644
--- a/sh.o
+++ b/sh.o
Binary files differ