From 1b716d42c6bb31c48c6b8df0b5b5c5118f723ef2 Mon Sep 17 00:00:00 2001 From: faissaloo Date: Fri, 5 Aug 2016 19:42:28 +0100 Subject: Fixed parsing for PATH variables with or without speech marks --- sh.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sh.asm') diff --git a/sh.asm b/sh.asm index d43b1dd..30f91b7 100644 --- a/sh.asm +++ b/sh.asm @@ -100,10 +100,10 @@ _start: shl rax, 24 cmp rax, r10 jne _pathfinder ;if we haven't, let's move right one and see if it's there - cmp byte [r8], `"` - je _pathfinder_continue + cmp byte [r8+5], `"` + jne _pathfinder_continue inc r8 - cmp byte [r8], 0 + cmp byte [r8+5], 0 jz _quit _pathfinder_continue: add r8, 0x5 -- cgit v1.2.3