Previous 199869 Revisions Next

r23642 Tuesday 11th June, 2013 at 21:30:11 UTC by Oliver Stöneberg
removed unused private field m_variant from upd1990a_device (nw)
[src/emu/machine]upd1990a.c upd1990a.h

trunk/src/emu/machine/upd1990a.c
r23641r23642
4646//  upd1990a_device - constructor
4747//-------------------------------------------------
4848
49upd1990a_device::upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant)
49upd1990a_device::upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
5050   : device_t(mconfig, type, name, tag, owner, clock),
5151      device_rtc_interface(mconfig, *this),
5252      m_write_data(*this),
5353      m_write_tp(*this),
5454      m_data_out(0),
5555      m_c(0),
56      m_clk(0),
57      m_variant(variant)
56      m_clk(0)
5857{
5958}
6059
r23641r23642
6564      m_write_tp(*this),
6665      m_data_out(0),
6766      m_c(0),
68      m_clk(0),
69      m_variant(TYPE_1990A)
67      m_clk(0)
7068{
7169}
7270
7371upd4990a_device::upd4990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
74   : upd1990a_device(mconfig, UPD4990A, "uPD4990A", tag, owner, clock, TYPE_4990A) { }
72   : upd1990a_device(mconfig, UPD4990A, "uPD4990A", tag, owner, clock) { }
7573
7674
7775//-------------------------------------------------
trunk/src/emu/machine/upd1990a.h
r23641r23642
5353{
5454public:
5555   // construction/destruction
56   upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant);
56   upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
5757   upd1990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
5858
5959   template<class _data> void set_data_callback(_data data) { m_write_data.set_callback(data); }
r23641r23642
7979   // device_rtc_interface overrides
8080   virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second);
8181
82   enum
83   {
84      TYPE_1990A = 0,
85      TYPE_4990A
86   };
87
8882private:
8983   enum
9084   {
r23641r23642
122116   int m_tp;                   // time pulse
123117   int m_c_unlatched;          // command waiting for STB
124118
125   int m_variant;
126
127119   // timers
128120   emu_timer *m_timer_clock;
129121   emu_timer *m_timer_tp;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team