Professional Documents
Culture Documents
Mridul Jadon
20BCE1734
Aim: To perform logical operation – XOR, Shifts – Left Shift, Right Shift.
Algorithm:
(1) Logical operation (XOR)
Move one operand into the AX register.
Move next operand to register BX (optional for NOT).
XOR AX, BX performs bitwise XOR on the operands and stores it in AX.
HLT terminates the process.
Program:
Sample Input:
AX = 05H
BX = 06H
Sample Output:
XOR: AX = 0003
Register/ Memory Contents for I/O:
Sanpshot of Output:
Sample Input:
AX = 06H
Sample Output:
AX = 000C
Sanpshot of Output:
SHR
Sample Input:
AX = 06H
Sample Ouput:
0003
Result: The logical operations(XOR), shifting(SHL,SHR) were executed successfully using DOS
BOX using Assembler MASM611.