DATA SEGMENT
X DB 10
Y DB 20
Z DB 00
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
MOV AL,X
ADD AL,Y
MOV CL,3
SHL AL,CL
SUB AL,X
MOV CL,2
SHR AL,CL
MOV AH,4CH
INT 21H
CODE ENDS
END START
DATA SEGMENT
X DB 10
Y DB 20
Z DB 00
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
MOV AL,X
ADD AL,Y
MOV CL,3
SHL AL,CL
SUB AL,X
MOV CL,2
SHR AL,CL
MOV AH,4CH
INT 21H
CODE ENDS
END START