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

De La Salle Lipa

College of Information Technology and Engineering


Electrical Engineering Department

Laboratory Exercise 2
Familiarization with Emulator 8086
And Input/Output Operations

Simpino, John Melo B. DOP: 09-11-18


BSEE – 5th Year DOS: 09-18-18
V5C - Microsy

Grade

Engr. Ramon P. Flores IV


Instructor
I. OBJECTIVES
At the end of this session, the students must be able
to:
1. Familiarize 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.

II. THEORY
Emulator 8086 is a windows based application for
assembly programming. It is an Integrated
Development Environment (IDE) that includes
advanced source editor and 8086 assembler.
Compared to other major assemblers like Borland’s
Turbo Assembler (TASM) and Microsoft Macro
Assembler (MASM), Emulator 8086 has a much
easier syntax and, but will still generate a program
that can be executed on any computer that runs 8086
machine code.
III. EQUIPMENTS AND MATERIALS USED
Pc/s Description Manufacturer Ranges
1 Emulator 8086 NA NA
1 Laptop Asus 100-240V

IV. SCHEMATIC DIAGRAM


V. DATA SHEET
1. Typed the program from the laboratory manual
then I compiled and ran it.

After running the program.

2. Input “MOV DX, OFFSET MESSAGE” by “LEA DX,


MESSAGE”. The output has no changes.
3. Execute the second program

After running the program, the emulator screen shows


nothing. I clicked “e” from the keyboard and it showed
the letter “e” as well as the message “ENTER A
CHARACTER”. Then, I clicked “w” from the keyboard
and the message “THE CHARACTER YOU TYPED
IS:” appeared as well as the letter that I typed.

4. Next, I accomplished the laboratory assignment


which asked us to make an assembly language
program that prompts the user to enter a password of
3 characters in length.
This is the screen after running the program.

I entered 3 characters from the keyboard and those


characters didn’t appear on the screen. You need to
type 3 characters, if 1 or 2 characters only, the name
and student number will not appear.
VI. DISCUSSION
On our last meeting, our instructor asked us to
perform our next experiment about emulator 8086.
We familiarize the environment and proceeded on our
laboratory work. First, we loaded a file from the help
menu containing a code entitled “Hello World!”. We
copied and pasted it to the emulator. We compiled
and ran it. The emulator screen appeared and it
displays “Hello, World!”. After that, we started our
laboratory assignment by trying first 2 programs from
our laboratory manual and assessed what happens in
the program. Then, we accomplished our laboratory
assignment and let our instructor checked our work.

VII. CONCLUSION
I therefore conclude that in familiarizing the
Emulator 8086 for putting an input you must start the
program with the command the title and the command
model small. You will also put all the data and the
codes needed for the program to run. Enable to run
the program you will click the compile button from the
menu bar of the emulator 8086 and save the file then
click run. There will be a command prompt window
that will show up the final code output for the
program. For the DOS interrupt the last program I
encode that needed to input any three letters enable
to create the output you wish to have. If you have
entered just one or two characters it will not display
anything means that you need to comply what is
needed.

You might also like