use crate::constants::constants_system::SIZE_32KB;
use crate::periph::hm62256::Hm62256;

impl Hm62256 {
    pub fn new(base_offset: u16) -> Self {
        Self {
            offset: base_offset,
            max_offset: base_offset + SIZE_32KB as u16,
            data: vec![0; SIZE_32KB].into_boxed_slice(),
            address_bus: 0x0000,
            data_bus: 0x00,
            cs: false,
            oe: false,
            we: false
        }
    }
}
