Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deadsy/rvda
RISC-V Disassembler
https://github.com/deadsy/rvda
disassembler go golang risc-v riscv
Last synced: 28 days ago
JSON representation
RISC-V Disassembler
- Host: GitHub
- URL: https://github.com/deadsy/rvda
- Owner: deadsy
- License: mit
- Created: 2020-03-21T18:39:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T01:04:44.000Z (over 1 year ago)
- Last Synced: 2024-08-03T23:30:36.930Z (4 months ago)
- Topics: disassembler, go, golang, risc-v, riscv
- Language: Go
- Size: 35.2 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - rvda - V Disassembler (Repositories)
README
[![Go Report Card](https://goreportcard.com/badge/github.com/deadsy/rvda)](https://goreportcard.com/report/github.com/deadsy/rvda)
[![GoDoc](https://godoc.org/github.com/deadsy/rvda?status.svg)](https://godoc.org/github.com/deadsy/rvda)# rvda
RISC-V Disassembler## usage
### code
```
isa, _ := rvda.New(32, rvda.RV32gc)
fmt.Printf("isa: %s\n", isa)addr := uint(0xdeadbeef)
ins := uint(0x483f8297)
da := isa.Disassemble(addr, ins)fmt.Printf("decode: %#v\n", da)
fmt.Printf("string: %s\n", da)
```### output
```
isa: RV32 ext "acdfim"
decode: &rvda.Disassembly{Addr:0xdeadbeef, AddrLength:0x20, Ins:0x483f8297, InsLength:0x4, Assembly:"auipc t0,0x483f8"}
string: deadbeef: 483f8297 auipc t0,0x483f8
```