use crate::periph::mos6522::Mos6522;

impl Mos6522 {
    pub fn new(offset: u16) -> Self {
        Mos6522 {
            dda: 0,
            ddb: 0,
            rs0: 0,
            rs1: 0,
            rs2: 0,
            rs3: 0,
            data_bus: 0,
            cs1: false,
            cs2: false,
            rw: false,
            reset: false,
            irq: false,
            ira: 0,
            ora: 0,
            porta: 0,
            irb: 0,
            orb: 0,
            portb: 0,
            ca1: false,
            ca2: false,
            cb1: false,
            cb2: false,
            offset,
            address_bus: 0,
        }
    }
}