tests: Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.

This commit is contained in:
2023-03-28 08:57:24 -05:00
parent f2f47e13d4
commit 83c178413d
4 changed files with 193 additions and 10 deletions

View File

@@ -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.
///