rv wrapper

This commit is contained in:
mii
2023-06-30 13:30:40 +00:00
parent 9ca131ea34
commit bfc0c294d0
7 changed files with 148 additions and 3 deletions

13
examples/simple.rs Normal file
View File

@ -0,0 +1,13 @@
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]
);
}