libsidplayfp  2.0.2
Public Member Functions | List of all members
libsidplayfp::InterruptSource6526 Class Referencefinal

#include <mos6526.h>

Inheritance diagram for libsidplayfp::InterruptSource6526:
Inheritance graph
[legend]
Collaboration diagram for libsidplayfp::InterruptSource6526:
Collaboration graph
[legend]

Public Member Functions

 InterruptSource6526 (EventScheduler &scheduler, MOS6526 &parent)
 
void trigger (uint8_t interruptMask) override
 
uint8_t clear () override
 
void event () override
 
void reset () override
 
- Public Member Functions inherited from libsidplayfp::InterruptSource
void set (uint8_t interruptMask)
 

Additional Inherited Members

- Public Types inherited from libsidplayfp::InterruptSource
enum  {
  INTERRUPT_NONE = 0, INTERRUPT_UNDERFLOW_A = 1 << 0, INTERRUPT_UNDERFLOW_B = 1 << 1, INTERRUPT_ALARM = 1 << 2,
  INTERRUPT_SP = 1 << 3, INTERRUPT_FLAG = 1 << 4, INTERRUPT_REQUEST = 1 << 7
}
 
- Protected Member Functions inherited from libsidplayfp::InterruptSource
bool interruptMasked () const
 
bool interruptTriggered () const
 
void triggerInterrupt ()
 
void triggerBug ()
 
 InterruptSource (EventScheduler &scheduler, MOS6526 &parent)
 
 Event (const char *const name)
 
- Protected Attributes inherited from libsidplayfp::InterruptSource
MOS6526parent
 Pointer to the MOS6526 which this Interrupt belongs to.
 
EventSchedulereventScheduler
 Event scheduler.
 

Detailed Description

InterruptSource that acts like old CIA

Member Function Documentation

◆ clear()

uint8_t libsidplayfp::InterruptSource6526::clear ( )
overridevirtual

Clear interrupt state.

Returns
old interrupt state

Reimplemented from libsidplayfp::InterruptSource.

◆ event()

void libsidplayfp::InterruptSource6526::event ( )
overridevirtual

Signal interrupt to CPU.

Implements libsidplayfp::Event.

◆ reset()

void libsidplayfp::InterruptSource6526::reset ( )
overridevirtual

Clear pending interrupts, but do not signal to CPU we lost them. It is assumed that all components get reset() calls in synchronous manner.

Reimplemented from libsidplayfp::InterruptSource.

◆ trigger()

void libsidplayfp::InterruptSource6526::trigger ( uint8_t  interruptMask)
overridevirtual

Trigger an interrupt.

Parameters
interruptMaskInterrupt flag number

Reimplemented from libsidplayfp::InterruptSource.


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