Assembly Program to Clear Upper 4 Bit of AL Register


Write and run a program using 8086 assembly language that clears the upper 4 bits of AL register. For example, if AL register contains 0110 0101 then after the program is run AL register will contain 0000 0101. [June 2014, Set-2]

CODE SEGMENT
START:
    ASSUME CS:CODE
    MOV AL, 01100101B
    MOV BL, 00001111B
    AND AL, BL

    
    MOV AH, 4CH
    INT 21H  
      
CODE ENDS

END START