Code Monkey home page Code Monkey logo

assembly-to-machine-code-risc-v's Introduction

Assembly To Machine Code Translation

A C++ program which can convert a RISC – V assembly code to its corresponding Machine Code along with Data Memory. Here is the link for RISC – V simulator https://venus.cs61c.org/ . All conversion is based on formats present in RISC – V Reference Sheet available in Project.

Test Cases

Test Cases for several Programs such as Sorting, Factorial is provided in the project for better understanding.

Support

The Project currently supports all instructions available in format.txt file. Pseudo instructions such as Load Address and Load Word (due to data part) is also handled.

Built With/ Concepts Used

• C ++
• RISC – V (32-Bit Architecture)

How to build program (In Compiler)

• Type following
-> Place the code to translate in test.asm File
-> Compile A-to-M.cpp
-> Output will be produced in MCode.mc File
-> MCode.mc has Machine Code in Hexadecimal Form with Program Counter followed by Data Memory Part.

Built By

Kritagya Agarwal

assembly-to-machine-code-risc-v's People

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.