Previous 199869 Revisions Next

r36122 Friday 27th February, 2015 at 12:21:43 UTC by hap
added 430khz resonator for xtal.h
[src/emu/drivers]xtal.h
[src/mess/drivers]hh_tms1k.c

trunk/src/emu/drivers/xtal.h
r244633r244634
233233
234234   XTAL_384kHz         = 384000,       /* Commonly used for driving OKI MSM5205 */
235235   XTAL_400kHz         = 400000,       /* OKI MSM5205 on Great Swordman h/w */
236   XTAL_430kHz         = 430000,
236237   XTAL_455kHz         = 455000,       /* OKI MSM5205 on Gladiator h/w */
237238   XTAL_512kHz         = 512000,       /* Toshiba TC8830F */
238239   XTAL_640kHz         = 640000,       /* NEC UPD7759, Texas Instruments Speech Chips @ 8khz */
trunk/src/mess/drivers/hh_tms1k.c
r244633r244634
4242      m_display_maxx(0)
4343   { }
4444
45   // devices
4546   required_device<cpu_device> m_maincpu;
4647   optional_ioport_array<7> m_inp_matrix; // max 7
4748   optional_device<speaker_sound_device> m_speaker;
4849   
50   // misc common
4951   UINT16 m_r;
5052   UINT16 m_o;
5153   UINT16 m_inp_mux;
5254   bool m_power_on;
5355
56   UINT8 read_inputs(int columns);
57   DECLARE_INPUT_CHANGED_MEMBER(tms0980_power_button);
58   DECLARE_WRITE_LINE_MEMBER(tms0980_auto_power_off);
59
60   virtual void machine_start();
61   virtual void machine_reset();
62
63   // display common
5464   int m_display_wait;
5565   int m_display_maxy;
5666   int m_display_maxx;
r244633r244634
6171   UINT16 m_7seg_mask[0x20];
6272
6373   TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick);
64   bool index_is_7segled(int index);
6574   void display_update();
6675   
67   UINT8 read_inputs(int columns);
68   DECLARE_INPUT_CHANGED_MEMBER(tms0980_power_button);
69   DECLARE_WRITE_LINE_MEMBER(tms0980_auto_power_off);
70
7176   // game-specific handlers
7277   void mathmagi_display();
7378   DECLARE_READ8_MEMBER(mathmagi_read_k);
r244633r244634
131136   DECLARE_READ8_MEMBER(unk3403_read_k);
132137   DECLARE_WRITE16_MEMBER(unk3403_write_r);
133138   DECLARE_WRITE16_MEMBER(unk3403_write_o);
134
135   virtual void machine_start();
136   virtual void machine_reset();
137139};
138140
139141
r244633r244634
144146   memset(m_display_cache, 0, sizeof(m_display_cache));
145147   memset(m_display_decay, 0, sizeof(m_display_decay));
146148   memset(m_7seg_mask, 0, sizeof(m_7seg_mask));
147
149   
148150   m_o = 0;
149151   m_r = 0;
150152   m_inp_mux = 0;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team