Previous 199869 Revisions Next

r45195 Wednesday 24th February, 2016 at 05:38:44 UTC by hap
tispeak: nothing much
[src/mame/drivers]mbdtower.cpp tispeak.cpp tispellb.cpp

trunk/src/mame/drivers/mbdtower.cpp
r253706r253707
242242   save_item(NAME(m_sensor_blind));
243243}
244244
245
246245static MACHINE_CONFIG_START( mbdtower, mbdtower_state )
247246
248247   /* basic machine hardware */
trunk/src/mame/drivers/tispeak.cpp
r253706r253707
431431   virtual DECLARE_INPUT_CHANGED_MEMBER(power_button) override;
432432   void power_off();
433433   void prepare_display();
434   bool vfd_filament_on() { return m_display_decay[15][16] != 0; }
434435
435436   DECLARE_READ8_MEMBER(snspell_read_k);
436437   DECLARE_WRITE16_MEMBER(snmath_write_o);
r253706r253707
540541
541542void tispeak_state::prepare_display()
542543{
543   UINT16 gridmask = (m_display_decay[15][16] != 0) ? 0xffff : 0x8000; // vfd filament on/off
544   UINT16 gridmask = vfd_filament_on() ? 0xffff : 0x8000;
544545   set_display_segmask(0x21ff, 0x3fff);
545546   display_matrix(16+1, 16, m_plate | 1<<16, m_grid & gridmask);
546547}
r253706r253707
548549WRITE16_MEMBER(tispeak_state::snspell_write_r)
549550{
550551   // R13: power-off request, on falling edge
551   if ((m_r >> 13 & 1) && !(data >> 13 & 1))
552   if (~data & m_r & 0x2000)
552553      power_off();
553554
554555   // R0-R7: input mux and select digit (+R8 if the device has 9 digits)
r253706r253707
614615   m_tms5100->pdc_w(data >> 10);
615616
616617   // R9: power-off request, on falling edge
617   if ((m_r >> 9 & 1) && !(data >> 9 & 1))
618   if (~data & m_r & 0x200)
618619      power_off();
619620
620621   // R0-R8: input mux
r253706r253707
686687   m_inp_mux = (m_inp_mux & 0xff) | (data << 3 & 0x100);
687688
688689   // R6: power-off request, on falling edge
689   if ((m_r >> 6 & 1) && !(data >> 6 & 1))
690   if (~data & m_r & 0x40)
690691      power_off();
691692
692693   // R7-R10: LCD data
trunk/src/mame/drivers/tispellb.cpp
r253706r253707
8383   virtual DECLARE_INPUT_CHANGED_MEMBER(power_button) override;
8484   void power_off();
8585   void prepare_display();
86   bool vfd_filament_on() { return m_display_decay[15][16] != 0; }
8687
8788   DECLARE_READ8_MEMBER(main_read_k);
8889   DECLARE_WRITE16_MEMBER(main_write_o);
r253706r253707
139140void tispellb_state::prepare_display()
140141{
141142   // almost same as snspell
142   UINT16 gridmask = (m_display_decay[15][16] != 0) ? 0xffff : 0x8000; // vfd filament on/off
143   UINT16 gridmask = vfd_filament_on() ? 0xffff : 0x8000;
143144   set_display_segmask(0xff, 0x3fff);
144145   display_matrix(16+1, 16, m_plate | 1<<16, m_grid & gridmask);
145146}
r253706r253707
154155WRITE16_MEMBER(tispellb_state::main_write_r)
155156{
156157   // R13: power-off request, on falling edge
157   if ((m_r >> 13 & 1) && !(data >> 13 & 1))
158   if (~data & m_r & 0x2000)
158159      power_off();
159160
160161   // R0-R6: input mux


Previous 199869 Revisions Next


© 1997-2024 The MAME Team