adds docs
working on widetick
This commit is contained in:
@@ -6,10 +6,11 @@ pub mod tick;
|
||||
pub mod default;
|
||||
pub mod new;
|
||||
pub mod dump;
|
||||
mod control;
|
||||
|
||||
use crate::constants::constants_system::SIZE_32KB;
|
||||
use crate::periph::ram_chip::RamChip;
|
||||
use crate::periph::rom_chip::RomChip;
|
||||
use crate::traits::ram_chip::RamChip;
|
||||
use crate::traits::rom_chip::RomChip;
|
||||
use log::debug;
|
||||
|
||||
/// Hitachi Semiconductor
|
||||
@@ -19,13 +20,20 @@ pub struct Hm62256 {
|
||||
pub(crate) offset: u16,
|
||||
pub(crate) data: Box<[u8]>,
|
||||
pub(crate) address_bus: u16,
|
||||
pub(crate) data_bus: u8
|
||||
pub(crate) data_bus: u8,
|
||||
// Chip Select
|
||||
pub(crate) cs: bool,
|
||||
// Write Enable
|
||||
pub(crate) we: bool,
|
||||
// Output Enable
|
||||
pub(crate) oe: bool
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use rand::random;
|
||||
use crate::traits::memory_chip::MemoryChip;
|
||||
|
||||
#[test]
|
||||
fn smoke() {
|
||||
|
||||
Reference in New Issue
Block a user