◆ init()
bool OPL::RetroWaveOPL3::OPL::init |
( |
| ) |
|
|
overridevirtual |
Initializes the OPL emulator.
- Returns
- true on success, false on failure
Implements OPL::OPL.
◆ reset()
void OPL::RetroWaveOPL3::OPL::reset |
( |
| ) |
|
|
overridevirtual |
◆ write()
void OPL::RetroWaveOPL3::OPL::write |
( |
int |
a, |
|
|
int |
v |
|
) |
| |
|
overridevirtual |
Writes a byte to the given I/O port.
- Parameters
-
a | port address |
v | value, which will be written |
Implements OPL::OPL.
◆ read()
byte OPL::RetroWaveOPL3::OPL::read |
( |
int |
a | ) |
|
|
overridevirtual |
Reads a byte from the given I/O port.
- Parameters
-
- Returns
- value read
Implements OPL::OPL.
◆ writeReg()
void OPL::RetroWaveOPL3::OPL::writeReg |
( |
int |
r, |
|
|
int |
v |
|
) |
| |
|
overridevirtual |
Function to directly write to a specific OPL register. This writes to both chips for a Dual OPL2. We allow writing to secondary OPL registers by using register values >= 0x100.
- Parameters
-
r | hardware register number to write to |
v | value, which will be written |
Implements OPL::OPL.
The documentation for this class was generated from the following file: