summaryrefslogtreecommitdiffstats
path: root/pathname.asm
diff options
context:
space:
mode:
Diffstat (limited to 'pathname.asm')
-rw-r--r--pathname.asm11
1 files changed, 10 insertions, 1 deletions
diff --git a/pathname.asm b/pathname.asm
index c13638a..6525ff0 100644
--- a/pathname.asm
+++ b/pathname.asm
@@ -45,7 +45,7 @@ GPROC(genpath_asciiz)
movb %fs:(%bx),%al
incw %bx
andb %al,%al
- jne 1b
+ jnz 1b
decw %bx
popw %ax
call genpath
@@ -77,6 +77,12 @@ GPROC(genpath)
pushw %si
call debug_puts
popw %ds
+ debugmsg " "
+ pushw %si
+ call debug_printhex4
+ debugmsg " "
+ pushw %bx
+ call debug_printhex4
call debug_crlf
#endif
@@ -93,6 +99,9 @@ GPROC(genpath)
movw %di,%bx /* Save pointer to chunk beginning */
2:
+ cmpw -2(%bp),%si
+ jae 3f
+
fs lodsb
cmpb $0x5c,%al /* Backslash */
je 3f