Divide Number using Shift Operation in Assembly Language


Write and run a program using 8086 assembly language that stores a value 10000101 in AL register. It then divides the number by 2 using shift operation. [Dec 2015, Set-4]

CODE SEGMENT
START:
    ASSUME CS:CODE
    MOV AL, 10000101B
    SHR AL, 1
    MOV DL,AL
    
    MOV AH, 4CH
    INT 21H  
      
CODE ENDS

END START