Practical Lab 3
Practical Lab 3
Practical#03
Setting environment of emulator: EMU8086
Objective :
Learn
Working some 8086-based Microprocessors applications on an emulator
Intuitively, what kind of applications can be done a 8086-based microprocessor
Learn how to:
Run opt-in programs in EMU8086
Lab Outcomes :
1- EMU8086
EMU8086 IDE
1 1
EMU8086 Source Editor
The source editor of EMU86 is a special purpose editor which identifies the 8086
mnemonics, hexadecimal numbers and labels by different colors as seen in Figure 1.
1 2
Figure 1. a) EMU8086 Source Editor, and b) assembler status report windows.
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
Look at ‘Code Examples’. In this part, we will run some sample codes prewritten. The simple
forward operation is enough to make them work. After opening one of the code samples, then
press ‘emulate’, then ‘run’. Also try these:
a) ‘traffic lights’
e) ‘stepper motor’
“a) 11001011b = ?
b) 4321h = ?
c) 57 = ? h
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.
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.
4. Please compare your results with the results “base convertor” produced. Is it same or not?
Please explain clearly.
Exercise - 2 :
In this part, do the following calculations both using EMU8086 and manually. Are the results same
for two?
Note that the followings are signed integers
a) (456)8 = (? )2.
b) 045FH = (?)
c) A27DH = (?)8
d) 110010112 = (?)H
Exercise - 3 :
In this part, evaluate the following calculations both using EMU8086 and manually. Are the results
same for two?
a) 01111h *0FFFFh - 0FFFFh
b) 00FFh + 0FF00h – 0001h * 10ABh
c) ABCDh - 1FF2h
d) 0255h + FDABh
Part 5: Conclusion
Please express what you learn with this laboratory work with at most one paragraph.
RESOURCES :
4- Honor Code,
http://www.davidson.edu/about/distinctly-davidson/honor-code