Multiply Two 8 bits Numbers in Assembly Language


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. [June 2015, Set-1]

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