COM353 Lab1 Lab Sheet
COM353 Lab1 Lab Sheet
COM353 Lab1 Lab Sheet
Microprocessors Laboratory
Gediz University
Computer Engineering Department
LAB1:
Assembling, editing, linking, and executing Assembly code examples using
Emu8086
0 anian
]nzMy inteM[
Gediz University
COM353 Microprocessors Laboratory
NAME: __________________
DATE: __________
EMU8086 installation
EMU8086 environment
Lab Outcomes :
Practice 8086 Emulator
Gediz University
COM353 Microprocessors Laboratory
The compile button on the taskbar starts assembling and linking of the source file. A report
window is opened after the assembling process is completed. Figure 2 shows the emulator
of 8086 which gets opened by clicking on emulate button
Gediz University
COM353 Microprocessors Laboratory
Procedure:
1. Please, first , do whole calculations manually.
2. Choose Math and specify Base Convertor in emu8086.
3. Enter one of the numbers like in the Figure 3.
Gediz University
COM353 Microprocessors Laboratory
Procedure:
1. Please, first , do whole calculations manually.
2. Choose Math and specify Multi Base Calculator in emu8086.
3. Enter the expression like in the Figure 4.
Gediz University
COM353 Microprocessors Laboratory
4. Please compare your results with the results base convertor produced. Is it same or not ?
Please explain clearly.
In this part, we will identify the x86 arithmetic instructions and examine a program which will
perform the following arithmetic operations:
Gediz University
COM353 Microprocessors Laboratory
Calculate :
Procedure:
1. Choose New and specify COM template in emu8086.
2. Enter the following code to the editor:
3. Start emulation by clicking the emulate button on the toolbar. A new emulator window will
appear.
4. Single-step the program codes by pressing the single step button on the toolbar of the
emulator window.
5. Each time after pressing the single step button, check and record down the contents of AX
and BX registers in Table 1
Table 1
6. Using a calculator, calculate the answer for the above arithmetic operations
Gediz University
COM353 Microprocessors Laboratory
Exercise - 2
In this example, we will develop a program to perform the following arithmetic operations:
Table 2
6. Using a calculator, calculate the answer for the above arithmetic operations: ..
Is it the same as the final answer in the AX register? .[3]
Part 5: Conclusion
Please express what you learn with this laboratory work with at most one paragraph.
Gediz University
COM353 Microprocessors Laboratory
RESOURCES :
1- Assembling, editing, linking, and executing assembly language programs
using Emu8086 and MASM , University of Jordan
Retrieved on September, 2013 from
http://fetweb.ju.edu.jo/cpe/CoursesAndLabs/MicroprocessorLab/experiment2Fall%202009%202010.pdf