From 1bd405051647c50b930fa092e0f3e8eb171d9b2a Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 7 Jan 2017 00:26:23 +1100 Subject: [PATCH] MT 06216 --- src/mame/drivers/ptcsol.cpp | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/ptcsol.cpp b/src/mame/drivers/ptcsol.cpp index 66ce364ca5c..eef88611f54 100644 --- a/src/mame/drivers/ptcsol.cpp +++ b/src/mame/drivers/ptcsol.cpp @@ -87,22 +87,33 @@ - When it says use 2,4,6,8 keys, you can use the keyboard arrow keys. Monitor Commands: - - TE - ? + - TE - return to terminal mode - DU - dump memory - EN - modify memory - EX - Go (execute) - - CU - ? + - CU - Insert or remove a custom command - SE - Set parameters (eg tape speed) - SA - Save - GE - Load - XE - Load and run - CA - List the files on a tape + How to use the music system: + 1. Choose the "music" item from the software list + 2. Type XEQ press Enter + 3. When the program starts, press R, you are back in the monitor + 4. Type GET press Enter + 5. When this finishes loading, type EX 0 press Enter, there's no response + 6. Press F, wait for numbers to appear + 7. Press S, wait for numbers to appear + 8. Press P, music will be heard (it isn't very loud) + ****************************************************************************/ #include "emu.h" #include "cpu/i8085/i8085.h" #include "machine/keyboard.h" +#include "sound/speaker.h" #include "sound/wave.h" #include "imagedev/cassette.h" #include "machine/ay31015.h" @@ -122,8 +133,6 @@ struct cass_data_t { } output; }; -#define KEYBOARD_TAG "keyboard" - class sol20_state : public driver_device { public: @@ -726,6 +735,7 @@ static MACHINE_CONFIG_START( sol20, sol20_state ) MCFG_CPU_ADD("maincpu",I8080, XTAL_14_31818MHz/7) MCFG_CPU_PROGRAM_MAP(sol20_mem) MCFG_CPU_IO_MAP(sol20_io) + MCFG_I8085A_INTE(DEVWRITELINE("speaker", speaker_sound_device, level_w)) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -741,6 +751,8 @@ static MACHINE_CONFIG_START( sol20, sol20_state ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") + MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.00) // music board MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) // cass1 speaker MCFG_SOUND_WAVE_ADD(WAVE2_TAG, "cassette2") @@ -763,7 +775,7 @@ static MACHINE_CONFIG_START( sol20, sol20_state ) MCFG_DEVICE_ADD("uart_s", AY31015, 0) MCFG_AY31015_TX_CLOCK(4800.0) MCFG_AY31015_RX_CLOCK(4800.0) - MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0) + MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0) MCFG_GENERIC_KEYBOARD_CB(WRITE8(sol20_state, kbd_put)) MCFG_SOFTWARE_LIST_ADD("cass_list", "sol20_cass")