项目作者: shivang8

项目描述 :
8085 Microprocessor Simulator is a desktop application to emulate the functionality of 8085 Microprocessor.
高级语言: C++
项目地址: git://github.com/shivang8/8085-Microprocessor-Simulator.git
创建时间: 2017-08-21T09:41:57Z
项目社区:https://github.com/shivang8/8085-Microprocessor-Simulator

开源协议:

下载


8085-Microprocessor-Simulator

Objective: Design and Develop a desktop Application to emulate the fuctionality of 8085 Microprocessor.

This microprocessor constains following instructions:

A. Load and Store:

  1. 1. MOV<br/>
  2. 2. MVI<br/>
  3. 3. LXI<br/>
  4. 4. LDA<br/>
  5. 5. STA<br/>
  6. 6. LHLD<br/>
  7. 7. SHLD<br/>
  8. 8. STAX<br/>
  9. 9. XCHG<br/>

B. Arithmetic:

  1. 1. ADD<br/>
  2. 2. ADI<br/>
  3. 3. SUB<br/>
  4. 4. INR<br/>
  5. 5. DCR<br/>
  6. 6. INX<br/>
  7. 7. DCX<br/>
  8. 8. DAD<br/>
  9. 9. SUI<br/>

C. Logical:

  1. 1. CMA<br/>
  2. 2. CMP<br/>

D. Branching:

  1. 1. JMP<br/>
  2. 2. JC<br/>
  3. 3. JNC<br/>
  4. 4. JZ<br/>
  5. 5. JNZ<br />

E. Extra:

An additional command SET is used to set data into memory location.

SYNTAX: SET <Memory Address>, <2 Byte Hexadecimal Data>

eg: SET 2500, FF

You can also use inbuilt debugger to debug your 8085 program. The debugger has following 6 functionality/ commands:

  1. 1. break or b <line number>: It will set breakpoint on given line number.<br/>
  2. Eg: `break 10 or b 10`<br/>
  3. 2. run or r : It will run the program until end of code or breakpoint is encountered.
  4. Eg: `run or r`<br/>
  5. 3. step or s : It will run the program one instruction at a time.
  6. Eg: `step or s`<br/>
  7. 4. print or p : It will print value of register, flags, current line number or memory location.<br/>
  8. To print value of register use print or p <Register>. Eg: `print A` or `p A`.<br/>
  9. To print value flag use print or p flag. Eg: `print flag` or `p flag`.<br/>
  10. To print current line number use print or p loc. Eg: `print loc` or `p loc`.<br/>
  11. To print value of memory location use print or p x<memory address>. Eg: `print x2000` or `p x2000.`<br/>
  12. 5. Quit or q : Quits the debugger.<br/>
  13. Eg: `quit` or `q`<br/>
  14. 6. help : It will show all the commands of the debugger.<br/>
  15. Eg: `help`<br/>

HOW TO RUN THE 8085 MICROPROCESSOR SIMUATOR

  1. Download and extract the files from this repository.
  2. Copy all files from src directory and paste this in its parent directory directly.
  3. Open command prompt/ terminal and set its current path to the directory where you have stored your files.
  4. Type make in the terminal or command prompt.
  5. This will create your executable file of the code named 8085.
  6. Now that everything is ready you can run your code by following methods:

    i.) To directly use the 8085 microprocessor simulator.
    1. Eg: `./8085`<br/>
    ii.) To use debugger pass —debugger as argument.
    1. Eg: `./8085 --debugger`<br/>
    iii.) You can also take input from file by passing the file name/path as argument.
    1. Eg: `./8085 input.asm`<br/>
    iv.) Or you can also both together by passing both as arguments together.
    1. Eg: `./8085 input.asm --debugger`<br/>

IF YOU ENCOUNTER ANY BUGS OR FOR ANY SUGGESTIONS REGARDING THE IMPROVEMENT OF THE 8085 MICROPROCESSOR SIMULATOR FEEL FREE TO CONTACT US:

Shivani Mittal - mittal.shivani@geu.ac.in

Shivang Srivastava - shivang.8@geu.ac.in