+Changes in 1.41:
+ * Don't get confused by directories, volume labels, or VFAT
+ long names.
+
Changes in 1.40:
* Increase A20M delay and put in a test to avoid problems on
certain IBM Thinkpads (thanks to Donnie Barnes of RedHat
pop si
sd_nextentry: cmp byte [si],0 ; Directory high water mark
je kaboom
+ test byte [si+11],18h ; Must be a file
+ jnz sd_not_file
mov di,ldlinux_name
mov cx,11
push si
repe cmpsb
pop si
je found_it
- add si,byte 32 ; Distance to next
+sd_not_file: add si,byte 32 ; Distance to next
cmp si,[EndofDirSec]
jb sd_nextentry
pop dx
mov si,trackbuf
dir_test_name: cmp byte [si],0 ; Directory high water mark
je dir_return ; Failed
- test byte [si+11],018h ; Check it really is a file
+ test byte [si+11],18h ; Check it really is a file
jnz dir_not_this
push di
push si