tests: Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.
This commit is contained in:
14
src/cpu.rs
14
src/cpu.rs
@@ -314,6 +314,20 @@ impl CPU {
|
||||
self
|
||||
}
|
||||
|
||||
/// Gets a slice of breakpoints
|
||||
/// # Examples
|
||||
/// ```rust
|
||||
///# use chirp::prelude::*;
|
||||
///# fn main() -> Result<()> {
|
||||
/// let mut cpu = CPU::default();
|
||||
/// assert_eq!(cpu.breakpoints(), &[]);
|
||||
///# Ok(())
|
||||
///# }
|
||||
/// ```
|
||||
pub fn breakpoints(&self) -> &[Adr] {
|
||||
&self.breakpoints.as_slice()
|
||||
}
|
||||
|
||||
/// Unpauses the emulator for a single tick,
|
||||
/// even if cpu.flags.pause is set.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user