Giter Club home page Giter Club logo

8085-emulator's Introduction

8085 Emulator

8085 emulator implements the instruction set provided by the 8085 microprocessor and allows running assembly programs for that architecture.

Purpose

8085 emulator is intended to be used as learning resource as it will provide documentation and guide for how to write programs on 8085 instruction set.

Design Process

CLI App, Assembler, Emulator and Disassembler

Overall design procedure for 8085 emulator

Building the project

Web Application

  • clone this project: https://github.com/voidash/8085-Emulator.git
  • cd 8085-wasm
  • ./build-wasm.sh
  • cd ../frontend/
  • npm install
  • npm run build

CLI Application

  • clone this project: https://github.com/voidash/8085-Emulator.git
  • cargo build --release

How to use CLI application

$ ./emulator --help
emulator 0.1.0

USAGE:
    emulator [OPTIONS] [FILENAME]

ARGS:
    <FILENAME>    if filename is not passed then the program will run on interpreted mode

OPTIONS:
    -a, --assemble           pass filename and generate assembly code
    -d, --disassemble        pass .asm file and disassemble them
    -e, --emulate            emulate 8085 and write its state and memory values to file
    -h, --help               Print help information
    -i, --interpreted        run on interpreted mode
    -o, --output <OUTPUT>    If output is not provided then the program will assume writing to
                             stdout
    -V, --version            Print version information
  • $ emulator --interpreted to run on interpreted mode
			  8085 Prompt > mvi a, 45h
				mvi a, 69
				[62, 69]
				8085 Prompt > mvi b, 55h
				mvi b, 85
				[6, 85]
				8085 Prompt > add b
				add b
				[128]
				8085 Prompt > show state
				 

				|-------------|-------------|
				|accumulator: 9a      | 
				|-------------|-------------|
				|b: 55        | c: 0        | 
				|-------------|-------------|
				|d: 0         | e: 0        | 
				|-------------|-------------|
				|h: 0         | l: 0        | 
				|-------------|-------------|
				|stack pointer:  0          | 
				|-------------|-------------|
				|program counter:  5        | 
				|-------------|-------------|
				|s: true,z:false,AC:false,P:true,CY:false| 
				|-------------|-------------| 
  • $ emulator --assemble filename.asm --output filename.dsm to assemble the file
  • $ emulator --emualate filename.asm to emulate the assembled file
  • $ emulator --disassemble filename.dsm to disassemble the assembled file

Snapshots

8085EmulatorUI UI of 8085Emulator

8085-emulator's People

Contributors

voidash avatar aadarshadhakalg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.