|
libsidplayfp 2.15.0
|
#include <mos652x.h>


Public Types | |
| enum class | model_t { MOS6526 = 0 , MOS8521 , MOS6526W4485 } |
Public Member Functions | |
| void | setModel (model_t model) |
| virtual void | reset () |
| void | setDayOfTimeRate (unsigned int clock) |
Static Public Member Functions | |
| static const char * | credits () |
Protected Member Functions | |
| MOS652X (EventScheduler &scheduler) | |
| virtual void | interrupt (bool state)=0 |
| virtual void | portA () |
| virtual void | portB () |
| uint8_t | adjustDataPort (uint8_t data) |
| uint8_t | read (uint_least8_t addr) |
| void | write (uint_least8_t addr, uint8_t data) |
Protected Attributes | |
| EventScheduler & | eventScheduler |
| Event context. | |
| uint8_t & | pra |
| Ports. | |
| uint8_t & | prb |
| uint8_t & | ddra |
| uint8_t & | ddrb |
| uint8_t | regs [0x10] |
| These are all CIA registers. | |
| TimerA | timerA |
| Timers A and B. | |
| TimerB | timerB |
| std::unique_ptr< InterruptSource > | interruptSource |
| Interrupt Source. | |
| Tod | tod |
| TOD. | |
| SerialPort | serialPort |
| Serial Data Registers. | |
| EventCallback< MOS652X > | bTickEvent |
| Events. | |
Friends | |
| class | InterruptSource |
| class | SerialPort |
| class | TimerA |
| class | TimerB |
| class | Tod |
This class is heavily based on the ciacore/ciatimer source code from VICE. The CIA state machine is lifted as-is. Big thanks to VICE project! The Serial Port emulation is based on Denise emu code.
|
strong |
|
protected |
Create a new CIA.
| context | the event context |
|
protected |
Timers can appear on the port.
|
static |
Get the credits.
|
protectedpure virtual |
Signal interrupt.
| state | interrupt state |
Implemented in libsidplayfp::c64cia1, and libsidplayfp::c64cia2.
|
protected |
Read CIA register.
| addr | register address to read (lowest 4 bits) |
|
virtual |
Reset CIA.
Reimplemented in libsidplayfp::c64cia1.
|
inline |
Set day-of-time event occurence of rate.
| clock |
| void libsidplayfp::MOS652X::setModel | ( | model_t | model | ) |
Select chip model.
| model |
|
protected |
Write CIA register.
| addr | register address to write (lowest 4 bits) |
| data | value to write |