ScummVM API documentation
CMS::CMS Class Referenceabstract
Inheritance diagram for CMS::CMS:
Audio::Chip DOSBoxCMS

Public Member Functions

virtual bool init ()=0
 
virtual void reset ()=0
 
virtual void write (int a, int v)=0
 
virtual void writeReg (int r, int v)=0
 
void start (TimerCallback *callback)
 
- Public Member Functions inherited from Audio::Chip
void start (TimerCallback *callback, int timerFrequency)
 
void stop ()
 
virtual void setCallbackFrequency (int timerFrequency)=0
 

Static Public Attributes

static const int DEFAULT_CALLBACK_FREQUENCY = 250
 

Additional Inherited Members

- Public Types inherited from Audio::Chip
typedef Common::Functor0< void > TimerCallback
 
- Protected Member Functions inherited from Audio::Chip
virtual void startCallbacks (int timerFrequency)=0
 
virtual void stopCallbacks ()=0
 
- Protected Attributes inherited from Audio::Chip
Common::ScopedPtr< TimerCallback_callback
 

Member Function Documentation

◆ init()

virtual bool CMS::CMS::init ( )
pure virtual

Initializes the CMS emulator.

Returns
true on success, false on failure

Implemented in DOSBoxCMS.

◆ reset()

virtual void CMS::CMS::reset ( )
pure virtual

Reinitializes the CMS emulator

Implemented in DOSBoxCMS.

◆ write()

virtual void CMS::CMS::write ( int  a,
int  v 
)
pure virtual

Writes a byte to the given I/O port. CMS responds to 2 sets of 2 ports: 0x220/0x222 - value for the 1st/2nd chip (channels 0-5/6-B) 0x221/0x223 - register for the 1st/2nd chip

Parameters
aport address
vvalue, which will be written

Implemented in DOSBoxCMS.

◆ writeReg()

virtual void CMS::CMS::writeReg ( int  r,
int  v 
)
pure virtual

Function to directly write to a specific CMS register. We allow writing to secondary CMS chip registers by using register values >= 0x100.

Parameters
rhardware register number to write to
vvalue, which will be written

Implemented in DOSBoxCMS.


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