L : MOV AL, [SI] MOV [DI], AL INC DI DEC SI DEC CL JNZ L INT 03H CODE ENDS END START Input: Str 1 = VIDYA $ Output: AX= 0B4FH 0B4F: 2000 41 59 44 49 56 “AYDIV$” Program: (II) String Copy ASSUME CS: CODE, DS: DATA DATA SEGMENT ORG 1000H STR1 DB $” “SISTK ORG 2000H STR2 DB $ ‘’ ’’ DATA ENDS CODE SEGMENT START: ORG 3000H MOV AX, MOV DS, AX MOV CS, AX MOV CL, 06H MOV SI, 1000H MOV DI, 2000H L: MOV AL,[SI] MOV [DI], AL INC DI INC SI DEC CL
L : MOV AL, [SI] MOV [DI], AL INC DI DEC SI DEC CL JNZ L INT 03H CODE ENDS END START Input: Str 1 = VIDYA $ Output: AX= 0B4FH 0B4F: 2000 41 59 44 49 56 “AYDIV$” Program: (II) String Copy ASSUME CS: CODE, DS: DATA DATA SEGMENT ORG 1000H STR1 DB “SISTK $” ORG 2000H STR2 DB ‘’ $ ’’ DATA ENDS CODE SEGMENT START: ORG 3000H MOV AX, MOV DS, AX MOV CS, AX MOV CL, 06H MOV SI, 1000H MOV DI, 2000H L: MOV AL,[SI] MOV [DI], AL INC DI INC SI DEC CL
MPMC-lab-R15.docx