Курсовая работа: Програми – аналоги DOS-програм ren, xcopy
mov bx,ax
mov ax,5700h
int 21h
mov word ptr orig_time,cx
mov word ptr orig_date,dx
;open file for write
mov ah,3ch
xor cx,cx
mov dx,di
int 21h
jc file_error
mov word ptr handle_2,ax
push ds
push es
pop ds
xor dx,dx
;read block
next_block:
mov ah,3fh
mov bx,word ptr cs:handle_1
mov cx,32768
int 21h
cmp ax,0 ;eof
je stop_copy
;write to file
mov cx,ax
mov ah,40h
mov bx,word ptr cs:handle_2
int 21h