|
static const int | DEFAULT_CALLBACK_FREQUENCY = 250 |
|
◆ 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 |
◆ 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
-
a | port address |
v | value, 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
-
r | hardware register number to write to |
v | value, which will be written |
Implemented in DOSBoxCMS.
◆ start()
void CMS::CMS::start |
( |
TimerCallback * |
callback, |
|
|
int |
timerFrequency = DEFAULT_CALLBACK_FREQUENCY |
|
) |
| |
Start the CMS with callbacks.
◆ stop()
◆ setCallbackFrequency()
virtual void CMS::CMS::setCallbackFrequency |
( |
int |
timerFrequency | ) |
|
|
pure virtual |
Change the callback frequency. This must only be called from a timer proc.
Implemented in CMS::EmulatedCMS.
◆ startCallbacks()
virtual void CMS::CMS::startCallbacks |
( |
int |
timerFrequency | ) |
|
|
protectedpure virtual |
◆ stopCallbacks()
virtual void CMS::CMS::stopCallbacks |
( |
| ) |
|
|
protectedpure virtual |
◆ _callback
The functor for callbacks.
The documentation for this class was generated from the following file: