adds docs

working on widetick
This commit is contained in:
2025-07-26 11:02:36 -04:00
parent b40c3c503f
commit 8f6f9cb64d
49 changed files with 488 additions and 93 deletions
+6 -5
View File
@@ -1,18 +1,19 @@
use log::debug;
use crate::constants::constants_system::SIZE_32KB;
use crate::periph::hm62256::Hm62256;
use crate::periph::rom_chip::RomChip;
impl RomChip for Hm62256 {
use crate::traits::memory_chip::MemoryChip;
use crate::traits::rom_chip::RomChip;
impl MemoryChip for Hm62256 {
fn read(&self, offset: &u16) -> u8 {
// loops memory around past 32k
let effective = *offset as i32 % SIZE_32KB as i32;
self.data[effective as usize]
}
}
fn program(_: &[u8; SIZE_32KB]) -> Box<Self> {
impl RomChip for Hm62256 {
fn program(_: &[u8]) -> Box<Self> {
debug!("Dont program ram.");
Hm62256::default().into()
}