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

#include <c64.h>

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

Public Types

enum  model_t {
  PAL_B = 0, NTSC_M, OLD_NTSC_M, PAL_N,
  PAL_M
}
 

Public Member Functions

EventSchedulergetEventScheduler ()
 
uint_least32_t getTime () const
 
uint_least32_t getTimeMs () const
 
void clock ()
 
void debug (bool enable, FILE *out)
 
void reset ()
 
void resetCpu ()
 
void setModel (model_t model)
 
void setCiaModel (bool newModel)
 
void setRoms (const uint8_t *kernal, const uint8_t *basic, const uint8_t *character)
 
double getMainCpuSpeed () const
 
void setBaseSid (c64sid *s)
 
bool addExtraSid (c64sid *s, int address)
 
void clearSids ()
 
const char * cpuCredits () const
 
const char * ciaCredits () const
 
const char * vicCredits () const
 
sidmemorygetMemInterface ()
 
uint_least16_t getCia1TimerA () const
 

Detailed Description

Commodore 64 emulation core.

It consists of the following chips:

Member Enumeration Documentation

◆ model_t

Enumerator
PAL_B 

PAL C64.

NTSC_M 

NTSC C64.

OLD_NTSC_M 

Old NTSC C64.

PAL_N 

C64 Drean.

PAL_M 

C64 Brasil.

Member Function Documentation

◆ addExtraSid()

bool libsidplayfp::c64::addExtraSid ( c64sid s,
int  address 
)

Add an extra SID.

Parameters
sthe sid emu to set
sidAddressbase address (e.g. 0xd420)
Returns
false if address is unsupported

◆ clearSids()

void libsidplayfp::c64::clearSids ( )

Remove all the SIDs.

◆ clock()

void libsidplayfp::c64::clock ( )
inline

Clock the emulation.

Exceptions
haltInstruction

◆ cpuCredits()

const char* libsidplayfp::c64::cpuCredits ( ) const
inline

Get the components credits

◆ getEventScheduler()

EventScheduler* libsidplayfp::c64::getEventScheduler ( )
inline

Get C64's event scheduler

Returns
the scheduler

◆ getMainCpuSpeed()

double libsidplayfp::c64::getMainCpuSpeed ( ) const
inline

Get the CPU clock speed.

Returns
the speed in Hertz

◆ setBaseSid()

void libsidplayfp::c64::setBaseSid ( c64sid s)

Set the base SID.

Parameters
sthe sid emu to set

◆ setCiaModel()

void libsidplayfp::c64::setCiaModel ( bool  newModel)

Set the cia model.

◆ setModel()

void libsidplayfp::c64::setModel ( model_t  model)

Set the c64 model.


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