tests: load_region asserts that all data must be copied
This commit is contained in:
parent
1573e00928
commit
381b2a69bd
@ -18,7 +18,7 @@ use std::{
|
|||||||
/// # use chirp::*;
|
/// # use chirp::*;
|
||||||
/// let mut bus = bus! {
|
/// let mut bus = bus! {
|
||||||
/// Stack [0x0000..0x0800] = b"ABCDEF",
|
/// Stack [0x0000..0x0800] = b"ABCDEF",
|
||||||
/// Program [0x0800..0x1000] = include_bytes!("bus.rs"),
|
/// Program [0x0800..0xf000] = include_bytes!("bus.rs"),
|
||||||
/// };
|
/// };
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
@ -18,7 +18,7 @@ fn setup_environment() -> (CPU, Bus) {
|
|||||||
// Load the ROM file into RAM
|
// Load the ROM file into RAM
|
||||||
Program [0x0200..0x1000],
|
Program [0x0200..0x1000],
|
||||||
// Create a screen, and fill it with garbage
|
// Create a screen, and fill it with garbage
|
||||||
Screen [0x0F00..0x1000] = include_bytes!("chip8_test_suite.rs"),
|
Screen [0x0F00..0x1000] = b"jsuadhgufywegrwsdyfogbbg4owgbrt",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user