cpu.rs: Adjust doctests for new stack behavior

This commit is contained in:
John 2023-04-17 06:39:05 -05:00
parent 0113dd95f6
commit 1c1d4dafaf
2 changed files with 1 additions and 5 deletions

View File

@ -83,7 +83,6 @@ impl CPU {
/// 0xf00, // screen location /// 0xf00, // screen location
/// 0x50, // font location /// 0x50, // font location
/// 0x200, // start of program /// 0x200, // start of program
/// 0xefe, // top of stack
/// Dis::default(), /// Dis::default(),
/// vec![], // Breakpoints /// vec![], // Breakpoints
/// Flags::default() /// Flags::default()
@ -275,7 +274,6 @@ impl CPU {
/// 0xf00, /// 0xf00,
/// 0x50, /// 0x50,
/// 0x340, /// 0x340,
/// 0xefe,
/// Dis::default(), /// Dis::default(),
/// vec![], /// vec![],
/// Flags::default() /// Flags::default()
@ -577,8 +575,6 @@ impl Default for CPU {
/// | screen |`0x0f00` | Location of screen memory. /// | screen |`0x0f00` | Location of screen memory.
/// | font |`0x0050` | Location of font memory. /// | font |`0x0050` | Location of font memory.
/// | pc |`0x0200` | Start location. Generally 0x200 or 0x600. /// | pc |`0x0200` | Start location. Generally 0x200 or 0x600.
/// | sp |`0x0efe` | Initial top of stack.
///
/// ///
/// # Examples /// # Examples
/// ```rust /// ```rust

View File

@ -17,7 +17,7 @@ use std::{
/// ```rust /// ```rust
/// # use chirp::*; /// # use chirp::*;
/// let mut bus = bus! { /// let mut bus = bus! {
/// Stack [0x0000..0x0800] = b"ABCDEF", /// Charset [0x0000..0x0800] = b"ABCDEF",
/// Program [0x0800..0xf000] = include_bytes!("bus.rs"), /// Program [0x0800..0xf000] = include_bytes!("bus.rs"),
/// }; /// };
/// ``` /// ```