Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

MOS6526 Class Reference

#include <CIA.h>

Inheritance diagram for MOS6526:

Inheritance graph
[legend]
Collaboration diagram for MOS6526:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MOS6526 (MOS6510 *CPU)
void Reset (void)
void GetState (MOS6526State *cs)
void SetState (MOS6526State *cs)
void EmulateLine (int cycles)
void CountTOD (void)
virtual void TriggerInterrupt (int bit)=0

Protected Attributes

MOS6510the_cpu
uint8 pra
uint8 prb
uint8 ddra
uint8 ddrb
uint16 ta
uint16 tb
uint16 latcha
uint16 latchb
uint8 tod_10ths
uint8 tod_sec
uint8 tod_min
uint8 tod_hr
uint8 alm_10ths
uint8 alm_sec
uint8 alm_min
uint8 alm_hr
uint8 sdr
uint8 icr
uint8 cra
uint8 crb
uint8 int_mask
int tod_divider
bool tod_halt
bool ta_cnt_phi2
bool tb_cnt_phi2
bool tb_cnt_ta
PrefsThePrefs

Constructor & Destructor Documentation

MOS6526::MOS6526 MOS6510 CPU  ) 
 

Definition at line 42 of file CIA.cpp.


Member Function Documentation

void MOS6526::CountTOD void   ) 
 

Definition at line 499 of file CIA.cpp.

References alm_10ths, alm_hr, alm_min, alm_sec, cra, tod_10ths, tod_divider, tod_hr, tod_min, tod_sec, TriggerInterrupt(), and uint8.

void MOS6526::EmulateLine int  cycles  )  [inline]
 

Definition at line 157 of file CIA.h.

References cra, crb, latcha, latchb, ta, ta_cnt_phi2, tb, tb_cnt_phi2, tb_cnt_ta, and TriggerInterrupt().

Referenced by C64::thread_func().

void MOS6526::GetState MOS6526State cs  ) 
 

Definition at line 128 of file CIA.cpp.

References alm_10ths, MOS6526State::alm_10ths, alm_hr, MOS6526State::alm_hr, alm_min, MOS6526State::alm_min, alm_sec, MOS6526State::alm_sec, cra, MOS6526State::cra, crb, MOS6526State::crb, ddra, MOS6526State::ddra, ddrb, MOS6526State::ddrb, icr, MOS6526State::int_data, int_mask, MOS6526State::int_mask, latcha, MOS6526State::latcha, latchb, MOS6526State::latchb, pra, MOS6526State::pra, prb, MOS6526State::prb, sdr, MOS6526State::sdr, ta, MOS6526State::ta_hi, MOS6526State::ta_lo, tb, MOS6526State::tb_hi, MOS6526State::tb_lo, tod_10ths, MOS6526State::tod_10ths, tod_hr, MOS6526State::tod_hr, tod_min, MOS6526State::tod_min, tod_sec, and MOS6526State::tod_sec.

Referenced by C64::SaveCIAState(), and view_cia_state().

void MOS6526::Reset void   ) 
 

Reimplemented in MOS6526_1, and MOS6526_2.

Definition at line 80 of file CIA.cpp.

References alm_10ths, alm_hr, alm_min, alm_sec, cra, crb, ddra, ddrb, icr, int_mask, latcha, latchb, pra, prb, sdr, ta, ta_cnt_phi2, tb, tb_cnt_phi2, tb_cnt_ta, tod_10ths, tod_divider, tod_halt, tod_hr, tod_min, and tod_sec.

Referenced by MOS6526_2::Reset(), and MOS6526_1::Reset().

void MOS6526::SetState MOS6526State cs  ) 
 

Definition at line 164 of file CIA.cpp.

References MOS6526State::alm_10ths, alm_10ths, MOS6526State::alm_hr, alm_hr, MOS6526State::alm_min, alm_min, MOS6526State::alm_sec, alm_sec, MOS6526State::cra, cra, MOS6526State::crb, crb, MOS6526State::ddra, ddra, MOS6526State::ddrb, ddrb, icr, MOS6526State::int_data, MOS6526State::int_mask, int_mask, MOS6526State::latcha, latcha, MOS6526State::latchb, latchb, MOS6526State::pra, pra, MOS6526State::prb, prb, MOS6526State::sdr, sdr, ta, ta_cnt_phi2, MOS6526State::ta_hi, MOS6526State::ta_lo, tb, tb_cnt_phi2, tb_cnt_ta, MOS6526State::tb_hi, MOS6526State::tb_lo, MOS6526State::tod_10ths, tod_10ths, tod_halt, MOS6526State::tod_hr, tod_hr, MOS6526State::tod_min, tod_min, MOS6526State::tod_sec, and tod_sec.

Referenced by C64::LoadCIAState().

virtual void MOS6526::TriggerInterrupt int  bit  )  [pure virtual]
 

Implemented in MOS6526_1, and MOS6526_2.

Referenced by CountTOD(), and EmulateLine().


Member Data Documentation

uint8 MOS6526::alm_10ths [protected]
 

Definition at line 43 of file CIA.h.

Referenced by CountTOD(), GetState(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::alm_hr [protected]
 

Definition at line 43 of file CIA.h.

Referenced by CountTOD(), GetState(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::alm_min [protected]
 

Definition at line 43 of file CIA.h.

Referenced by CountTOD(), GetState(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::alm_sec [protected]
 

Definition at line 43 of file CIA.h.

Referenced by CountTOD(), GetState(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::cra [protected]
 

Definition at line 45 of file CIA.h.

Referenced by CountTOD(), EmulateLine(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::crb [protected]
 

Definition at line 45 of file CIA.h.

Referenced by EmulateLine(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::ddra [protected]
 

Definition at line 38 of file CIA.h.

Referenced by GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::ddrb [protected]
 

Definition at line 38 of file CIA.h.

Referenced by MOS6526_1::check_lp(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::icr [protected]
 

Definition at line 45 of file CIA.h.

Referenced by GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::TriggerInterrupt(), MOS6526_1::TriggerInterrupt(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::int_mask [protected]
 

Definition at line 46 of file CIA.h.

Referenced by GetState(), Reset(), SetState(), MOS6526_2::TriggerInterrupt(), MOS6526_1::TriggerInterrupt(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint16 MOS6526::latcha [protected]
 

Definition at line 40 of file CIA.h.

Referenced by EmulateLine(), GetState(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint16 MOS6526::latchb [protected]
 

Definition at line 40 of file CIA.h.

Referenced by EmulateLine(), GetState(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::pra [protected]
 

Definition at line 38 of file CIA.h.

Referenced by GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::prb [protected]
 

Definition at line 38 of file CIA.h.

Referenced by MOS6526_1::check_lp(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::sdr [protected]
 

Definition at line 45 of file CIA.h.

Referenced by GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint16 MOS6526::ta [protected]
 

Definition at line 40 of file CIA.h.

Referenced by EmulateLine(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

bool MOS6526::ta_cnt_phi2 [protected]
 

Definition at line 50 of file CIA.h.

Referenced by EmulateLine(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint16 MOS6526::tb [protected]
 

Definition at line 40 of file CIA.h.

Referenced by EmulateLine(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

bool MOS6526::tb_cnt_phi2 [protected]
 

Definition at line 50 of file CIA.h.

Referenced by EmulateLine(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

bool MOS6526::tb_cnt_ta [protected]
 

Definition at line 50 of file CIA.h.

Referenced by EmulateLine(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

MOS6510* MOS6526::the_cpu [protected]
 

Definition at line 36 of file CIA.h.

Referenced by MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), MOS6526_2::TriggerInterrupt(), MOS6526_1::TriggerInterrupt(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

Prefs* MOS6526::ThePrefs [protected]
 

Definition at line 63 of file CIA.h.

uint8 MOS6526::tod_10ths [protected]
 

Definition at line 42 of file CIA.h.

Referenced by CountTOD(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

int MOS6526::tod_divider [protected]
 

Definition at line 48 of file CIA.h.

Referenced by CountTOD(), and Reset().

bool MOS6526::tod_halt [protected]
 

Definition at line 50 of file CIA.h.

Referenced by MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), and SetState().

uint8 MOS6526::tod_hr [protected]
 

Definition at line 42 of file CIA.h.

Referenced by CountTOD(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::tod_min [protected]
 

Definition at line 42 of file CIA.h.

Referenced by CountTOD(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().

uint8 MOS6526::tod_sec [protected]
 

Definition at line 42 of file CIA.h.

Referenced by CountTOD(), GetState(), MOS6526_2::ReadRegister(), MOS6526_1::ReadRegister(), Reset(), SetState(), MOS6526_2::WriteRegister(), and MOS6526_1::WriteRegister().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:12:23 2005 for E32frodo by doxygen 1.3.3