Monotonic: This flag is being deprecated soon, switch it for bool

This commit is contained in:
2023-04-29 18:20:49 -05:00
parent a16d7fe732
commit ea357be477
5 changed files with 6 additions and 9 deletions

View File

@@ -451,7 +451,7 @@ impl CPU {
/// # use chirp::error::Error;
/// let mut cpu = CPU::default();
/// # cpu.flags.debug = true; // enable live disassembly
/// # cpu.flags.monotonic = Some(8); // enable monotonic/test timing
/// # cpu.flags.monotonic = true; // enable monotonic/test timing
/// let mut bus = bus!{
/// Program [0x0200..0x0f00] = &[
/// 0xff, 0xff, // invalid!
@@ -466,7 +466,7 @@ impl CPU {
// Do nothing if paused
if self.flags.is_paused() {
// always tick in test mode
if self.flags.monotonic.is_some() {
if self.flags.monotonic {
self.cycle += 1;
}
return Ok(self);