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

MOS6526_1 Class Reference

#include <CIA.h>

Inheritance diagram for MOS6526_1:

Inheritance graph
[legend]
Collaboration diagram for MOS6526_1:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MOS6526_1 (MOS6510 *CPU, MOS6569 *VIC)
virtual ~MOS6526_1 ()
void Reset (void)
uint8 ReadRegister (uint16 adr)
void WriteRegister (uint16 adr, uint8 byte)
virtual void TriggerInterrupt (int bit)

Public Attributes

uint8 KeyMatrix [8]
uint8 RevMatrix [8]
uint8 Joystick1
uint8 Joystick2

Private Member Functions

void check_lp (void)

Private Attributes

MOS6569the_vic
uint8 prev_lp

Constructor & Destructor Documentation

MOS6526_1::MOS6526_1 MOS6510 CPU,
MOS6569 VIC
 

Definition at line 43 of file CIA.cpp.

References __CHECK_NULL, and CTOR.

MOS6526_1::~MOS6526_1  )  [virtual]
 

Definition at line 65 of file CIA.cpp.

References DTOR.


Member Function Documentation

void MOS6526_1::check_lp void   )  [inline, private]
 

Definition at line 294 of file CIA.cpp.

References MOS6526::ddrb, MOS6526::prb, prev_lp, the_vic, and MOS6569::TriggerLightpen().

Referenced by WriteRegister().

uint8 MOS6526_1::ReadRegister uint16  adr  ) 
 

Definition at line 203 of file CIA.cpp.

References MOS6510::ClearCIAIRQ(), MOS6526::cra, MOS6526::crb, MOS6526::ddra, MOS6526::ddrb, MOS6526::icr, Joystick1, Joystick2, KeyMatrix, MOS6526::pra, MOS6526::prb, RevMatrix, MOS6526::sdr, MOS6526::ta, MOS6526::tb, MOS6526::the_cpu, MOS6526::tod_10ths, MOS6526::tod_halt, MOS6526::tod_hr, MOS6526::tod_min, MOS6526::tod_sec, and uint8.

Referenced by MOS6510::read_byte_io().

void MOS6526_1::Reset void   ) 
 

Reimplemented from MOS6526.

Definition at line 96 of file CIA.cpp.

References ELOG1, Joystick1, Joystick2, KeyMatrix, prev_lp, MOS6526::Reset(), and RevMatrix.

Referenced by C64::Reset(), and C64::Run().

void MOS6526_1::TriggerInterrupt int  bit  )  [virtual]
 

Implements MOS6526.

Definition at line 568 of file CIA.cpp.

References MOS6526::icr, MOS6526::int_mask, MOS6526::the_cpu, and MOS6510::TriggerCIAIRQ().

Referenced by WriteRegister().

void MOS6526_1::WriteRegister uint16  adr,
uint8  byte
 

Definition at line 301 of file CIA.cpp.

References MOS6526::alm_10ths, MOS6526::alm_hr, MOS6526::alm_min, MOS6526::alm_sec, check_lp(), MOS6526::cra, MOS6526::crb, MOS6526::ddra, MOS6526::ddrb, MOS6526::icr, MOS6526::int_mask, MOS6526::latcha, MOS6526::latchb, MOS6526::pra, MOS6526::prb, MOS6526::sdr, MOS6526::ta, MOS6526::ta_cnt_phi2, MOS6526::tb, MOS6526::tb_cnt_phi2, MOS6526::tb_cnt_ta, MOS6526::the_cpu, MOS6526::tod_10ths, MOS6526::tod_hr, MOS6526::tod_min, MOS6526::tod_sec, MOS6510::TriggerCIAIRQ(), and TriggerInterrupt().

Referenced by MOS6510::write_byte_io().


Member Data Documentation

uint8 MOS6526_1::Joystick1
 

Definition at line 80 of file CIA.h.

Referenced by ReadRegister(), Reset(), and C64::VBlank().

uint8 MOS6526_1::Joystick2
 

Definition at line 81 of file CIA.h.

Referenced by ReadRegister(), Reset(), and C64::VBlank().

uint8 MOS6526_1::KeyMatrix[8]
 

Definition at line 77 of file CIA.h.

Referenced by ReadRegister(), Reset(), and C64::VBlank().

uint8 MOS6526_1::prev_lp [private]
 

Definition at line 88 of file CIA.h.

Referenced by check_lp(), and Reset().

uint8 MOS6526_1::RevMatrix[8]
 

Definition at line 78 of file CIA.h.

Referenced by ReadRegister(), Reset(), and C64::VBlank().

MOS6569* MOS6526_1::the_vic [private]
 

Definition at line 86 of file CIA.h.

Referenced by check_lp().


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