|
SGDK
A free and open development kit for the Sega Mega Drive
|
YM2612 support. More...
Go to the source code of this file.
Macros | |
| #define | YM2612_BASEPORT 0xA04000 |
| YM2612 base port address. | |
| #define | YM2612_writeSafe(port, data) |
| #define | YM2612_writeRegSafe(part, reg, data) |
Functions | |
| void | YM2612_reset (void) |
| Reset YM2612 chip. | |
| u8 | YM2612_read (const u16 port) |
| Read YM2612 port. | |
| u8 | YM2612_readStatus () |
| Return YM2612 status (busy and timer flag). | |
| void | YM2612_write (const u16 port, const u8 data) |
| Write YM2612 port. | |
| void | YM2612_writeReg (const u16 part, const u8 reg, const u8 data) |
| Set YM2612 register value. | |
| void | YM2612_enableDAC (void) |
| Enable YM2612 DAC. | |
| void | YM2612_disableDAC (void) |
| Disable YM2612 DAC. | |
YM2612 support.
This unit provides access to the YM2612 through the 68000 CPU.
| #define YM2612_writeRegSafe | ( | part, | |
| reg, | |||
| data ) |
| #define YM2612_writeSafe | ( | port, | |
| data ) |
Read YM2612 port.
| port | Port number (0-3) |
Reading YM2612 always return YM2612 status (busy and timer flag) whatever is the port read.
| u8 YM2612_readStatus | ( | ) |
Return YM2612 status (busy and timer flag).
Write YM2612 port.
| port | Port number (0-3) |
| data | Data to write |