use crate::constants::constants_system::SIZE_1KB;
use crate::periph::mos6530::mos6530::Mos6530;

impl Mos6530 {
    pub fn new(io_offset: u16,
               ram_offset: u16,
               rom_offset: u16,
               data: &[u8; SIZE_1KB]) -> Self {
        Mos6530 {
            data: *data,
            ram: [0x00; 64],
            porta: 0,
            portb: 0,
            data_bus: 0,
            address_bus: 0,
            cs1: false,
            cs2: false,
            rw: false,
            reset: false,
            io_offset,
            ram_offset,
            rom_offset
        }
    }
}