use crate::constants::constants_system::*;
use crate::periph::mos6522::mos6522::Mos6522;

/// Mos6530 RRIOT
/// Ram/Rom/IO/Timer
///
/// Represents a single Mos6530 RRIOT Chip
///
/// Used in the TIM-1, KIM-1
///
/// 1kb Rom
/// 64 bytes RAM
/// IO Ports (A, B)
/// Timer
pub struct Mos6530 {
    pub data: [u8; SIZE_1KB],
    pub ram: [u8; 64],
    pub porta: u8,
    pub portb: u8,
    pub data_bus: u8,
    pub address_bus: u16,
    pub cs1: bool,
    pub cs2: bool,
    // when true, CPU is reading
    pub rw: bool,
    pub reset: bool,
    pub io_offset: u16,
    pub ram_offset: u16,
    pub rom_offset: u16
}

