WRITE A PROGRAM ON EMU 8086
Create an array of 50 items of type Byte, assign value 50 to all of the Bytesin memory using Dup.
DATA SEGMENT
Bytesim 50 BYTE dup(50)
DATA ENDS
CODE SEGMENT
START:
MOV AX,DATA
MOV DS,AX
MOV ES,AX
exit:
MOV AH,1 ; Waiting for a key press
INT 21H
EXIT_PROG: ; Program is terminated
MOV AH,4CH
INT 21H
CODE ENDS
END START
Comments
Leave a comment