summaryrefslogtreecommitdiffstats
path: root/readdir.asm
diff options
context:
space:
mode:
Diffstat (limited to 'readdir.asm')
-rw-r--r--readdir.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/readdir.asm b/readdir.asm
index b3a5794..4bd4118 100644
--- a/readdir.asm
+++ b/readdir.asm
@@ -43,8 +43,24 @@ GPROC(fxn_findfirst)
movb %fs:SDF_ATTRIB(%si),%al /* File search attributes */
/* Save drive letter and search attributes */
movw %ax,%fs:(%bx)
+#ifdef DEBUG
+ debugmsg "findfirst attrib = "
+ pushw %ax
+ call debug_printhex2
+#endif
testb $0x08,%al
jnz label
+#ifdef DEBUG
+ debugmsg " fn1 = "
+ pushw %ax
+ pushw %fs
+ leaw %fs:(SDN_FN1-SDN_SEARCHDATA)(%bx),%ax
+ pushw %ax
+ call debug_puts_far
+ popw %ax
+ call debug_crlf
+#endif
+
movl $0x08030002,%eax /* File not found */
clc
retw