Clear Upper 4 Bits of AL Register – Assembly Program


Write and run a program using 8086 assembly language that clears the upper 4 bits of AL register using BL register and any logic operation. You must decide the content of BL register yourself. [Dec 2015, Set-2]

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

    
    MOV AH, 4CH
    INT 21H  
      
CODE ENDS

END START