ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Types | Public Member Functions | Private Attributes | List of all members
Cpc Class Referencefinal

#include <cpc.h>

Public Types

enum  CpcType : unsigned char { cpc464 = 0, cpc664 = 1, cpc6128 = 2 }
 
enum  RamSize : unsigned short int { ram64 = 64, ram128 = 128, ram256 = 256, ram512 = 512 }
 

Public Member Functions

 Cpc () ROLAND_DELETE Cpc(const Prefs &prefs)
 
 ~Cpc () ROLAND_DEFAULT int init() ROLAND_NOEXCEPT
 
void setSpeed (uint value)
 
uint speed () const
 
tUBYTE z80_in_handler (tREGPAIR port) ROLAND_NOEXCEPT
 
void z80_out_handler (tREGPAIR port, tUBYTE value) ROLAND_NOEXCEPT
 
void waitstates () ROLAND_NOEXCEPT
 
Z80z80 ()
 
Ppippi ()
 
Fdcfdc ()
 
Psgpsg ()
 
Vduvdu ()
 
Crtccrtc ()
 
Soundsound ()
 
MemManmemman ()
 
Colourscolours ()
 
Keyboardkeyboard ()
 
GateArraygatearray ()
 

Private Attributes

CpcType mCpcType
 
uint mSpeed
 
uint mBpp
 
Prefs mPrefs
 
Z80 mZ80
 
Crtc mCrtc
 
Ppi mPpi
 
Fdc mFdc
 
Psg mPsg
 
GateArray mGatearray
 
Keyboard mKeyboard
 
Colours mColours
 
MemMan mMemman
 
Sound mSound
 
Vdu mVdu
 

Detailed Description

Represents the CPC and all of its components and functions. What we need is a Monitor and a Keyboard. Roland will take yours. ;)

Member Enumeration Documentation

enum CpcType : unsigned char
strong
Enumerator
cpc464 
cpc664 
cpc6128 
enum RamSize : unsigned short int
strong
Enumerator
ram64 
ram128 
ram256 
ram512 

Constructor & Destructor Documentation

Cpc ( ) const
~Cpc ( )

Member Function Documentation

Colours& colours ( )
inline

References Cpc::mColours.

Referenced by VideoStd::init(), and VideoGL::init().

Crtc& crtc ( )
inline

References Cpc::mCrtc.

Fdc& fdc ( )
inline

References Cpc::mFdc.

GateArray& gatearray ( )
inline

References Cpc::mGatearray.

Keyboard& keyboard ( )
inline

References Cpc::mKeyboard.

MemMan& memman ( )
inline

References Cpc::mMemman.

Ppi& ppi ( )
inline

References Cpc::mPpi.

Psg& psg ( )
inline

References Cpc::mPsg.

void setSpeed ( uint  value)
inline

References Cpc::mSpeed.

Sound& sound ( )
inline
uint speed ( ) const
inline
Vdu& vdu ( )
inline

References Cpc::mVdu.

Referenced by VideoStd::init(), and VideoGL::init().

void waitstates ( )
Z80& z80 ( )
inline

References Cpc::mZ80.

tUBYTE z80_in_handler ( tREGPAIR  port)
void z80_out_handler ( tREGPAIR  port,
tUBYTE  value 
)

Member Data Documentation

uint mBpp
private
Colours mColours
private
CpcType mCpcType
private
Crtc mCrtc
private
Todo:
change this !!!!!!!!!!!!!

Referenced by Cpc::crtc(), Cpc::z80_in_handler(), and Cpc::z80_out_handler().

Fdc mFdc
private
GateArray mGatearray
private
Keyboard mKeyboard
private
MemMan mMemman
private
Ppi mPpi
private
Prefs mPrefs
private
Psg mPsg
private
Sound mSound
private

Referenced by Cpc::sound(), and Cpc::waitstates().

uint mSpeed
private

Referenced by Cpc::setSpeed(), and Cpc::speed().

Vdu mVdu
private

Referenced by Cpc::vdu(), and Cpc::waitstates().

Z80 mZ80
private

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