From e3e9561773b77faf5d8594086c52b66e3295df0e Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 10 Nov 2018 18:38:34 -0500 Subject: pc9801_118.cpp: Correct chip types in documentation; eliminate fake XTAL definition (nw) --- src/devices/bus/cbus/pc9801_118.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/devices/bus/cbus/pc9801_118.cpp b/src/devices/bus/cbus/pc9801_118.cpp index 7c054f52c6f..78da6ba04c9 100644 --- a/src/devices/bus/cbus/pc9801_118.cpp +++ b/src/devices/bus/cbus/pc9801_118.cpp @@ -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)) -- cgit v1.2.3