Code: Select all
find: mov si, file_name ; Pointer to Filename String
mov ecx, 11 ; Compare 11 character string
a32 rep cmpsb
je found ; Found file
add ecx, 21 ;Offset to next directory entry
add edi, ecx
dec bx ; Loop through all entries
jnz find ; If BX > 0 goto find
Code: Select all
find: mov si, file_name ; Pointer to Filename String
mov ecx, 11 ; Compare 11 character string
a32 rep cmpsb
je found ; Found file
mov ecx, 21 ;Offset to next directory entry
add edi, ecx
dec bx ; Loop through all entries
jnz find ; If BX > 0 goto find
Pete