Code Monkey home page Code Monkey logo

rizwan3d / sharpriscv Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 4.0 12.21 MB

SharpRISCV is an implementation of RISC-V assembly in C#. First RISC V Assembly that build windows executable file

Home Page: https://rizwan3d.github.io/SharpRISCV/

License: MIT License

C# 86.61% Assembly 1.12% HTML 6.60% CSS 2.12% JavaScript 2.20% Batchfile 0.03% Python 1.32%
risc-v riscv riscv-asm riscv-assembly riscv-emulator riscv32 windows riscv-windows csharp

sharpriscv's Introduction

SharpRISCV

SharpRISCV is an implementation of RISC-V assembly in C#. First RISC V Assembly that build windows executable file.

Write RISC-V ASM code in your browser

RISC-V Virtual Machine

You can use RISC64-VM to run elf file on x86-x64 pc on linux and windows.

Desktop Exectuable

Output Image

Usage

Build Bin file

SharpRISCV.exe -i file.s -o out.o -p bin

Build Windows EXE

SharpRISCV.exe -i file.s -o out.exe -p pe

Console Output

SharpRISCV.exe -i file.s -o console

Build Linux ELF

SharpRISCV.exe -i file.s -o out.o -p elf

Build HEX

SharpRISCV.exe -i file.s -o out.o -p hex

Supported Instruction

  1. R Type
  2. U Type
  3. I Type
  4. B Type
  5. I Type
  6. S Type
  7. J Type

To Do

  1. Gererate Console output.
  2. Lable Support.
  3. Read form file (*.s).
  4. Ignore Comments
  5. Generate PE (Even windows cannot support RISC V) AKA exe file - Virustotal's Details
  6. Generate Hex (FOR MCUs)
  7. Generate Hex (FOR MCUs) on Web Browser
  8. Generate Windows PE on Web Browser - Virustotal's Details
  9. Generate ELF - Virustotal's Details
  10. Generate Xilinx
  11. Generate Altera
  12. Generate Verilog

Assembler Directives

  1. .text
  2. .data
  3. .bss
  4. .space
  5. .string and .asciz
  6. .word
  7. .%hi
  8. .%lo

UesFull links and tools:

  1. RISC-V Instruction Formats
  2. The RISC-V Instruction Set Manual PDF Page 116
  3. RISC-V ASSEMBLY LANGUAGE Programmer Manual
  4. RISC-V Instruction Encoder/Decoder
  5. PE file format - Introduction
  6. Intel HEX
  7. PE-bear for inspecting Windows PE (Portable Executable) files. - Download from here; I have added RISC-V machine code detection
  8. ELF file viewer/editor for Windows, Linux and MacOS

Support:

rizwan3d




PayPal

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.