Assembly Program to Create 8 bit number


Write and run a program using 8086 assembly language that creates an eight-bit number from two four-bit numbers. The following example explains this : Consider BL register contains 0000 0110 and DL register contains 0000 1001 then you need to create an eight-bit number from BL and DL in AL register. The AL should contain 0110 1001 [Dec 2014, Set-4]

CODE SEGMENT
START:
    ASSUME CS:CODE 
    
    MOV BL, 00000110B
    MOV DL, 00001001B 
    
    MOV AL, BL 
    MOV CL, 4H
    ROL AL, CL
     
    ADD AL, DL       
CODE ENDS

END START