mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +03:00
pc9801_118.cpp: Correct chip types in documentation; eliminate fake XTAL definition (nw)
This commit is contained in:
parent
7396442f24
commit
e3e9561773
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
NEC PC-9801-118 sound card
|
NEC PC-9801-118 sound card
|
||||||
|
|
||||||
YMF288 + some extra ports
|
YMF297 + some extra ports
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
- preliminary, presumably needs CS-4231 too, it's an extended clone of the already emulated AD1848 used on the Windows Sound System
|
- preliminary, presumably needs CS-4232 too, it's an extended clone of the already emulated AD1848 used on the Windows Sound System
|
||||||
- verify sound irq;
|
- verify sound irq;
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
@ -19,7 +19,8 @@
|
|||||||
#include "speaker.h"
|
#include "speaker.h"
|
||||||
|
|
||||||
|
|
||||||
#define MAIN_CLOCK_X2 XTAL(2'457'600)
|
#define XTAL_5B 24.576_MHz_XTAL
|
||||||
|
#define XTAL_5D 33.8688_MHz_XTAL
|
||||||
|
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
// GLOBAL VARIABLES
|
// GLOBAL VARIABLES
|
||||||
@ -41,7 +42,7 @@ WRITE_LINE_MEMBER(pc9801_118_device::sound_irq)
|
|||||||
MACHINE_CONFIG_START(pc9801_118_device::device_add_mconfig)
|
MACHINE_CONFIG_START(pc9801_118_device::device_add_mconfig)
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("opn3", YM2608, MAIN_CLOCK_X2*4) // actually YMF288, unknown clock / divider, might be X1 x 5 actually
|
MCFG_DEVICE_ADD("opn3", YM2608, XTAL_5B * 2 / 5) // actually YMF297-F, unknown clock / divider, more likely uses 5D clock
|
||||||
MCFG_YM2608_IRQ_HANDLER(WRITELINE(*this, pc9801_118_device, sound_irq))
|
MCFG_YM2608_IRQ_HANDLER(WRITELINE(*this, pc9801_118_device, sound_irq))
|
||||||
MCFG_AY8910_PORT_A_READ_CB(READ8(*this, pc9801_118_device, opn_porta_r))
|
MCFG_AY8910_PORT_A_READ_CB(READ8(*this, pc9801_118_device, opn_porta_r))
|
||||||
//MCFG_AY8910_PORT_B_READ_CB(READ8(*this, pc9801_state, opn_portb_r))
|
//MCFG_AY8910_PORT_B_READ_CB(READ8(*this, pc9801_state, opn_portb_r))
|
||||||
|
Loading…
Reference in New Issue
Block a user