SharpRISCV icon indicating copy to clipboard operation
SharpRISCV copied to clipboard

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

SharpRISCV

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

Featured on RISC-V official website news section on home page.

Try in Web Browser

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. [X] R Type
  2. [X] U Type
  3. [X] I Type
  4. [X] B Type
  5. [X] I Type
  6. [X] S Type
  7. [X] J Type

To Do

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

Assembler Directives

  1. [X] .text
  2. [X] .data
  3. [X] .bss
  4. [X] .space
  5. [X] .string and .asciz
  6. [X] .word
  7. [X] .%hi
  8. [X] .%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