Sunteți pe pagina 1din 9

HOW TO USE ENVI85b 8085 SIMULATOR

I. Prerequisites

1. Download envi85b.exe (http://www.cse.lehigh.edu/~edk/envi85b.exe) and copy the file to the folder


C:\ENVI85

2. Download and install DOSBox.


(https://sourceforge.net/projects/dosbox/files/latest/download)

3. Open DOSBox 0.74 Options (It will open in a notepad file).


i. Scroll to the end.
ii. Make sure the following lines are present
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c c:\envi85
II. Running ENVI85b

1. Run DOSBox.exe. You should get the following windows.

2. Type C: at the prompt and press Enter.

The prompt Z:\> should change to C:\>


3. Type envi85b.exe at the prompt and press Enter.

4. You should get the following screen. This is the ENVI85b simulator.
III. Simulating 8085 Assembly language programs.

1. Enter the filename of your program. (Size of the filename can be of maximum 8 characters).

2. Type ADD8BIT.ASM and press Enter. You should get the following Editor window.
3. Type your assembly language program (in mnemonics) as shown below.

i. Any assembly language program has to start with the statement


ORG <program starting address> and has to terminate with the statement END.

The starting address of this program is 4000H, i.e.,

Address Opcodes Mnemonics


4000 3E,32 MVI A,32H
4002 06,24 MVI B,24H
4004 80 ADD B
4005 32,60,41 STA 4160H
4008 76 HLT

ii. Press F2 to save your program.


4. Press F5 to compile. At the next pop-up, type Y and press Enter.

5. Press F6 to run. At the next screen, enter your program starting address (4000H) and press Enter.

You will get a blank screen.


6. Press F5 to display all the registers and memory locations. (Register Window)

[1] Here, the program as assembled is shown from the starting address 4000H

[2] Here, the current value of the Registers is shown in Decimal (D), Hexadecimal (H) and Binary
(Bin) format.

[3a] Here, the content of memory location from 4000H to 400FH is shown.

[3b] Here, the content of memory locations from 4010H to 401FH is shown.

[4] To see the contents of any memory location, enter the particular address at the cursor. As our
result is stored in memory location 4160H, we will enter this address later on.
7. Press F3 to execute the first instruction (MVI A, 32H). After the execution, the content of register
A will be updated accordingly, i.e., [A]=32H.

Continue pressing F3 till you reach HLT instruction. Do not execute the HLT instruction. Executing
HLT instruction will bring you back to Editor Window. (Step III.3)

The whole program (except HLT instruction) has been executed and the result has been stored in the
memory location 4160H.
8. Type 4160H at the Cursor keys, memory address or label => and press Enter.

The content of the memory location 4160H will be displayed.

9. Press F10 to quit and go back to Editor Window.

10. Press F10 again to exit ENVI85b Simulator.

S-ar putea să vă placă și