0% found this document useful (0 votes)
150 views6 pages

Lab Exp 1

The document introduces the microprocessor 8086 and its emulator EMU8086. Four programs were written in MASM assembly language to demonstrate different operations of the 8086 like moving data between registers and performing arithmetic. The assembly code was compiled into object code and run on an MTS-86C microprocessor trainer board connected to a PC. Testing showed that the emulator and microprocessor produced the same results for the programs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views6 pages

Lab Exp 1

The document introduces the microprocessor 8086 and its emulator EMU8086. Four programs were written in MASM assembly language to demonstrate different operations of the 8086 like moving data between registers and performing arithmetic. The assembly code was compiled into object code and run on an MTS-86C microprocessor trainer board connected to a PC. Testing showed that the emulator and microprocessor produced the same results for the programs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Title: Introduction to Microprocessor 8086.

Abstract:

Main purpose of this experiment was study about emulator EMU8086 and microprocessor
8086.Four codes are implementedwith EMU8086 to study it’s operation. After that it was
complied with MASM software. MASM converts source code to object code. The object code
was introduced to the microprocessor 8086 using MTS-86C.

Introduction:

As an introduction to the 8086 microprocessor the objective of the experiment was :

1. To understand the working principle of MTS-86C and MDA 8086.


2. Get familiarized with emulator EMU8086 by using a simple program to test its different
uses.
3. An introduction to segmented memory technology used by microprocessor 8086.

Equipments:

1. Microprocessor 8086 Trainer Board

2. EMU8086

3. PC having Intel Microprocessor

Precautions:

1. A PC with a standard Anti-Virus program installed should be used.

2. Errors should be avoided when typing source code in a text file.

Programs:

The following codes were written down in source code and the MASM software compiled and
gave an output of object code:

P1:Here ,AX=1234H ; BX=5678H; CX=1234H ; AX=5678H ; BX=1234H

Object code Source Code


CODESEGMENT
0000
ASSUME CS:CODE,
DS:CODE

MOV AX,1234H
0000 B8 1234
MOV BX,5678H
0003 BB 5678

MOV CX,AX
0006 8B C8
MOV AX, BX
0008 8B C3
MOV BX,CX
000A 8B D9

HLT
000C F4
CODE ENDS
000D
END
P2:Here ,AX=1234H; BX=5678H

Object code Source Code


CODE SEGMENT
0000
ASSUME CS:CODE,
DS: CODE

MOV AX,1234H
0000 B8 1234
MOV BX,5678H
0003 BB 5678
HLT
000CF4
CODE ENDS
000D
END
P3:Here ,BX=1234H ; CX=5678H ; BX=(1234+5678)H=68ACH

Source Code
Object code
CODE SEGMENT
0000
ASSUME CS:CODE,
DS:CODE

MOV BX,1234H
0000 BB 1234
MOV CX, 5678H
0003 B9 5678
ADD BX,CX
0006 03 D9
HLT
000E F4
CODE ENDS

END

P4:Here ,BX=1234H ; CX=5678H ; CX=(5678-1234)H=4444H

Object code Source Code


CODE SEGMENT
0000
ASSUME CS: CODE,
DS:CODE

MOV BX,1234H
0000 BB 1234
MOV CX, 5678H
0003 B9 5678
SUB CX,BX
0006 2B CB
HLT
000E F4
CODE ENDS
000F
END

Discussion:a

1. All the codes were written properly.


2. The instructions were followed carefully.
3. The simulated data has been checked twice and those codes as well.
4. Sometimes the emulator failed to simulate the codes.

Conclusion:

All codes are written in microprocessor 8086 and MTS-86C and we got the same results.

You might also like