To implement block transfer and exchange using SI, DI registers.
REP MOVSB instruction.CLD instruction affect string operations in 8086?DS and ES segment registers for block transfer?Create a file named exp3.asm in Notepad and save it in D:\TASM:
.model small
.stack 100h
.data
src db 10h,20h,30h,40h,50h,60h,70h,80h,90h,0A0h
dest db 10 dup(?)
.code
main proc
mov ax, @data
mov ds, ax
lea si, src
lea di, dest
mov cx, 10
cld
rep movsb
mov ah, 4ch
int 21h
main endp
end main
Inside DOSBox, compile and run:
tasm filename.asm
tlink filename.obj
Run Debug:
td filename.exe