Multiply Three Numbers in Assembly Language


Write and run a program using 8086 assembly language to multiply three numbers. The numbers may be assumed to be in three consecutive memory locations. The result should be stored in a register. All the numbers should be less than 100. [Dec 2012, Set-3]

DATA SEGMENT
    NUM1 DW 9H
    NUM2 DW 4H
    NUM3 DW 2H  
     
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 CX, NUM3
    MUL CX
    MOV DX, AX

    
    MOV AX, 4C00H
    INT 21H  
      
CODE ENDS

END START