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

MOS6581 Class Reference

#include <SID.h>

Collaboration diagram for MOS6581:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MOS6581 (C64 *c64)
 ~MOS6581 ()
void Reset (void)
uint8 ReadRegister (uint16 adr)
void WriteRegister (uint16 adr, uint8 byte)
void NewPrefs (Prefs *prefs)
void PauseSound (void)
void ResumeSound (void)
void GetState (MOS6581State *ss)
void SetState (MOS6581State *ss)
void EmulateLine (void)

Private Member Functions

void open_close_renderer (int old_type, int new_type)

Private Attributes

C64the_c64
SIDRendererthe_renderer
uint8 regs [32]
uint8 last_sid_byte
PrefsThePrefs

Constructor & Destructor Documentation

MOS6581::MOS6581 C64 c64  ) 
 

Constructor

Definition at line 112 of file SID.cpp.

References __CHECK_NULL, CTOR, open_close_renderer(), regs, Prefs::SIDType, SIDTYPE_NONE, the_renderer, ThePrefs, and ThePrefs.

MOS6581::~MOS6581  ) 
 

Destructor

Definition at line 130 of file SID.cpp.

References DTOR, open_close_renderer(), Prefs::SIDType, SIDTYPE_NONE, and ThePrefs.


Member Function Documentation

void MOS6581::EmulateLine void   )  [inline]
 

Definition at line 105 of file SID.h.

References SIDRenderer::EmulateLine(), and the_renderer.

Referenced by C64::thread_func().

void MOS6581::GetState MOS6581State ss  ) 
 

Definition at line 194 of file SID.cpp.

References MOS6581State::AD_1, MOS6581State::AD_2, MOS6581State::AD_3, MOS6581State::ctrl_1, MOS6581State::ctrl_2, MOS6581State::ctrl_3, MOS6581State::env_3, MOS6581State::fc_hi, MOS6581State::fc_lo, MOS6581State::freq_hi_1, MOS6581State::freq_hi_2, MOS6581State::freq_hi_3, MOS6581State::freq_lo_1, MOS6581State::freq_lo_2, MOS6581State::freq_lo_3, MOS6581State::mode_vol, MOS6581State::osc_3, MOS6581State::pot_x, MOS6581State::pot_y, MOS6581State::pw_hi_1, MOS6581State::pw_hi_2, MOS6581State::pw_hi_3, MOS6581State::pw_lo_1, MOS6581State::pw_lo_2, MOS6581State::pw_lo_3, regs, MOS6581State::res_filt, MOS6581State::SR_1, MOS6581State::SR_2, and MOS6581State::SR_3.

Referenced by C64::SaveSIDState(), and view_sid_state().

void MOS6581::NewPrefs Prefs prefs  ) 
 

Definition at line 160 of file SID.cpp.

References SIDRenderer::NewPrefs(), open_close_renderer(), Prefs::SIDType, the_renderer, and ThePrefs.

Referenced by C64::NewPrefs().

void MOS6581::open_close_renderer int  old_type,
int  new_type
[private]
 

Definition at line 1514 of file SID.cpp.

References regs, SIDTYPE_DIGITAL, SIDTYPE_SIDCARD, the_c64, the_renderer, and SIDRenderer::WriteRegister().

Referenced by MOS6581(), NewPrefs(), and ~MOS6581().

void MOS6581::PauseSound void   ) 
 

Definition at line 172 of file SID.cpp.

References SIDRenderer::Pause(), and the_renderer.

uint8 MOS6581::ReadRegister uint16  adr  )  [inline]
 

Definition at line 116 of file SID.h.

References last_sid_byte, rand, and uint8.

Referenced by MOS6510::read_byte_io().

void MOS6581::Reset void   ) 
 

Reset the SID

Definition at line 142 of file SID.cpp.

References ELOG1, last_sid_byte, regs, SIDRenderer::Reset(), and the_renderer.

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

void MOS6581::ResumeSound void   ) 
 

Definition at line 183 of file SID.cpp.

References SIDRenderer::Resume(), and the_renderer.

void MOS6581::SetState MOS6581State ss  ) 
 

Definition at line 236 of file SID.cpp.

References MOS6581State::AD_1, MOS6581State::AD_2, MOS6581State::AD_3, MOS6581State::ctrl_1, MOS6581State::ctrl_2, MOS6581State::ctrl_3, MOS6581State::fc_hi, MOS6581State::fc_lo, MOS6581State::freq_hi_1, MOS6581State::freq_hi_2, MOS6581State::freq_hi_3, MOS6581State::freq_lo_1, MOS6581State::freq_lo_2, MOS6581State::freq_lo_3, MOS6581State::mode_vol, MOS6581State::pw_hi_1, MOS6581State::pw_hi_2, MOS6581State::pw_hi_3, MOS6581State::pw_lo_1, MOS6581State::pw_lo_2, MOS6581State::pw_lo_3, regs, MOS6581State::res_filt, MOS6581State::SR_1, MOS6581State::SR_2, MOS6581State::SR_3, the_renderer, and SIDRenderer::WriteRegister().

Referenced by C64::LoadSIDState().

void MOS6581::WriteRegister uint16  adr,
uint8  byte
[inline]
 

Definition at line 139 of file SID.h.

References last_sid_byte, regs, the_renderer, and SIDRenderer::WriteRegister().

Referenced by MOS6510::write_byte_io().


Member Data Documentation

uint8 MOS6581::last_sid_byte [private]
 

Definition at line 45 of file SID.h.

Referenced by ReadRegister(), Reset(), and WriteRegister().

uint8 MOS6581::regs[32] [private]
 

Definition at line 44 of file SID.h.

Referenced by GetState(), MOS6581(), open_close_renderer(), Reset(), SetState(), and WriteRegister().

C64* MOS6581::the_c64 [private]
 

Definition at line 42 of file SID.h.

Referenced by open_close_renderer().

SIDRenderer* MOS6581::the_renderer [private]
 

Definition at line 43 of file SID.h.

Referenced by EmulateLine(), MOS6581(), NewPrefs(), open_close_renderer(), PauseSound(), Reset(), ResumeSound(), SetState(), and WriteRegister().

Prefs& MOS6581::ThePrefs [private]
 

Definition at line 46 of file SID.h.

Referenced by MOS6581(), NewPrefs(), and ~MOS6581().


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