Курсовая работа: Програми – аналоги DOS-програм ren, xcopy
pop ax
mov ds,ax
mov es,ax
;names
mov bx,80h
mov dl,byte ptr cs:[bx] ;length
cmp dl,0
je error
;old name
xor ax,ax
mov si,82h
mov di,offset old_name
next_sym:
mov al,[si]
cmp al,' '
je stop
mov [di],al
inc si
inc di
inc ah
cmp ah,dl
ja error
jmp next_sym
stop:
;new name
mov di,offset new_name
inc si
next_sym1:
mov al,[si]