Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions mips-lib/src/components/mips_dm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,20 @@ impl Component for DataMem {
Err(_) => ret,
}
}
fn un_clock(&self, simulator: &Simulator) {
let address: u32 = simulator
.get_input_value(&self.address_input)
.try_into()
.unwrap();
#[cfg(feature = "gui-egui")]
self.mem_view
.borrow_mut()
.set_dynamic_symbol("DM_ADRS", address);
}
// resets DM_ADRS to address 0,
// as that is what it initializes to when simulator is compiled
fn reset(&self) {
#[cfg(feature = "gui-egui")]
self.mem_view.borrow_mut().set_dynamic_symbol("DM_ADRS", 0);
}
}
Loading