use crate::processor::memory::Address; pub struct ROM { data: Vec, } impl ROM { pub fn load(data: Vec) -> Self { Self { data } } pub(super) fn get(&self, address: Address) -> u8 { self.data[address as usize] } }