Files
rsrv/examples/simple.rs
2023-06-30 13:30:40 +00:00

14 lines
250 B
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]
);
}