Introduction To EMU

17
Creating & Running a Program Using Emulator

description

Introduction To EMU

Transcript of Introduction To EMU

Page 1: Introduction To EMU

Creating & Running a Program

Using Emulator

Page 2: Introduction To EMU

Programming Steps

2

Assemble source program

Editor

Assembler

Linker

.EXE file

.OBJ file

.ASM file

Create source program

Link object program

Page 3: Introduction To EMU

How to Open? Go To Start Menu Find emu8086 in Programs OR Double click following icon on your desktop:

3

Page 4: Introduction To EMU

4

Click Quick Start Tutor & read “Where To Start”

Page 5: Introduction To EMU

5

2. Explore menu options like File, Edit, ASCII Codes, Calculator, Converter etc.

1. Cancel this window

Page 6: Introduction To EMU

Open a Program from Examples

6

Page 7: Introduction To EMU

7

Program loaded in Editor

Imp: An Assembly Language program is saved with .ASM extension

Page 8: Introduction To EMU

How to change Output Directory

8

Uncheck this check box

Browse path where executable file will be saved then Click Ok button

Page 9: Introduction To EMU

How To Run Program

9

Click Emulate Button

Page 10: Introduction To EMU

10

Page 11: Introduction To EMU

11

Registers Logical Address

Page 12: Introduction To EMU

12

Single Step: To execute instruction one by one i.e. stop after each instruction

Run: To run complete program

Explore what these buttons display!

Page 13: Introduction To EMU

How To Create a New File

13

Step 1: Go to New

Step 2: Click Cancel Button

Page 14: Introduction To EMU

14

Step 3: Write your code

Page 15: Introduction To EMU

15

Step 4: Save your code

Write filename then Click Save Button

Page 16: Introduction To EMU

16

Step 5: Emulate Program

Step 6: Execute instructions step by step & observe changes in register

Page 17: Introduction To EMU