ALP to demonstrate logical operations

ASSUME CS:CODE,DS:DATA
DATA SEGMENT
A DB 4H
B DB 7H
DATA ENDS
CODE SEGMENT
START:
 MOV AX,DATA
 MOV DS,AX

 MOV AL,A
 MOV BL,B
 AND AL,BL

 MOV AL,A
 MOV BL,B
 OR AL,BL

 MOV AL,A
 MOV BL,B
 XOR AL,BL

 MOV AL,A
 NOT AL

 MOV AH,4CH
 INT 21H
CODE ENDS
END START

OUTPUT:IN DEBUG MODE



Comments

Popular posts from this blog

ALP to demonstrate shift operations

ALP to transfer a block of data from one location to another

Fibonacci series to display first 5 terms