Previous 199869 Revisions Next

r35036 Saturday 14th February, 2015 at 17:55:06 UTC by hap
higher resolution display decay base timer
[src/mess/drivers]cnsector.c comp4.c elecdet.c splitsec.c starwbc.c stopthie.c ticalc1x.c tispeak.c wildfire.c

trunk/src/mess/drivers/cnsector.c
r243547r243548
6363// The device strobes the outputs very fast, it is unnoticeable to the user.
6464// To prevent flickering here, we need to simulate a decay.
6565
66// decay time, in steps of 10ms
67#define DISPLAY_DECAY_TIME 4
66// decay time, in steps of 1ms
67#define DISPLAY_DECAY_TIME 40
6868
6969void cnsector_state::display_update()
7070{
r243547r243548
219219   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(cnsector_state, write_o))
220220   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(cnsector_state, write_r))
221221
222   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", cnsector_state, display_decay_tick, attotime::from_msec(10))
222   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", cnsector_state, display_decay_tick, attotime::from_msec(1))
223223
224224   MCFG_DEFAULT_LAYOUT(layout_cnsector)
225225
trunk/src/mess/drivers/comp4.c
r243547r243548
6464// The device strobes the outputs very fast, it is unnoticeable to the user.
6565// To prevent flickering here, we need to simulate a decay.
6666
67// decay time, in steps of 10ms
68#define DISPLAY_DECAY_TIME 2
67// decay time, in steps of 1ms
68#define DISPLAY_DECAY_TIME 25
6969
7070void comp4_state::display_update()
7171{
r243547r243548
190190   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(comp4_state, write_o))
191191   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(comp4_state, write_r))
192192
193   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", comp4_state, display_decay_tick, attotime::from_msec(10))
193   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", comp4_state, display_decay_tick, attotime::from_msec(1))
194194
195195   MCFG_DEFAULT_LAYOUT(layout_comp4)
196196
trunk/src/mess/drivers/elecdet.c
r243547r243548
7373// The device strobes the outputs very fast, it is unnoticeable to the user.
7474// To prevent flickering here, we need to simulate a decay.
7575
76// decay time, in steps of 10ms
77#define DISPLAY_DECAY_TIME 4
76// decay time, in steps of 1ms
77#define DISPLAY_DECAY_TIME 40
7878
7979void elecdet_state::display_update()
8080{
r243547r243548
275275   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(elecdet_state, write_r))
276276   MCFG_TMS1XXX_POWER_OFF_CB(WRITELINE(elecdet_state, auto_power_off))
277277
278   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", elecdet_state, display_decay_tick, attotime::from_msec(10))
278   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", elecdet_state, display_decay_tick, attotime::from_msec(1))
279279
280280   MCFG_DEFAULT_LAYOUT(layout_elecdet)
281281
trunk/src/mess/drivers/splitsec.c
r243547r243548
9898// The device strobes the outputs very fast, it is unnoticeable to the user.
9999// To prevent flickering here, we need to simulate a decay.
100100
101// decay time, in steps of 10ms
102#define DISPLAY_DECAY_TIME 4
101// decay time, in steps of 1ms
102#define DISPLAY_DECAY_TIME 40
103103
104104/* display layout, where number xy is lamp R(x),O(y)
105105
r243547r243548
308308   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(splitsec_state, write_o))
309309   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(splitsec_state, splitsec_write_r))
310310
311   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", splitsec_state, display_decay_tick, attotime::from_msec(10))
311   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", splitsec_state, display_decay_tick, attotime::from_msec(1))
312312
313313   MCFG_DEFAULT_LAYOUT(layout_splitsec)
314314
trunk/src/mess/drivers/starwbc.c
r243547r243548
6565// The device strobes the outputs very fast, it is unnoticeable to the user.
6666// To prevent flickering here, we need to simulate a decay.
6767
68// decay time, in steps of 10ms
69#define DISPLAY_DECAY_TIME 4
68// decay time, in steps of 1ms
69#define DISPLAY_DECAY_TIME 40
7070
7171void starwbc_state::display_update()
7272{
r243547r243548
252252   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(starwbc_state, write_o))
253253   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(starwbc_state, write_r))
254254
255   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", starwbc_state, display_decay_tick, attotime::from_msec(10))
255   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", starwbc_state, display_decay_tick, attotime::from_msec(1))
256256
257257   MCFG_DEFAULT_LAYOUT(layout_starwbc)
258258
trunk/src/mess/drivers/stopthie.c
r243547r243548
7272// The device strobes the outputs very fast, it is unnoticeable to the user.
7373// To prevent flickering here, we need to simulate a decay.
7474
75// decay time, in steps of 10ms
76#define DISPLAY_DECAY_TIME 4
75// decay time, in steps of 1ms
76#define DISPLAY_DECAY_TIME 40
7777
7878void stopthief_state::display_update()
7979{
r243547r243548
260260   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(stopthief_state, write_r))
261261   MCFG_TMS1XXX_POWER_OFF_CB(WRITELINE(stopthief_state, auto_power_off))
262262
263   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", stopthief_state, display_decay_tick, attotime::from_msec(10))
263   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", stopthief_state, display_decay_tick, attotime::from_msec(1))
264264
265265   MCFG_DEFAULT_LAYOUT(layout_stopthie)
266266
trunk/src/mess/drivers/ticalc1x.c
r243547r243548
7979// Devices with TMS09x0 strobe the outputs very fast, it is unnoticeable to the user.
8080// To prevent flickering here, we need to simulate a decay.
8181
82// decay time, in steps of 10ms
83#define DISPLAY_DECAY_TIME 5
82// decay time, in steps of 1ms
83#define DISPLAY_DECAY_TIME 50
8484
8585void ticalc1x_state::display_update()
8686{
r243547r243548
688688static MACHINE_CONFIG_START( t9base, ticalc1x_state )
689689
690690   /* basic machine hardware */
691   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", ticalc1x_state, display_decay_tick, attotime::from_msec(10))
691   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", ticalc1x_state, display_decay_tick, attotime::from_msec(1))
692692
693693   /* no video! */
694694
trunk/src/mess/drivers/tispeak.c
r243547r243548
127127// The device strobes the filament-enable very fast, it is unnoticeable to the user.
128128// To prevent flickering here, we need to simulate a decay.
129129
130// decay time, in steps of 10ms
131#define DISPLAY_DECAY_TIME 4
130// decay time, in steps of 1ms
131#define DISPLAY_DECAY_TIME 40
132132
133133void tispeak_state::display_update()
134134{
r243547r243548
482482   MCFG_TMS0270_WRITE_CTL_CB(DEVWRITE8("tms5100", tms5100_device, ctl_w))
483483   MCFG_TMS0270_WRITE_PDC_CB(DEVWRITELINE("tms5100", tms5100_device, pdc_w))
484484
485   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", tispeak_state, display_decay_tick, attotime::from_msec(10))
485   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", tispeak_state, display_decay_tick, attotime::from_msec(1))
486486   MCFG_DEFAULT_LAYOUT(layout_snspell) // max 9 digits
487487
488488   /* no video! */
trunk/src/mess/drivers/wildfire.c
r243547r243548
7272// The device strobes the outputs very fast, it is unnoticeable to the user.
7373// To prevent flickering here, we need to simulate a decay.
7474
75// decay time, in steps of 10ms
76#define DISPLAY_DECAY_TIME 4
75// decay time, in steps of 1ms
76#define DISPLAY_DECAY_TIME 40
7777
7878inline bool wildfire_state::index_is_7segled(int index)
7979{
r243547r243548
209209   MCFG_AMI_S2000_WRITE_D_CB(WRITE8(wildfire_state, write_d))
210210   MCFG_AMI_S2000_WRITE_A_CB(WRITE16(wildfire_state, write_a))
211211
212   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", wildfire_state, display_decay_tick, attotime::from_msec(10))
212   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", wildfire_state, display_decay_tick, attotime::from_msec(1))
213213
214214   MCFG_DEFAULT_LAYOUT(layout_wildfire)
215215


Previous 199869 Revisions Next


© 1997-2024 The MAME Team