Name : Roll no Date of experiment :
Running The Emulator (emu8086) Intro 8086 Microprocessor Emulator, also known as EMU8086, is an emulator of the program 8086 microprocessor. It is developed with a built-in 8086 assembler. This application is able to run programs on both PC desktops and laptops. This tool is primarily designed to copy or emulate hardware. These include the memory of a program, CPU, RAM, input and output devices, and even the display screen. There are instructions to follow when using this emulator. It can be executed into one of the two ways: backward or forward. There are also examples of assembly source code included. With this, it allows the programming of assembly language, reverse engineering, hardware architecture, and creating miniature operating system (OS). The user interface of 8086 Microprocessor Emulator is simple and easy to manage. There are five major buttons with icons and titles included. These are “Load”, “Reload”, “Step Back”, “Single Step”, and “Run”. Above those buttons is the menu that includes “File”, “View”, “Virtual Devices”, “Virtual Drive”, and “Help”. Below the buttons is a series of choices that are usually in numbers and codes. At the leftmost part is an area called “Registers” with an indication of either “H” or “L”. The other side is divided into two, which enables users to manually reset, debug, flag, etc. What is 8086 emulator emu8086 is an emulator of Intel 8086 (AMD compatible) microprocessor with integrated 8086 assembler and tutorials for beginners. Emulator runs programs like the real microprocessor in step-by-step mode. it shows registers, memory, stack, variables and flags.
-
Download and install emu8086 (www.emu8086.com) It is usually installed in C:\EMU8086 subfolder in the “Windows” directory
-
Run emu8086 icon (on the desktop or in the c:\EMU8086 folder of window) It has green color
-
write the code for the appropriate program for ADDITION,SUBTRACTION, MULTIPLICATION, DIVISION operations
-
Compile the program and check for the errors
-
Run (once there is no syntax error)
-
Click OK to see/view the output of your program on the Emulator screen.
-
After running the program, another menu screen will be displayed, where you have the option to “View” symbol table,
- Click on emulate to start emulation
- If no errors are found click on run the program and check the status of various flags in the flags tab as shown below
org 100h
MOV SI,1200h;
MOV CL,00h;
MOV AL,04H;
MOV BL,05H;
ADD AL,BL;
JNC L1;
INC CL;
L1:MOV [SI],AL;
MOV [SI+2],CL;
HLT;
org 100h
MOV SI,1200h;
MOV CL,00h;
MOV AL,06H;
MOV BL,04H;
SUB AL,BL;
JNC L1;
NEG AL;
INC CL;
L1:MOV [SI],AL;
MOV [SI+1],CL;
HLT;
org 100h
MOV SI,1200h;
MOV CL,00h;
MOV AL,13H;
MOV BL,03H;
MUL BL;
MOV [SI],AL;
MOV [SI+1],AH;
HLT;
org 100h
MOV SI,1200h;
MOV CL,00h;
MOV AL,40H;
MOV BL,04H;
DIV BL;
MOV [SI],AL;
MOV [SI+1],AH;
HLT;
Thus, a program is executed on ALP for the fundamental arithmetic and logical operations.