use crate::constants::constants_system::SIZE_32KB; use crate::periph::hm62256::Hm62256; use crate::periph::ram_chip::RamChip; impl RamChip for Hm62256 { fn write(&mut self, offset: &u16, value: &u8) { let effective = *offset as i32 % SIZE_32KB as i32; println!("Writing at E[{effective:04x}] / O[{offset:04x}]"); self.data[effective as usize] = *value; } }