Code:
; Program to transfer a block of 50 numbers from 20000h to 30000h
.MODEL SMALL
.STACK 100H
.DATA
.CODE
MOV AX , 2000H ; Initializing Data Segment
MOV DS , AX
MOV AX , 3000H ; Initializing Extra Segment
MOV ES , AX
MOV SI , 0000H
MOV DI , 0000H
MOV CX , 50 ; Initializing counter
UP:
MOV AL , [SI]
MOV ES:[DI] , AL
INC SI
INC DI
LOOP UP
MOV AH , 4CH ; Service routine for exit
INT 21H
END
; Program to transfer a block of 50 numbers from 20000h to 30000h
.MODEL SMALL
.STACK 100H
.DATA
.CODE
MOV AX , 2000H ; Initializing Data Segment
MOV DS , AX
MOV AX , 3000H ; Initializing Extra Segment
MOV ES , AX
MOV SI , 0000H
MOV DI , 0000H
MOV CX , 50 ; Initializing counter
UP:
MOV AL , [SI]
MOV ES:[DI] , AL
INC SI
INC DI
LOOP UP
MOV AH , 4CH ; Service routine for exit
INT 21H
END