数据传送类指令一通用数据传送指令(4) 例:把内存中首地址为MEM1的200个字节送 到首地址为MEM2的区域中,编程。 MEM2+0 MEM1→SI,MEM2→DL,200→CX MOV SI,OFFSET MEM1 MOV DI,OFFSET MEM2 [SI]→AL,AL→[DI C7H MOV CX,200 MEM1+ NEXT:MOV AL,[SI] .C6H INC SI.INC DI MOV [DI],AL DEC CX INC SI MEM2+199 INC DI CX=0? DEC CX JNZ NEXT 01H HLT 结束 MEM1+199 00H Ji Lin University China COMPUTER SCIENCE AND TECHNOLOGY COMPUTER SCIENCE AND TECHNOLOGY COMPUTER SCIENCE AND TECHNOLOGY 数据传送类指令-通用数据传送指令(4) • 例:把内存中首地址为MEM1的200个字节送 到首地址为MEM2的区域中,编程。 MOV SI,OFFSET MEM1 MOV DI,OFFSET MEM2 MOV CX,200 NEXT:MOV AL,[SI] MOV [DI],AL INC SI INC DI DEC CX JNZ NEXT HLT MEM1→SI,MEM2→DI,200→CX [SI] →AL,AL →[DI] INC SI,INC DI DEC CX CX=0? 结束 N •00H •01H •C6H •C7H MEM1+199 MEM2+199 MEM2+0 MEM1+0