ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Member Functions | Private Attributes | List of all members
Psg Class Referencefinal

#include <psg.h>

Public Member Functions

 Psg ()
 
 ~Psg () ROLAND_DEFAULT void init()
 
tUBYTE control () const
 
tUBYTE selected () const
 
tUBYTE registerAY (int num) const
 
tUBYTE registerAY () const
 
tUBYTE tonALo () const
 
tUBYTE tonAHi () const
 
tUBYTE tonBLo () const
 
tUBYTE tonBHi () const
 
tUBYTE tonCLo () const
 
tUBYTE tonCHi () const
 
tUBYTE noise () const
 
tUBYTE mixer () const
 
tUBYTE amplitudeA () const
 
tUBYTE amplitudeB () const
 
tUBYTE amplitudeC () const
 
tUBYTE envelopeLo () const
 
tUBYTE envelopeHi () const
 
tUBYTE envType () const
 
tUBYTE portA () const
 
tUBYTE portB () const
 
tWORD tonALoW () const
 
tWORD tonAHiW () const
 
tWORD tonBLoW () const
 
tWORD tonBHiW () const
 
tWORD tonCLoW () const
 
tWORD tonCHiW () const
 
tWORD envelopeLoW () const
 
int amplitudeEnv () const
 
bool firstPeriod () const
 
void setControl (tUBYTE val)
 
void setSelected (tUBYTE val)
 
void setRegisterAY (int num, tUBYTE val)
 
void setTonALo (tUBYTE value)
 
void setTonAHi (tUBYTE value)
 
void setTonBLo (tUBYTE value)
 
void setTonBHi (tUBYTE value)
 
void setTonCLo (tUBYTE value)
 
void setTonCHi (tUBYTE value)
 
void setNoise (tUBYTE value)
 
void setMixer (tUBYTE value)
 
void setAmplitudeA (tUBYTE value)
 
void setAmplitudeB (tUBYTE value)
 
void setAmplitudeC (tUBYTE value)
 
void setEnvelopeLo (tUBYTE value)
 
void setEnvelopeHi (tUBYTE value)
 
void setEnvType (tUBYTE value)
 
void setPortA (tUBYTE value)
 
void setPortB (tUBYTE value)
 
void setAmplitudeEnv (int value)
 
void setFirstPeriod (bool value)
 

Private Attributes

tUBYTE mControl
 
tUBYTE mSelected
 
tUBYTE mRegisterAY [16]
 
int mAmplitudeEnv
 
bool mFirstPeriod
 

Detailed Description

Author
Fred Klaus

Constructor & Destructor Documentation

Psg ( )
inline

References init(), ROLAND_DEFAULT, and Psg::~Psg().

~Psg ( )

Referenced by Psg::Psg().

Member Function Documentation

tUBYTE amplitudeA ( ) const
inline
tUBYTE amplitudeB ( ) const
inline
tUBYTE amplitudeC ( ) const
inline
int amplitudeEnv ( ) const
inline
tUBYTE control ( ) const
inline

References Psg::mControl.

Referenced by Cpc::z80_in_handler().

tUBYTE envelopeHi ( ) const
inline

References Psg::mRegisterAY.

tUBYTE envelopeLo ( ) const
inline

References Psg::mRegisterAY.

tWORD envelopeLoW ( ) const
inline

References Psg::mRegisterAY.

Referenced by Sound::synthesizerLogicQ().

tUBYTE envType ( ) const
inline

References Psg::mRegisterAY.

bool firstPeriod ( ) const
inline
tUBYTE mixer ( ) const
inline

References Psg::mRegisterAY.

tUBYTE noise ( ) const
inline

References Psg::mRegisterAY.

Referenced by Sound::synthesizerLogicQ().

tUBYTE portA ( ) const
inline

References Psg::mRegisterAY.

tUBYTE portB ( ) const
inline

References Psg::mRegisterAY.

tUBYTE registerAY ( int  num) const
inline

References Psg::mRegisterAY.

Referenced by Sound::init(), and Cpc::z80_in_handler().

tUBYTE registerAY ( ) const
inline

References Psg::mRegisterAY, and Psg::mSelected.

tUBYTE selected ( ) const
inline

References Psg::mSelected.

Referenced by Cpc::z80_in_handler().

void setAmplitudeA ( tUBYTE  value)
inline

References Psg::mRegisterAY.

Referenced by Sound::setAmplA().

void setAmplitudeB ( tUBYTE  value)
inline

References Psg::mRegisterAY.

Referenced by Sound::setAmplB().

void setAmplitudeC ( tUBYTE  value)
inline

References Psg::mRegisterAY.

Referenced by Sound::setAmplC().

void setAmplitudeEnv ( int  value)
inline
void setControl ( tUBYTE  val)
inline

References Psg::mControl.

Referenced by Cpc::z80_out_handler().

void setEnvelopeHi ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setEnvelopeLo ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setEnvType ( tUBYTE  value)
inline

References Psg::mRegisterAY.

Referenced by Sound::setEnvelopeRegister().

void setFirstPeriod ( bool  value)
inline
void setMixer ( tUBYTE  value)
inline

References Psg::mRegisterAY.

Referenced by Sound::setMixerRegister().

void setNoise ( tUBYTE  value)
inline

References Psg::mRegisterAY.

Referenced by Sound::setAYRegister().

void setPortA ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setPortB ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setRegisterAY ( int  num,
tUBYTE  val 
)
inline

References Psg::mRegisterAY.

Referenced by Sound::setAYRegister().

void setSelected ( tUBYTE  val)
inline

References Psg::mSelected.

void setTonAHi ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setTonALo ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setTonBHi ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setTonBLo ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setTonCHi ( tUBYTE  value)
inline

References Psg::mRegisterAY.

void setTonCLo ( tUBYTE  value)
inline

References Psg::mRegisterAY.

tUBYTE tonAHi ( ) const
inline

References Psg::mRegisterAY.

tWORD tonAHiW ( ) const
inline

References Psg::mRegisterAY.

tUBYTE tonALo ( ) const
inline

References Psg::mRegisterAY.

tWORD tonALoW ( ) const
inline
tUBYTE tonBHi ( ) const
inline

References Psg::mRegisterAY.

tWORD tonBHiW ( ) const
inline

References Psg::mRegisterAY.

tUBYTE tonBLo ( ) const
inline

References Psg::mRegisterAY.

tWORD tonBLoW ( ) const
inline
tUBYTE tonCHi ( ) const
inline

References Psg::mRegisterAY.

tWORD tonCHiW ( ) const
inline

References Psg::mRegisterAY.

tUBYTE tonCLo ( ) const
inline
tWORD tonCLoW ( ) const
inline

Member Data Documentation

int mAmplitudeEnv
private
tUBYTE mControl
private

Referenced by Psg::control(), and Psg::setControl().

bool mFirstPeriod
private
tUBYTE mRegisterAY[16]
private
tUBYTE mSelected
private

The documentation for this class was generated from the following file: