mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 21:35:02 +01:00
Zihintpause
This commit is contained in:
parent
b8d9f28059
commit
105706e862
3 changed files with 29 additions and 17 deletions
|
|
@ -105,10 +105,12 @@ impl IndexMut<Reg> for Emulator {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
pub struct Reg(pub u32);
|
||||
|
||||
impl Reg {
|
||||
pub const ZERO: Reg = Reg(0);
|
||||
|
||||
pub const RA: Reg = Reg(1);
|
||||
pub const SP: Reg = Reg(2);
|
||||
// arguments, return values:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue