Giter Club home page Giter Club logo

riscv-assembler-python's Introduction

Assembler

An assembler for the 32-bit RISC-V instruction set.

In order to adapt to the optional extension features of RISC-V, the assembler can configure the supported extensions in the variable cmd_set in main.py. The currently supported extensions include I, M, F, D, and C. When selecting the C extension, the assembler will automatically compress the compressible instructions.

The assembler supports parsing aliases for general registers, comment statements (starting with #), and jump markers (on a separate line and ending with :).

Remaining issues:

  • For the convenience of parsing, there are some differences between the assembly program of this project and the standard assembly syntax. In the assembly statement of this project, each part is separated by any number of spaces, and the syntax of offset(rs1) has been changed to rs1 offset.
  • There is still a bug with the compression instruction, which has been explained in the program and will not be repeated here.

riscv-assembler-python's People

Contributors

sirius1232 avatar

Watchers

 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.