Курсовая работа: Захист файлів від запису
cmp ah,0
je EndVvodN_File
mov New_File [di],ah
inc di
cmp di,13
jne NewSimN_File
EndVvodN_File:
mov ah,'_'
mov New_File [di-1],ah
mov ah,3Ch
mov dx,offset New_File
mov cx,0
int 21h
jnc N_FileOk
mov ah,09h
mov dx,offset Err_File
int 21h
mov ah,1
int 21h
jmp Exit0
N_FileOk:
mov Handle,ax
mov di,Save_di
mov ah,40h
mov bx,Handle
mov cx,32
mov dx,offset RootRecord
int 21h
mov di,0