Skill - 1
Skill - 1
Skill Exercise-1
For Data transfer and Arithmetic instructions every student should take their own data and
perform the operations.
Logical Operations:
a. AND operation
org 100h
ret
c. XOR operation
org 100h
.CODE
ret
d. NOT operation
org 100h
.CODE
ret
e. SAL, SHL, SAR, SHR operations
org 100h
.DATA
NUM1 DB 9AH
NUM2 DB 7DH
NUM3 DB 0A2H
NUM4 DB 9FH
CNT EQU 02H
.CODE
START: MOV AX,@DATA
MOV DS,AX
MOV CL,CNT
MOV AX,0H
MOV AL,NUM1
SHL AL,1
MOV AL,NUM2
SHR AL,1
MOV AL,NUM3
SAL AL,1
MOV AL,NUM4
SAR AL,1
MOV AL,NUM1
SHL AL,CL
MOV AL,NUM2
SHR AL,CL
MOV AL,NUM3
SAL AL,CL
MOV AL,NUM4
SAR AL,CL
ret
Note : after execution every exercise should be given inference and analysis and should write finally
result of the experiment.