pc9801_118.cpp: Correct chip types in documentation; eliminate fake XTAL definition (nw)

This commit is contained in:
AJR 2018-11-10 18:38:34 -05:00
parent 7396442f24
commit e3e9561773

View File

@ -4,10 +4,10 @@
NEC PC-9801-118 sound card
YMF288 + some extra ports
YMF297 + some extra ports
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;
***************************************************************************/
@ -19,7 +19,8 @@
#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
@ -41,7 +42,7 @@ WRITE_LINE_MEMBER(pc9801_118_device::sound_irq)
MACHINE_CONFIG_START(pc9801_118_device::device_add_mconfig)
SPEAKER(config, "lspeaker").front_left();
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_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))