EEE 401(01)

7
East West University Department of Electrical and Electronic Engineering [Study of operating commands and functions of EMU8086 software] Submitted by [Md. Iqbal Hossain] [2008-3-80-014] Abstract The main aim of this lab is to introducing one person with the assembly language operating system by using EMU8086 (The Microprocessor Emulator) software system . By doing this lab a person will gather the knowledge how to move a value/character in a register, write a program, execute a program and different applications of EMU8086 (The Microprocessor Emulator) software system. This lab contains with some logical operations like summation, division, multiplication, power calculation etc and a particular problem (equation) is done in different ways like how a person can do arithmetic operations by using one/ two or three resistors. How a person can see memory address and how to read a memory content also included in this lab. East West University 1 EEE401 Lab EEE Department

description

ewueee401

Transcript of EEE 401(01)

Formal Lab Report Template

East West UniversityDepartment of Electrical and Electronic Engineering[Study of operating commands and functions of EMU8086 software]Submitted by[Md. Iqbal Hossain]

[2008-3-80-014]AbstractThe main aim of this lab is to introducing one person with the assembly language operating system by using EMU8086 (The Microprocessor Emulator) software system . By doing this lab a person will gather the knowledge how to move a value/character in a register, write a program, execute a program and different applications of EMU8086 (The Microprocessor Emulator) software system.This lab contains with some logical operations like summation, division, multiplication, power calculation etc and a particular problem (equation) is done in different ways like how a person can do arithmetic operations by using one/ two or three resistors. How a person can see memory address and how to read a memory content also included in this lab.

Date of Submission: June 14, 2012

Date of Performance: June 07, 2012

Course Instructor : Tahsin KamalIntroduction Experiments type: This experiment deals with basic operating system of assembly language using EMU8086 (The Microprocessor Emulator) software system. Expectation: Anyone can expect to learn how to implement an assembly language and arithmetic operation in EMU8086 (The Microprocessor Emulator) software system. Experiments task: In the lab a person will perform summation of two integers by using 1,2 & 3 resisters, memory address and both memory address plus resister. Required knowledge: Before doing this experiment anyone should know

What are the different command keys of assembly language. What are the operations of those keys. Configuration of MTS-88C system board. Decimal, Hexa-decimal, Octal conversation of a real number. How to store a value in register and memory address.

Uses in Practical: If anyone know assembly language operations it will helps to design Microprocessor and memory of a microcomputer.Experimental Results1. Program that will calculate the sum of two integers residing in registers, output also will in registersMemory address ----- Assembly code ----- resultmov ax,1A1A

mov bx,1111

mov cx,bx1A

add cx,ax2B

2. Program that will calculate the sum of two integers residing one in register and another in memory, output also will in registersMemory address ----- Assembly code ----- result

0500

mov [0500],1A1A

0400

mov bx,11 11

0403

add bx,[0500] 2B3. Program that will calculate the sum of two integers residing one in memory, output also will in memoryAssembly code ----- result

mov ax, [0500]1A

mov bx,[0501] 11

add [0502],ax 1Aadd [0502],bx

2BThe code that will calculate the square of my East-west id:

My East-west id is: 014 = 0D(H)Code Resultmov ax,14d

0E

mul ax C4

mov cx,ax C4

Discussion of ResultsThis experiment shows the results of summations which is fully similar to theory calculation and there is no deviations.ConclusionsThis experiment shows the results of summations of two integer by using resister, memory address and both memory address plus resister for a single assembly code so anyone can learn about the operating system of a system board specially how to add register content with resister content, register content with memory content and memory content with memory content.AcknowledgmentsI would specially like to thank my course instructor Mrs. Tahsin kamal who helped me to complete this experiment. Then all of my group members who performed the experiment with me and the lab officer and the lab stuff for helping in the whole procedure.

References1. M. Rafiquzzaman, Fundamentals of Digital Logic and Microcomputer Design, Fifth Edition, John Wiley & Sons, Inc., Hoboken, New Jersey, 2005.

2. Wikipedia.com

3. Google.com

Appendix A: Emu8086 OverviewEmu8086 combines an advanced source editor, assembler, disassembler, software emulator (Virtual PC) with debugger, and step by step tutorials. This program is extremely helpful for those who just begin to study assembly language. It compiles the source code and executes it on emulator step by step. Visual interface is very easy to work with. You can watch registers, flags and memory while your program executes. Arithmetic & Logical Unit (ALU) shows the internal work of the central processor unit (CPU). Emulator runs programs on a Virtual PC, this completely blocks your program from accessing real hardware, such as hard-drives and memory, since your assembly code runs on a virtual machine, this makes debugging much easier. 8086 machine code is fully compatible with all next generations of Intel's microprocessors, including Pentium II and Pentium 4, I'm sure Pentium 5 will support 8086 as well. This makes 8086 code very portable, since it runs both on ancient and on the modern computer systems. Another advantage of 8086 instruction set is that it is much smaller, and thus easier to learn. Emu8086 has a much easier syntax than any of the major assemblers, but will still generate a program that can be executed on any computer that runs 8086 machine code; a great combination for beginners! Note: If you don't use Emu8086 to compile the code, you won't be able to step through your actual source code while running it.

Where to start?

1. Start Emu8086 by selecting its icon from the start menu, or by running Emu8086.exe.

2. Select "Samples" from "File" menu.

3. Click [Compile and Emulate] button (or press F5 hot key).

4. Click [Single Step] button (or press F8 hot key), and watch how the code

file:///D|/Heep/Assem/SW/Emu8086v3.07/Help/start_unframed.html (1 of 2)01/05/2006 12:27:55

Overview of Emu8086

is being executed.

5. Try opening other samples, all samples are heavily commented, so it's a

great learning tool.display, and traffic lights intersection. This devices can be modified and cloned, their source code is available.

You can design and test your own virtual devices programmed in assembly language (or any other language) with this emulator.

The program opens letting you begin a new project, view some code examples, open the Quick Start Tutor or opening Recent Files.

After programming your application you can compile it, save the binary file and run it.PAGE East West University2EEE401 LabEEE Department