Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

SRM Institute of Science and Technology

College of Engineering and Technology


Department of Electronics and Communication Engineering
18ECC203J Microprocessor, Microcontroller &
Interfacing Techniques Lab
Fifth Semester, 2021-22 (Odd semester)

Name : Swagata Mandal

Register No. : RA1911004010652

Day / Session : 1/ hour 3-4

Venue : Online (Google Meet)

Title of Experiment : Data Transfer and Logical Operation using 8086

Date of Conduction : 14/07/2021

Date of Submission : 27/07/2021

Max. Marks
Particulars
Marks Obtained
Pre-lab 5
Lab Performance 10
Post-lab 15
Total 30

REPORT VERIFICATION

Date :

Faculty Name : Mrs. A Bhargavi Haripriya

Signature :
Experiment 1: Data transfer and Logical operation using 8086

1.1 Introduction:
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 store them in a memory location.
1.2 Hardware Requirement:
The 8086 Microprocessor kit, Power Supply.
1.1 Program Logic:
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 high. Hence to achieve the above objective, AND
with 0F0F.
The logical OR of a bit with procedure a result of 1. Hence bits can be set selectively by OR-ing the
particular bit with a 1.
Program 1(a)

ADDRESS MNEMONICS OPCODE

07100 MOV AX, [1100h] A1,00,11

07103 AND AX,0F0Fh 25,0F,0F

07106 MOV [1200h], AX A3,00,12

07109 HLT F4

Observation

IN PUT DATA OUT PUT DATA


ADDRESS ADDRESS
1100 12 1200 02
1101 25 1201 05

Program 1(b)

ADDRESS MNEMONICS OPCODE

07100 MOV AX, 0000h B8,00,00

07103 OR AX,0F0Fh 0D,0F,0F

07106 MOV [1200h],AX A3,00,12

07109 HLT F4

Observation
OUT PUT DATA
ADDRESS
1200 0F

1201 0F

1.1 Outputs

AND:
OR:
XOR:
NOT:
1.2 Pre-LabQuestions
1. Difference between Microprocessor & Microcontroller?
2. Define BUS and give the classification of Buses
3. How the Microprocessors can be categorized?
1.3 Post Lab Questions
1. Calculate the physical address for the given data. DS=1000h, BP=1234h
2. Initialise register CX to value FFFF and register AX to value 0000. Write a program to exchange
the content of both these registers.
3. Write a program to find the ones complement of FE27 and store it in memory location 1400.
4. What is the purpose of HLT instruction?
5. What happens if the result is greater than 16bit?
1.4 Results and Conclusion
Thus, the registers, instruction sets, data transfer operation and logical operation of 8086 by using AND, OR in
the given two 16-bit numbers and store them in a memory location was experimented.

You might also like