Highlighting lines and stepping through code

This commit is contained in:
2023-01-27 01:25:01 -06:00
parent b602ae703f
commit 3d7a19d1bd
3 changed files with 52 additions and 9 deletions
+14
View File
@@ -112,6 +112,8 @@ impl WasmCPU {
self.0.dp().into()
}
pub fn halted(&self) -> bool { self.0.halted() }
pub fn set_pc(&mut self, val: u32) {
self.0.set_pc(Word::from(val))
}
@@ -127,4 +129,16 @@ impl WasmCPU {
self.set_pc(0x400)
}
pub fn reset(&mut self) {
self.0.reset()
}
pub fn start(&mut self) {
self.0.start()
}
pub fn tick(&mut self) {
self.0.tick()
}
}