30 likes | 165 Vues
CS344-321 Assembly Language Programming. Period 26. String Instructions Repeat Prefixes rep repe/repz repne/repnz Move String movs/movsb/movsw. Example .data str1 db 20 dup(?) str2 db 20 dup(?) .code mov ax,@data mov ds,ax mov es,ax mov si,offset str1 mov di,offset str2
E N D
CS344-321 Assembly Language Programming Period 26
String Instructions Repeat Prefixes rep repe/repz repne/repnz Move String movs/movsb/movsw
Example .data str1 db 20 dup(?) str2 db 20 dup(?) .code mov ax,@data mov ds,ax mov es,ax mov si,offset str1 mov di,offset str2 mov cx,20 cld rep movsb ; copy from str1 to str2