GithubHelp home page GithubHelp logo

assembly-like-interpreter-as-cd-project's Introduction

Compiler-Designing-Project

Introduction: - As we know Interpreter is a program, which executes instructions written in a particular format line by line. Therefore, we have made an interpreter written in python3 , which interprets a code written in a language similar to assembly language used in microprocessor 8085.The language description will be further discussed in the report .We can perform almost every function that is included in microprocessor 8085 but instead of hexadecimal code, it takes input in decimal numbers .this interpreter not only executes the instructions but also helps to find the error like incorrect number of argument, or incorrect arguments, etc.

registers={'01': 0, '02': 0, '03': 0, '04': 0, '05': 0, '06': 0}

commands={ '101': 'print', '102': 'add', '103': 'sub', '104': 'mul', '105': 'div', '106': 'mod', '107': 'inc', '108': 'dec', '109': 'band', '110': 'bor', '111': 'bxor', '201': 'and', '202': 'or', '205': 'equal', '206': 'gt', '207': 'lt', '208': 'gte', '209': 'lte', '210': 'cmp', '301': 'mov', '302': 'mvi', '304': 'sta', '401': 'jmp', '402': 'jt', '403': 'jf', '501': 'push', '502': 'pop', '100': 'hlt', '200': 'nop', '400': 'inp' }

assembly-like-interpreter-as-cd-project's People

Contributors

mrdixitjain avatar

Watchers

 avatar

Forkers

saurabh98gupta

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.