openMSX
Public Member Functions | List of all members
openmsx::MusicModulePeriphery Class Referencefinal
Inheritance diagram for openmsx::MusicModulePeriphery:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MusicModulePeriphery:
Collaboration graph
[legend]

Public Member Functions

 MusicModulePeriphery (MSXAudio &audio)
 
void write (nibble outputs, nibble values, EmuTime::param time) override
 Write to (some of) the pins.
 
nibble read (EmuTime::param time) override
 Read from (some of) the pins Some of the pins might be programmed as output, but this method doesn't care about that, it should return the value of all pins as-if they were all programmed as input.
 
template<typename Archive >
void serialize (Archive &, unsigned)
 
- Public Member Functions inherited from openmsx::Y8950Periphery
virtual ~Y8950Periphery ()=default
 
virtual void reset ()
 
virtual void setSPOFF (bool value, EmuTime::param time)
 SP-OFF bit (bit 3 in Y8950 register 7)
 
virtual byte readMem (word address, EmuTime::param time)
 
virtual byte peekMem (word address, EmuTime::param time) const
 
virtual void writeMem (word address, byte value, EmuTime::param time)
 
virtual const bytegetReadCacheLine (word start) const
 
virtual bytegetWriteCacheLine (word start) const
 

Detailed Description

Definition at line 22 of file Y8950Periphery.cc.

Constructor & Destructor Documentation

◆ MusicModulePeriphery()

openmsx::MusicModulePeriphery::MusicModulePeriphery ( MSXAudio audio)
explicit

Definition at line 133 of file Y8950Periphery.cc.

Member Function Documentation

◆ read()

nibble openmsx::MusicModulePeriphery::read ( EmuTime::param  time)
overridevirtual

Read from (some of) the pins Some of the pins might be programmed as output, but this method doesn't care about that, it should return the value of all pins as-if they were all programmed as input.

Parameters
timeThe moment in time the read occurs

Implements openmsx::Y8950Periphery.

Definition at line 146 of file Y8950Periphery.cc.

Referenced by write().

◆ serialize()

template<typename Archive >
void openmsx::MusicModulePeriphery::serialize ( Archive &  ,
unsigned   
)
inline

Definition at line 30 of file Y8950Periphery.cc.

◆ write()

void openmsx::MusicModulePeriphery::write ( nibble  outputs,
nibble  values,
EmuTime::param  time 
)
overridevirtual

Write to (some of) the pins.

Parameters
outputsA '1' bit indicates the corresponding bit is programmed as output.
valuesThe actual value that is written, only bits for which the corresponding bit in the 'outputs' parameter is set are meaningful.
timeThe moment in time the write occurs

Implements openmsx::Y8950Periphery.

Definition at line 138 of file Y8950Periphery.cc.

References read(), and openmsx::Y8950::setEnabled().


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