Rename fndfst to open

This commit is contained in:
Nero 2021-01-02 02:48:04 +00:00
parent 9a1c4139a6
commit 015eea2f2f
2 changed files with 9 additions and 10 deletions

View file

@ -39,15 +39,17 @@ fnfile: mov ax, [es:bx+FCBDEN]
ret
; initialize a FCB for directory scanning
fndfst: mov word [es:bx+FCBDEN], 0
fndnxt: call fnfile
open: mov word [es:bx+FCBDEN], 0
.search: call fnfile
mov al, 0xFF
jc .ret
push si
lea di, [bx+1]
mov cx, 11
rep cmpsb
pop si
jne fndnxt
jne .search
mov al, 0
.ret: ret
putfn: mov cx, 11