Previous 199869 Revisions Next

r18781 Tuesday 30th October, 2012 at 15:08:58 UTC by Dirk Best
px4: add speaker
[src/mess/drivers]px4.c

trunk/src/mess/drivers/px4.c
r18780r18781
1616#include "machine/tf20.h"
1717#include "machine/ram.h"
1818#include "machine/nvram.h"
19#include "sound/speaker.h"
1920#include "px4.lh"
2021
2122
r18780r18781
7778         m_z80(*this, "maincpu"),
7879         m_ram(*this, RAM_TAG),
7980         m_centronics(*this, "centronics"),
80         m_ext_cas(*this, "extcas")
81         m_ext_cas(*this, "extcas"),
82         m_speaker(*this, SPEAKER_TAG)
8183         { }
8284
8385   // internal devices
r18780r18781
8587   required_device<ram_device> m_ram;
8688   required_device<centronics_device> m_centronics;
8789   required_device<cassette_image_device> m_ext_cas;
90   required_device<device_t> m_speaker;
8891
8992   /* gapnit register */
9093   UINT8 m_ctrl1;
r18780r18781
908911   output_set_value("led_1", BIT(data, 5)); // num lock
909912   output_set_value("led_2", BIT(data, 6)); // "led 2"
910913
911   // bit 7, sp - speaker
914   speaker_level_w(m_speaker, BIT(data, 7));
912915}
913916
914917
r18780r18781
13621365
13631366   MCFG_PALETTE_LENGTH(2)
13641367
1368   // sound hardware
1369   MCFG_SPEAKER_STANDARD_MONO("mono")
1370   MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0)
1371   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
1372
13651373   MCFG_TIMER_DRIVER_ADD_PERIODIC("one_sec", px4_state, upd7508_1sec_callback, attotime::from_seconds(1))
13661374   MCFG_TIMER_DRIVER_ADD_PERIODIC("frc", px4_state, frc_tick, attotime::from_hz(XTAL_7_3728MHz / 2 / 6))
13671375
r18780r18781
14421450//**************************************************************************
14431451
14441452//    YEAR  NAME  PARENT  COMPAT  MACHINE  INPUT      CLASS      INIT  COMPANY  FULLNAME  FLAGS
1445COMP( 1985, px4,  0,      0,      px4,     px4_h450a, px4_state, px4,  "Epson", "PX-4",   GAME_NO_SOUND_HW )
1446COMP( 1985, px4p, px4,    0,      px4p,    px4_h450a, px4_state, px4p, "Epson", "PX-4+",  GAME_NO_SOUND_HW )
1453COMP( 1985, px4,  0,      0,      px4,     px4_h450a, px4_state, px4,  "Epson", "PX-4",   0 )
1454COMP( 1985, px4p, px4,    0,      px4p,    px4_h450a, px4_state, px4p, "Epson", "PX-4+",  0 )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team