Вы находитесь на странице: 1из 10

DE LA SALLE LIPA

COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING


ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL

De La Salle Lipa
1926 J.P. Laurel, Mataas na Lupa, Lipa City
Department of Electrical Engineering

Experiment # 2
Familiarization with Emulator 8086 and Input / Output
Operations

Name: Inoceno, Ivygeil Nicole N. DOP: 08/27/19


Course and Year: BSEE – 5th Year DOS: 09/03/19
Subject and Section: Microsy* - V5B

Grade

Engr. Ramon P. Flores IV


Instructor
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL
II. Objective
At the end of this session, the students must be
able to:
1.Familiarize with the Emulator 8086 and Input /
Output Operations
2.Use the DOS interrupt (INT 21H) function calls
to access the keyboard and video display;
3.Create assembly program using Input and
Output Operations
III. Theory
8086 Microprocessor Emulator, also known as
EMU8086, is an emulator of the program 8086
microprocessor. It is developed with a built-in 8086
assembler. This application is able to run programs
on both PC desktops and laptops. This tool is
primarily designed to copy or emulate hardware.
These include the memory of a program, CPU, RAM,
input and output devices, and even the display
screen.

There are instructions to follow when using this


emulator. It can be executed into one of the two ways:
backward or forward. There are also examples of
assembly source code included. With this, it allows
the programming of assembly language, reverse
engineering, hardware architecture, and creating
miniature operating system (OS).
The user interface of 8086 Microprocessor Emulator
is simple and easy to manage. There are five major
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL
buttons with icons and titles included. These are
“Load”, “Reload”, “Step Back”, “Single Step”, and
“Run”. Above those buttons is the menu that includes
“File”, “View”, “Virtual Devices”, “Virtual Drive”, and
“Help”. Below the buttons is a series of choices that
are usually in numbers and codes. At the leftmost part
is an area called “Registers” with an indication of
either “H” or “L”. The other side is divided into two,
which enables users to manually reset, debug, flag,
etc.

IV. Equipment and Materials Used


Pc/s Description Manufacturer Ranges
Edition:
Windows 10
1 Laptop Lenovo
OS build:
18362.295
8086 Version:
1 Microproces EMU8086 4.08
sor Emulator
1 Lab Manual From Canvas 7 Pages
V. Schematic Diagram

VIII. Final Data Sheet


1. Compile and run program 1
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL

2.

Replace the line :


MOV DX, OFFSET MESSAGE
By: LEA DX, MESSAGE
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL

3. Then repeat step 1, what do you notice?

4. Compile and run program 2


DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL

5. After running the program, notice here the effect


of the characters 0DH and 0AH at the end of the
line containing: MESSAGE. What is your
conclusion?
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL
6. Notice also the effects of the function calls 01H,
08H.
7. Write down all your conclusions.

LABORATORY ASSIGNMENT:
Write an assembly language program that prompts
you to enter a password of 3 characters in length.
The password should not be echoed to the screen.
The program then displays your name and ID
number on the screen. Submit your work at the end
of the lab.
Save your work as LABASS2.asm
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL

IX. Discussion

Input and Output (I/O) in 8086 Assembly


Language
Each microprocessor provides instructions for I/O with
the devices that are attached to it, e.g. the keyboard
and screen. The 8086 provides the instructions in for
input and out for output. These instructions are quite
complicated to use, so we usually use the operating
system to do I/O for us instead.

The operating system provides a range of I/O


subprograms, in much the same way as there is an
extensive library of subprograms available to the C
programmer. In C, to perform an I/O operation,
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL
we call a subprogram using its name to indicate its
operations, e.g. putchar(), printf(), getchar(). In
addition we may pass a parameter to the subprogram,
for example the character to be displayed by putchar()
is passed as a parameter e.g. putchar(c).

In assembly language we must have a mechanism to


call the operating system to carry out I/O.

In addition we must be able to tell the operating


system what kind of I/O operation we wish to carry
out, e.g. to read a character from the keyboard, to
display a character or string on the screen or to do
disk I/O.

X. Conclusion

In creating a program there are many functions to


be used to get the desired output. Each function
represents different effect, in the exercises given it
was determined that the 01H reads the input
characters and display it on the screen, the 02H and
06H display the characters, the 08H reads the input
characters but without displaying it on the screen,
09H display the characters that has a dollar sign at
the end and the 0AH reads the input characters.

XI. Preliminary Data Sheet


DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
MICROSY* – MICROPROCESSOR SYSTEM
LABORATORY EXPERIMENT MANUAL

Вам также может понравиться