设在以XX为首地址的内存区存放了一些字节数,共计100个,分别使用MOV、MOVSB、REP MOVSB和LODSB、STOSB实现为这100个数据传送至以YY为首地址的存储区
① MOV BX,0
MOV CX,100
NEXT: MOV AL,XX[BX]
MOV YY[BX],AL
INC BX
DEC CX
JNZ NEXT
② MOV CX,100
LEA SI,XX
LEA DI,XX
CLD
LP: MOVSB
LOOP LP
③ MOV CX,100
LEA SI,XX
LEA DI,YY
CLD
REP MOVSB
④ MOV CX,100
LEA SI,XX
LEA DI,YY
CLD
LP: LODSB
STOSB
LOOP LP