Create README.md

This commit is contained in:
mii8080
2023-06-30 22:35:55 +09:00
committed by GitHub
parent bfc0c294d0
commit 7c8e385ece

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# Rust bindings for RV
Safe bindings for the [RV](https://github.com/mnurzia/rv).
# Example
```rust
use rsrv::rv::*;
fn main() {
let cpu = RV::new(0x10000, vec![0x02A88893, 0x00000073]);
while RV::step(cpu) != RV_EECALL {}
println!(
"Environment call @ {:08x}: {}",
RV::get_pc(cpu),
RV::get_r(cpu)[17]
);
}
```