Saturday, 15 July 2017

Write and run a program using 8086 assembly language that multiplies two 8-bit numbers stored in two consecutive memory locations. The result of multiplication should be moved to DX register



DATA SEGMENT
    NUM1 DW 5H
    NUM2 DW 11H      
DATA ENDS

CODE SEGMENT
START:

    ASSUME CS:CODE, DS:DATA 
    MOV AX, DATA
    MOV DS, AX



    MOV AX, NUM1   
    MOV CX, NUM2 
    MUL CX
    MOV DX, AX
    
    MOV AX, 4C00H
    INT 21H  
      
CODE ENDS

END START

No comments:

Post a Comment