Experiment 1
Experiment 1
The purpose of this experiment is to learn about the registers, instruction sets, data
transfer operation and logical operation of 8086 by using AND, OR in the given two 16-bit
numbers and to store them in a memory location.
The logical AND instruction is used for masking off bits. The bits which have to be
cleared are to be AND ed with a logical zero and other bits are to be one. Hence to achieve
the above objective AND operation is performed between the data and the bits which has to
be masked. Data AND with 0F0FH, will mask the bits 4, 5, 6, 7, 12, 13, 14 and 15.
In a similar manner, the logical OR has to be performed to set a particular bit. The bits
which have to be set are to be OR ed with a logical one and other bits are to be zero. Hence to
achieve the above objective OR operation is performed between the data and the bits which
has to be set. Data OR with F0F0H, will set the bits 4, 5, 6, 7, 12, 13, 14 and 15.
1.4 Program:
Introduction of general purpose registers, data transfer instruction, logical
instruction (AND, OR), immediate addressing, direct addressing:
Observation
IN PUT DATA
ADDRESS
1100H 10
1101H 21
Observation
Result: