openMSX
|
Models the 4 general purpose I/O pins on the Y8950 (controlled by registers r#18 and r#19) More...
#include <Y8950Periphery.hh>
Public Member Functions | |
virtual | ~Y8950Periphery ()=default |
virtual void | reset () |
virtual void | write (nibble outputs, nibble values, EmuTime::param time)=0 |
Write to (some of) the pins. | |
virtual nibble | read (EmuTime::param time)=0 |
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. | |
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 byte * | getReadCacheLine (word start) const |
virtual byte * | getWriteCacheLine (word start) |
Models the 4 general purpose I/O pins on the Y8950 (controlled by registers r#18 and r#19)
Definition at line 14 of file Y8950Periphery.hh.
|
virtualdefault |
Reimplemented in openmsx::PanasonicAudioPeriphery.
Definition at line 123 of file Y8950Periphery.cc.
References openmsx::MSXDevice::unmappedRead.
Reimplemented in openmsx::PanasonicAudioPeriphery.
Definition at line 127 of file Y8950Periphery.cc.
References openmsx::MSXDevice::unmappedWrite.
Reimplemented in openmsx::PanasonicAudioPeriphery.
Definition at line 115 of file Y8950Periphery.cc.
Referenced by readMem().
|
pure virtual |
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.
time | The moment in time the read occurs |
Implemented in openmsx::MusicModulePeriphery, openmsx::PanasonicAudioPeriphery, and openmsx::ToshibaAudioPeriphery.
Referenced by openmsx::Y8950::peekReg().
Definition at line 110 of file Y8950Periphery.cc.
References peekMem().
|
virtual |
Reimplemented in openmsx::PanasonicAudioPeriphery.
Definition at line 100 of file Y8950Periphery.cc.
|
virtual |
SP-OFF bit (bit 3 in Y8950 register 7)
Reimplemented in openmsx::ToshibaAudioPeriphery.
Definition at line 105 of file Y8950Periphery.cc.
Referenced by openmsx::Y8950::writeReg().
|
pure virtual |
Write to (some of) the pins.
outputs | A '1' bit indicates the corresponding bit is programmed as output. |
values | The actual value that is written, only bits for which the corresponding bit in the 'outputs' parameter is set are meaningful. |
time | The moment in time the write occurs |
Implemented in openmsx::MusicModulePeriphery, openmsx::PanasonicAudioPeriphery, and openmsx::ToshibaAudioPeriphery.
Referenced by openmsx::Y8950::writeReg().
Reimplemented in openmsx::PanasonicAudioPeriphery.
Definition at line 119 of file Y8950Periphery.cc.