Question #287402


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.


Expert's answer

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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS