mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 21:35:02 +01:00
start c
This commit is contained in:
parent
9ad5785106
commit
dd2e4001fd
5 changed files with 130 additions and 27 deletions
|
|
@ -156,9 +156,6 @@ impl Emulator {
|
|||
}
|
||||
|
||||
fn set_pc(&mut self, pc: u32) -> Result<(), Status> {
|
||||
if pc % 4 != 0 {
|
||||
return Err(Status::UnalignedPc(pc));
|
||||
}
|
||||
self.pc = pc;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue