Previous 199869 Revisions Next

r17984 Tuesday 18th September, 2012 at 05:28:33 UTC by Aaron Giles
Stop allocating arrays of UINT8s for the tokens, when
we can allocate objects of the real type.
[src/emu/imagedev]flopdrv.c
[src/emu/machine]6525tpi.c 68681.c 74148.c 74153.c adc083x.c adc1038.c adc1213x.c idectrl.c k053252.c latch8.c mb14241.c mb87078.c pd4990a.c pic8259.c pit8253.c rp5h01.c s3c2400.c s3c2410.c s3c2440.c smc91c9x.c tms6100.c upd4701.c wd17xx.c
[src/emu/sound]2151intf.c 2203intf.c 2413intf.c 2608intf.c 2610intf.c 2612intf.c 262intf.c 3526intf.c 3812intf.c 8950intf.c aica.c astrocde.c ay8910.c beep.c c140.c c6280.c cdda.c cem3394.c digitalk.c dmadac.c es5506.c es8712.c flt_rc.c flt_vol.c gaelco.c hc55516.c iremga20.c k005289.c k007232.c k051649.c k053260.c k056800.c msm5205.c msm5232.c multipcm.c n63701x.c namco.c nes_apu.c nile.c okim6258.c okim6376.c qsound.c rf5c400.c rf5c68.c s14001a.c s2636.c saa1099.c scsp.c segapcm.c sn76477.c sn76496.c snkwave.c sp0250.c sp0256.c speaker.c st0016.c t6w28.c tiaintf.c tms3615.c tms36xx.c tms5110.c tms5220.c upd7759.c vlm5030.c vrender0.c x1_010.c ymf271.c ymf278b.c ymz280b.c zsg2.c
[src/emu/video]hd63484.c i8275.c s2636.c tlc34076.c tms9927.c voodoo.c
[src/mame/audio]amiga.c beezer.c cps3.c exidy.c exidy440.c flower.c geebee.c gomoku.c gridlee.c hyprolyb.c irem.c leland.c m72.c micro3d.c namco52.c namco54.c phoenix.c pleiads.c polepos.c redbaron.c segasnd.c seibu.c snes_snd.c snk6502.c taitosnd.c tiamc1.c timeplt.c trackfld.c tx1.c warpwarp.c wiping.c
[src/mame/drivers]mjkjidai.c renegade.c
[src/mame/machine]buggychl.c cd32.c decocass.c gaelco3d.c mathbox.c namco06.c namco50.c namco51.c namco53.c namco62.c namcoio.c nmk112.c taitoio.c
[src/mame/video]atarirle.c deco16ic.c decocomn.c kan_pand.c konicdev.c taitoic.c vrender0.c
[src/mess/audio]channelf.c dave.c gb.c gmaster.c lynx.c mac.c mea8000.c socrates.c special.c svision.c t6721.c upd1771.c vc4000.c wswan.c
[src/mess/machine]990_tap.c applefdc.c at45dbxx.c atarifdc.c ay31015.c beta.c ds1315.c e05a03.c er59256.c hd63450.c i8271.c kr2376.c mc68328.c mc6843.c mc6846.c mc6854.c micropolis.c mm58274c.c mos6530.c omti8621.c pc_lpt.c pcf8593.c pf10.c s3c44b0.c sst39vfx.c strata.c tf20.c upd7002.c upd71071.c upd765.c
[src/mess/video]733_asr.c 911_vdt.c apollo.c crt.c dl1416.c k1ge.c vdc8563.c vic4567.c vic6567.c vtvideo.c

trunk/src/mame/audio/micro3d.c
r17983r17984
407407   : device_t(mconfig, MICRO3D, "Microprose Custom", tag, owner, clock),
408408     device_sound_interface(mconfig, *this)
409409{
410   m_token = global_alloc_array_clear(UINT8, sizeof(noise_state));
410   m_token = global_alloc_clear(noise_state);
411411}
412412
413413//-------------------------------------------------
trunk/src/mame/audio/warpwarp.c
r17983r17984
247247   : device_t(mconfig, WARPWARP, "Warp Warp Custom", tag, owner, clock),
248248     device_sound_interface(mconfig, *this)
249249{
250   m_token = global_alloc_array_clear(UINT8, sizeof(warpwarp_sound_state));
250   m_token = global_alloc_clear(warpwarp_sound_state);
251251}
252252
253253//-------------------------------------------------
trunk/src/mame/audio/phoenix.c
r17983r17984
576576   : device_t(mconfig, PHOENIX, "Phoenix Custom", tag, owner, clock),
577577     device_sound_interface(mconfig, *this)
578578{
579   m_token = global_alloc_array_clear(UINT8, sizeof(phoenix_sound_state));
579   m_token = global_alloc_clear(phoenix_sound_state);
580580}
581581
582582//-------------------------------------------------
trunk/src/mame/audio/namco52.c
r17983r17984
228228namco_52xx_device::namco_52xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
229229   : device_t(mconfig, NAMCO_52XX, "Namco 52xx", tag, owner, clock)
230230{
231   m_token = global_alloc_array_clear(UINT8, sizeof(namco_52xx_state));
231   m_token = global_alloc_clear(namco_52xx_state);
232232}
233233
234234//-------------------------------------------------
trunk/src/mame/audio/segasnd.c
r17983r17984
182182   : device_t(mconfig, SEGASPEECH, "Sega Speech Sound Board", tag, owner, clock),
183183     device_sound_interface(mconfig, *this)
184184{
185   m_token = global_alloc_array_clear(UINT8, sizeof(speech_state));
185   m_token = global_alloc_clear(speech_state);
186186}
187187
188188//-------------------------------------------------
r17983r17984
885885   : device_t(mconfig, SEGAUSB, "Sega Universal Sound Board", tag, owner, clock),
886886     device_sound_interface(mconfig, *this)
887887{
888   m_token = global_alloc_array_clear(UINT8, sizeof(usb_state));
888   m_token = global_alloc_clear(usb_state);
889889}
890890
891891//-------------------------------------------------
trunk/src/mame/audio/taitosnd.c
r17983r17984
317317tc0140syt_device::tc0140syt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
318318   : device_t(mconfig, TC0140SYT, "Taito TC0140SYT", tag, owner, clock)
319319{
320   m_token = global_alloc_array_clear(UINT8, sizeof(tc0140syt_state));
320   m_token = global_alloc_clear(tc0140syt_state);
321321}
322322
323323//-------------------------------------------------
trunk/src/mame/audio/wiping.c
r17983r17984
265265   : device_t(mconfig, WIPING, "Wiping Custom", tag, owner, clock),
266266     device_sound_interface(mconfig, *this)
267267{
268   m_token = global_alloc_array_clear(UINT8, sizeof(wiping_sound_state));
268   m_token = global_alloc_clear(wiping_sound_state);
269269}
270270
271271//-------------------------------------------------
trunk/src/mame/audio/leland.c
r17983r17984
576576   : device_t(mconfig, LELAND, "Leland DAC", tag, owner, clock),
577577     device_sound_interface(mconfig, *this)
578578{
579   m_token = global_alloc_array_clear(UINT8, sizeof(leland_sound_state));
579   m_token = global_alloc_clear(leland_sound_state);
580580}
581581
582582leland_sound_device::leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
583583   : device_t(mconfig, type, name, tag, owner, clock),
584584     device_sound_interface(mconfig, *this)
585585{
586   m_token = global_alloc_array_clear(UINT8, sizeof(leland_sound_state));
586   m_token = global_alloc_clear(leland_sound_state);
587587}
588588
589589//-------------------------------------------------
trunk/src/mame/audio/gomoku.c
r17983r17984
282282   : device_t(mconfig, GOMOKU, "Gomoku Custom", tag, owner, clock),
283283     device_sound_interface(mconfig, *this)
284284{
285   m_token = global_alloc_array_clear(UINT8, sizeof(gomoku_sound_state));
285   m_token = global_alloc_clear(gomoku_sound_state);
286286}
287287
288288//-------------------------------------------------
trunk/src/mame/audio/seibu.c
r17983r17984
607607   : device_t(mconfig, SEIBU_ADPCM, "Seibu ADPCM", tag, owner, clock),
608608     device_sound_interface(mconfig, *this)
609609{
610   m_token = global_alloc_array_clear(UINT8, sizeof(seibu_adpcm_state));
610   m_token = global_alloc_clear(seibu_adpcm_state);
611611}
612612
613613//-------------------------------------------------
trunk/src/mame/audio/gridlee.c
r17983r17984
185185   : device_t(mconfig, GRIDLEE, "Gridlee Custom", tag, owner, clock),
186186     device_sound_interface(mconfig, *this)
187187{
188   m_token = global_alloc_array_clear(UINT8, sizeof(gridlee_sound_state));
188   m_token = global_alloc_clear(gridlee_sound_state);
189189}
190190
191191//-------------------------------------------------
trunk/src/mame/audio/tiamc1.c
r17983r17984
335335   : device_t(mconfig, TIAMC1, "TIA-MC1 Custom", tag, owner, clock),
336336     device_sound_interface(mconfig, *this)
337337{
338   m_token = global_alloc_array_clear(UINT8, sizeof(tiamc1_sound_state));
338   m_token = global_alloc_clear(tiamc1_sound_state);
339339}
340340
341341//-------------------------------------------------
trunk/src/mame/audio/flower.c
r17983r17984
360360   : device_t(mconfig, FLOWER, "Flower Custom", tag, owner, clock),
361361     device_sound_interface(mconfig, *this)
362362{
363   m_token = global_alloc_array_clear(UINT8, sizeof(flower_sound_state));
363   m_token = global_alloc_clear(flower_sound_state);
364364}
365365
366366//-------------------------------------------------
trunk/src/mame/audio/exidy.c
r17983r17984
424424   : device_t(mconfig, EXIDY, "Exidy SFX", tag, owner, clock),
425425     device_sound_interface(mconfig, *this)
426426{
427   m_token = global_alloc_array_clear(UINT8, sizeof(exidy_sound_state));
427   m_token = global_alloc_clear(exidy_sound_state);
428428}
429429
430430exidy_sound_device::exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
431431   : device_t(mconfig, type, name, tag, owner, clock),
432432     device_sound_interface(mconfig, *this)
433433{
434   m_token = global_alloc_array_clear(UINT8, sizeof(exidy_sound_state));
434   m_token = global_alloc_clear(exidy_sound_state);
435435}
436436
437437//-------------------------------------------------
trunk/src/mame/audio/cps3.c
r17983r17984
175175   : device_t(mconfig, CPS3, "CPS3 Custom", tag, owner, clock),
176176     device_sound_interface(mconfig, *this)
177177{
178   m_token = global_alloc_array_clear(UINT8, sizeof(cps3_sound_state));
178   m_token = global_alloc_clear(cps3_sound_state);
179179}
180180
181181//-------------------------------------------------
trunk/src/mame/audio/hyprolyb.c
r17983r17984
141141   : device_t(mconfig, HYPROLYB_ADPCM, "Hyper Olympics Audio", tag, owner, clock),
142142     device_sound_interface(mconfig, *this)
143143{
144   m_token = global_alloc_array_clear(UINT8, sizeof(hyprolyb_adpcm_state));
144   m_token = global_alloc_clear(hyprolyb_adpcm_state);
145145}
146146
147147//-------------------------------------------------
trunk/src/mame/audio/timeplt.c
r17983r17984
266266   : device_t(mconfig, TIMEPLT_AUDIO, "Time Pilot Audio", tag, owner, clock),
267267     device_sound_interface(mconfig, *this)
268268{
269   m_token = global_alloc_array_clear(UINT8, sizeof(timeplt_audio_state));
269   m_token = global_alloc_clear(timeplt_audio_state);
270270}
271271
272272//-------------------------------------------------
trunk/src/mame/audio/amiga.c
r17983r17984
282282   : device_t(mconfig, AMIGA, "Amiga Paula", tag, owner, clock),
283283     device_sound_interface(mconfig, *this)
284284{
285   m_token = global_alloc_array_clear(UINT8, sizeof(amiga_audio));
285   m_token = global_alloc_clear(amiga_audio);
286286}
287287
288288//-------------------------------------------------
trunk/src/mame/audio/trackfld.c
r17983r17984
166166   : device_t(mconfig, TRACKFLD_AUDIO, "Track And Field Audio", tag, owner, clock),
167167     device_sound_interface(mconfig, *this)
168168{
169   m_token = global_alloc_array_clear(UINT8, sizeof(trackfld_audio_state));
169   m_token = global_alloc_clear(trackfld_audio_state);
170170}
171171
172172//-------------------------------------------------
trunk/src/mame/audio/redbaron.c
r17983r17984
231231   : device_t(mconfig, REDBARON, "Red Baron Custom", tag, owner, clock),
232232     device_sound_interface(mconfig, *this)
233233{
234   m_token = global_alloc_array_clear(UINT8, sizeof(redbaron_sound_state));
234   m_token = global_alloc_clear(redbaron_sound_state);
235235}
236236
237237//-------------------------------------------------
trunk/src/mame/audio/namco54.c
r17983r17984
184184namco_54xx_device::namco_54xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
185185   : device_t(mconfig, NAMCO_54XX, "Namco 54xx", tag, owner, clock)
186186{
187   m_token = global_alloc_array_clear(UINT8, sizeof(namco_54xx_state));
187   m_token = global_alloc_clear(namco_54xx_state);
188188}
189189
190190//-------------------------------------------------
trunk/src/mame/audio/snk6502.c
r17983r17984
12551255   : device_t(mconfig, SNK6502, "snk6502 Custom", tag, owner, clock),
12561256     device_sound_interface(mconfig, *this)
12571257{
1258   m_token = global_alloc_array_clear(UINT8, sizeof(snk6502_sound_state));
1258   m_token = global_alloc_clear(snk6502_sound_state);
12591259}
12601260
12611261//-------------------------------------------------
trunk/src/mame/audio/exidy440.c
r17983r17984
995995   : device_t(mconfig, EXIDY440, "Exidy 440 CVSD", tag, owner, clock),
996996     device_sound_interface(mconfig, *this)
997997{
998   m_token = global_alloc_array_clear(UINT8, sizeof(exidy440_audio_state));
998   m_token = global_alloc_clear(exidy440_audio_state);
999999}
10001000
10011001//-------------------------------------------------
trunk/src/mame/audio/tx1.c
r17983r17984
624624   : device_t(mconfig, TX1, "TX-1 Custom", tag, owner, clock),
625625     device_sound_interface(mconfig, *this)
626626{
627   m_token = global_alloc_array_clear(UINT8, sizeof(tx1_sound_state));
627   m_token = global_alloc_clear(tx1_sound_state);
628628}
629629
630630tx1_sound_device::tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
631631   : device_t(mconfig, type, name, tag, owner, clock),
632632     device_sound_interface(mconfig, *this)
633633{
634   m_token = global_alloc_array_clear(UINT8, sizeof(tx1_sound_state));
634   m_token = global_alloc_clear(tx1_sound_state);
635635}
636636//-------------------------------------------------
637637//  device_config_complete - perform any
trunk/src/mame/audio/irem.c
r17983r17984
491491   : device_t(mconfig, IREM_AUDIO, "Irem Audio", tag, owner, clock),
492492     device_sound_interface(mconfig, *this)
493493{
494   m_token = global_alloc_array_clear(UINT8, sizeof(irem_audio_state));
494   m_token = global_alloc_clear(irem_audio_state);
495495}
496496
497497//-------------------------------------------------
trunk/src/mame/audio/m72.c
r17983r17984
259259   : device_t(mconfig, M72, "M72 Custom", tag, owner, clock),
260260     device_sound_interface(mconfig, *this)
261261{
262   m_token = global_alloc_array_clear(UINT8, sizeof(m72_audio_state));
262   m_token = global_alloc_clear(m72_audio_state);
263263}
264264
265265//-------------------------------------------------
trunk/src/mame/audio/beezer.c
r17983r17984
400400   : device_t(mconfig, BEEZER, "beezer SFX", tag, owner, clock),
401401     device_sound_interface(mconfig, *this)
402402{
403   m_token = global_alloc_array_clear(UINT8, sizeof(beezer_sound_state));
403   m_token = global_alloc_clear(beezer_sound_state);
404404}
405405
406406//-------------------------------------------------
trunk/src/mame/audio/geebee.c
r17983r17984
149149   : device_t(mconfig, GEEBEE, "Gee Bee Custom", tag, owner, clock),
150150     device_sound_interface(mconfig, *this)
151151{
152   m_token = global_alloc_array_clear(UINT8, sizeof(geebee_sound_state));
152   m_token = global_alloc_clear(geebee_sound_state);
153153}
154154
155155//-------------------------------------------------
trunk/src/mame/audio/snes_snd.c
r17983r17984
13661366   : device_t(mconfig, SNES, "SNES Custom DSP (SPC700)", tag, owner, clock),
13671367     device_sound_interface(mconfig, *this)
13681368{
1369   m_token = global_alloc_array_clear(UINT8, sizeof(snes_sound_state));
1369   m_token = global_alloc_clear(snes_sound_state);
13701370}
13711371
13721372//-------------------------------------------------
trunk/src/mame/audio/pleiads.c
r17983r17984
685685   : device_t(mconfig, PLEIADS, "Pleiads Custom", tag, owner, clock),
686686     device_sound_interface(mconfig, *this)
687687{
688   m_token = global_alloc_array_clear(UINT8, sizeof(pleiads_sound_state));
688   m_token = global_alloc_clear(pleiads_sound_state);
689689}
690690
691691pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
692692   : device_t(mconfig, type, name, tag, owner, clock),
693693     device_sound_interface(mconfig, *this)
694694{
695   m_token = global_alloc_array_clear(UINT8, sizeof(pleiads_sound_state));
695   m_token = global_alloc_clear(pleiads_sound_state);
696696}
697697
698698//-------------------------------------------------
trunk/src/mame/audio/polepos.c
r17983r17984
356356   : device_t(mconfig, POLEPOS, "Pole Position Custom", tag, owner, clock),
357357     device_sound_interface(mconfig, *this)
358358{
359   m_token = global_alloc_array_clear(UINT8, sizeof(polepos_sound_state));
359   m_token = global_alloc_clear(polepos_sound_state);
360360}
361361
362362//-------------------------------------------------
trunk/src/mame/machine/taitoio.c
r17983r17984
512512tc0220ioc_device::tc0220ioc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
513513   : device_t(mconfig, TC0220IOC, "Taito TC0220IOC", tag, owner, clock)
514514{
515   m_token = global_alloc_array_clear(UINT8, sizeof(tc0220ioc_state));
515   m_token = global_alloc_clear(tc0220ioc_state);
516516}
517517
518518//-------------------------------------------------
r17983r17984
549549tc0510nio_device::tc0510nio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
550550   : device_t(mconfig, TC0510NIO, "Taito TC0510NIO", tag, owner, clock)
551551{
552   m_token = global_alloc_array_clear(UINT8, sizeof(tc0510nio_state));
552   m_token = global_alloc_clear(tc0510nio_state);
553553}
554554
555555//-------------------------------------------------
r17983r17984
586586tc0640fio_device::tc0640fio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
587587   : device_t(mconfig, TC0640FIO, "Taito TC0640FIO", tag, owner, clock)
588588{
589   m_token = global_alloc_array_clear(UINT8, sizeof(tc0640fio_state));
589   m_token = global_alloc_clear(tc0640fio_state);
590590}
591591
592592//-------------------------------------------------
trunk/src/mame/machine/namco06.c
r17983r17984
292292namco_06xx_device::namco_06xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
293293   : device_t(mconfig, NAMCO_06XX, "Namco 06xx", tag, owner, clock)
294294{
295   m_token = global_alloc_array_clear(UINT8, sizeof(namco_06xx_state));
295   m_token = global_alloc_clear(namco_06xx_state);
296296}
297297
298298//-------------------------------------------------
trunk/src/mame/machine/namcoio.c
r17983r17984
548548namcoio_device::namcoio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
549549   : device_t(mconfig, NAMCO56XX, "Namco 56xx, 58xx & 59xx", tag, owner, clock)
550550{
551   m_token = global_alloc_array_clear(UINT8, sizeof(namcoio_state));
551   m_token = global_alloc_clear(namcoio_state);
552552}
553553
554554//-------------------------------------------------
trunk/src/mame/machine/nmk112.c
r17983r17984
156156nmk112_device::nmk112_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
157157   : device_t(mconfig, NMK112, "NMK 112", tag, owner, clock)
158158{
159   m_token = global_alloc_array_clear(UINT8, sizeof(nmk112_state));
159   m_token = global_alloc_clear(nmk112_state);
160160}
161161
162162//-------------------------------------------------
trunk/src/mame/machine/namco50.c
r17983r17984
296296namco_50xx_device::namco_50xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
297297   : device_t(mconfig, NAMCO_50XX, "Namco 50xx", tag, owner, clock)
298298{
299   m_token = global_alloc_array_clear(UINT8, sizeof(namco_50xx_state));
299   m_token = global_alloc_clear(namco_50xx_state);
300300}
301301
302302//-------------------------------------------------
trunk/src/mame/machine/namco51.c
r17983r17984
444444namco_51xx_device::namco_51xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
445445   : device_t(mconfig, NAMCO_51XX, "Namco 51xx", tag, owner, clock)
446446{
447   m_token = global_alloc_array_clear(UINT8, sizeof(namco_51xx_state));
447   m_token = global_alloc_clear(namco_51xx_state);
448448}
449449
450450//-------------------------------------------------
trunk/src/mame/machine/cd32.c
r17983r17984
916916akiko_device::akiko_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
917917   : device_t(mconfig, AKIKO, "Akiko", tag, owner, clock)
918918{
919   m_token = global_alloc_array_clear(UINT8, sizeof(akiko_state));
919   m_token = global_alloc_clear(akiko_state);
920920}
921921
922922//-------------------------------------------------
trunk/src/mame/machine/gaelco3d.c
r17983r17984
500500gaelco_serial_device::gaelco_serial_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
501501   : device_t(mconfig, GAELCO_SERIAL, "gaelco_serial", tag, owner, clock)
502502{
503   m_token = global_alloc_array_clear(UINT8, sizeof(gaelco_serial_state));
503   m_token = global_alloc_clear(gaelco_serial_state);
504504}
505505
506506//-------------------------------------------------
trunk/src/mame/machine/decocass.c
r17983r17984
22482248decocass_tape_device::decocass_tape_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
22492249   : device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock)
22502250{
2251   m_token = global_alloc_array_clear(UINT8, sizeof(tape_state));
2251   m_token = global_alloc_clear(tape_state);
22522252}
22532253
22542254//-------------------------------------------------
trunk/src/mame/machine/buggychl.c
r17983r17984
239239buggychl_mcu_device::buggychl_mcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
240240   : device_t(mconfig, BUGGYCHL_MCU, "BuggyChl MCU", tag, owner, clock)
241241{
242   m_token = global_alloc_array_clear(UINT8, sizeof(buggychl_mcu_state));
242   m_token = global_alloc_clear(buggychl_mcu_state);
243243}
244244
245245//-------------------------------------------------
trunk/src/mame/machine/namco53.c
r17983r17984
196196namco_53xx_device::namco_53xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
197197   : device_t(mconfig, NAMCO_53XX, "Namco 53xx", tag, owner, clock)
198198{
199   m_token = global_alloc_array_clear(UINT8, sizeof(namco_53xx_state));
199   m_token = global_alloc_clear(namco_53xx_state);
200200}
201201
202202//-------------------------------------------------
trunk/src/mame/machine/namco62.c
r17983r17984
8989namco_62xx_device::namco_62xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
9090   : device_t(mconfig, NAMCO_62XX, "Namco 62xx", tag, owner, clock)
9191{
92   m_token = global_alloc_array_clear(UINT8, sizeof(namco_62xx_state));
92   m_token = global_alloc_clear(namco_62xx_state);
9393}
9494
9595//-------------------------------------------------
trunk/src/mame/machine/mathbox.c
r17983r17984
342342mathbox_device::mathbox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
343343   : device_t(mconfig, MATHBOX, "MATHBOX", tag, owner, clock)
344344{
345   m_token = global_alloc_array_clear(UINT8, sizeof(mathbox_state));
345   m_token = global_alloc_clear(mathbox_state);
346346}
347347
348348//-------------------------------------------------
trunk/src/mame/video/taitoic.c
r17983r17984
973973pc080sn_device::pc080sn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
974974   : device_t(mconfig, PC080SN, "Taito PC080SN", tag, owner, clock)
975975{
976   m_token = global_alloc_array_clear(UINT8, sizeof(pc080sn_state));
976   m_token = global_alloc_clear(pc080sn_state);
977977}
978978
979979//-------------------------------------------------
r17983r17984
12381238pc090oj_device::pc090oj_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
12391239   : device_t(mconfig, PC090OJ, "Taito PC090OJ", tag, owner, clock)
12401240{
1241   m_token = global_alloc_array_clear(UINT8, sizeof(pc090oj_state));
1241   m_token = global_alloc_clear(pc090oj_state);
12421242}
12431243
12441244//-------------------------------------------------
r17983r17984
19041904tc0080vco_device::tc0080vco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
19051905   : device_t(mconfig, TC0080VCO, "Taito TC0080VCO", tag, owner, clock)
19061906{
1907   m_token = global_alloc_array_clear(UINT8, sizeof(tc0080vco_state));
1907   m_token = global_alloc_clear(tc0080vco_state);
19081908}
19091909
19101910//-------------------------------------------------
r17983r17984
24892489tc0100scn_device::tc0100scn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
24902490   : device_t(mconfig, TC0100SCN, "Taito TC0100SCN", tag, owner, clock)
24912491{
2492   m_token = global_alloc_array_clear(UINT8, sizeof(tc0100scn_state));
2492   m_token = global_alloc_clear(tc0100scn_state);
24932493}
24942494
24952495//-------------------------------------------------
r17983r17984
27772777tc0280grd_device::tc0280grd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
27782778   : device_t(mconfig, TC0280GRD, "Taito TC0280GRD & TC0430GRW", tag, owner, clock)
27792779{
2780   m_token = global_alloc_array_clear(UINT8, sizeof(tc0280grd_state));
2780   m_token = global_alloc_clear(tc0280grd_state);
27812781}
27822782
27832783//-------------------------------------------------
r17983r17984
28982898tc0360pri_device::tc0360pri_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
28992899   : device_t(mconfig, TC0360PRI, "Taito TC0360PRI", tag, owner, clock)
29002900{
2901   m_token = global_alloc_array_clear(UINT8, sizeof(tc0360pri_state));
2901   m_token = global_alloc_clear(tc0360pri_state);
29022902}
29032903
29042904//-------------------------------------------------
r17983r17984
37803780tc0480scp_device::tc0480scp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
37813781   : device_t(mconfig, TC0480SCP, "Taito TC0480SCP", tag, owner, clock)
37823782{
3783   m_token = global_alloc_array_clear(UINT8, sizeof(tc0480scp_state));
3783   m_token = global_alloc_clear(tc0480scp_state);
37843784}
37853785
37863786//-------------------------------------------------
r17983r17984
47244724tc0150rod_device::tc0150rod_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
47254725   : device_t(mconfig, TC0150ROD, "Taito TC0150ROD", tag, owner, clock)
47264726{
4727   m_token = global_alloc_array_clear(UINT8, sizeof(tc0150rod_state));
4727   m_token = global_alloc_clear(tc0150rod_state);
47284728}
47294729
47304730//-------------------------------------------------
r17983r17984
49724972tc0110pcr_device::tc0110pcr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
49734973   : device_t(mconfig, TC0110PCR, "Taito TC0110PCR", tag, owner, clock)
49744974{
4975   m_token = global_alloc_array_clear(UINT8, sizeof(tc0110pcr_state));
4975   m_token = global_alloc_clear(tc0110pcr_state);
49764976}
49774977
49784978//-------------------------------------------------
r17983r17984
53045304tc0180vcu_device::tc0180vcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53055305   : device_t(mconfig, TC0180VCU, "Taito TC0180VCU", tag, owner, clock)
53065306{
5307   m_token = global_alloc_array_clear(UINT8, sizeof(tc0180vcu_state));
5307   m_token = global_alloc_clear(tc0180vcu_state);
53085308}
53095309
53105310//-------------------------------------------------
trunk/src/mame/video/atarirle.c
r17983r17984
372372atarirle_device::atarirle_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
373373   : device_t(mconfig, ATARIRLE, "Atari RLE", tag, owner, clock)
374374{
375   m_token = global_alloc_array_clear(UINT8, sizeof(atarirle_data));
375   m_token = global_alloc_clear(atarirle_data);
376376}
377377
378378//-------------------------------------------------
trunk/src/mame/video/deco16ic.c
r17983r17984
903903deco16ic_device::deco16ic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
904904   : device_t(mconfig, DECO16IC, "Data East IC 55 / 56 / 74 / 141", tag, owner, clock)
905905{
906   m_token = global_alloc_array_clear(UINT8, sizeof(deco16ic_state));
906   m_token = global_alloc_clear(deco16ic_state);
907907}
908908
909909//-------------------------------------------------
trunk/src/mame/video/decocomn.c
r17983r17984
144144decocomn_device::decocomn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
145145   : device_t(mconfig, DECOCOMN, "Data East Common Video Functions", tag, owner, clock)
146146{
147   m_token = global_alloc_array_clear(UINT8, sizeof(decocomn_state));
147   m_token = global_alloc_clear(decocomn_state);
148148}
149149
150150//-------------------------------------------------
trunk/src/mame/video/vrender0.c
r17983r17984
605605vr0video_device::vr0video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
606606   : device_t(mconfig, VIDEO_VRENDER0, "VRender0", tag, owner, clock)
607607{
608   m_token = global_alloc_array_clear(UINT8, sizeof(vr0video_state));
608   m_token = global_alloc_clear(vr0video_state);
609609}
610610
611611//-------------------------------------------------
trunk/src/mame/video/kan_pand.c
r17983r17984
329329kaneko_pandora_device::kaneko_pandora_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
330330   : device_t(mconfig, KANEKO_PANDORA, "Kaneko Pandora - PX79C480FP-3", tag, owner, clock)
331331{
332   m_token = global_alloc_array_clear(UINT8, sizeof(kaneko_pandora_state));
332   m_token = global_alloc_clear(kaneko_pandora_state);
333333}
334334
335335//-------------------------------------------------
trunk/src/mame/video/konicdev.c
r17983r17984
15811581k007121_device::k007121_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
15821582   : device_t(mconfig, K007121, "Konami 007121", tag, owner, clock)
15831583{
1584   m_token = global_alloc_array_clear(UINT8, sizeof(k007121_state));
1584   m_token = global_alloc_clear(k007121_state);
15851585}
15861586
15871587//-------------------------------------------------
r17983r17984
18541854k007342_device::k007342_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
18551855   : device_t(mconfig, K007342, "Konami 007342", tag, owner, clock)
18561856{
1857   m_token = global_alloc_array_clear(UINT8, sizeof(k007342_state));
1857   m_token = global_alloc_clear(k007342_state);
18581858}
18591859
18601860//-------------------------------------------------
r17983r17984
21872187k007420_device::k007420_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
21882188   : device_t(mconfig, K007420, "Konami 007420", tag, owner, clock)
21892189{
2190   m_token = global_alloc_array_clear(UINT8, sizeof(k007420_state));
2190   m_token = global_alloc_clear(k007420_state);
21912191}
21922192
21932193//-------------------------------------------------
r17983r17984
27582758k052109_device::k052109_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
27592759   : device_t(mconfig, K052109, "Konami 052109", tag, owner, clock)
27602760{
2761   m_token = global_alloc_array_clear(UINT8, sizeof(k052109_state));
2761   m_token = global_alloc_clear(k052109_state);
27622762}
27632763
27642764//-------------------------------------------------
r17983r17984
34293429k051960_device::k051960_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
34303430   : device_t(mconfig, K051960, "Konami 051960", tag, owner, clock)
34313431{
3432   m_token = global_alloc_array_clear(UINT8, sizeof(k051960_state));
3432   m_token = global_alloc_clear(k051960_state);
34333433}
34343434
34353435//-------------------------------------------------
r17983r17984
42604260k05324x_device::k05324x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
42614261   : device_t(mconfig, K053244, "Konami 053244 & 053245", tag, owner, clock)
42624262{
4263   m_token = global_alloc_array_clear(UINT8, sizeof(k05324x_state));
4263   m_token = global_alloc_clear(k05324x_state);
42644264}
42654265
42664266//-------------------------------------------------
r17983r17984
52725272k055673_device::k055673_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
52735273   : device_t(mconfig, K055673, "Konami 055673", tag, owner, clock)
52745274{
5275   m_token = global_alloc_array_clear(UINT8, sizeof(k053247_state));
5275   m_token = global_alloc_clear(k053247_state);
52765276}
52775277
52785278//-------------------------------------------------
r17983r17984
53085308k053247_device::k053247_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53095309   : device_t(mconfig, K053246, "Konami 053246 & 053247", tag, owner, clock)
53105310{
5311   m_token = global_alloc_array_clear(UINT8, sizeof(k053247_state));
5311   m_token = global_alloc_clear(k053247_state);
53125312}
53135313
53145314//-------------------------------------------------
r17983r17984
55415541k051316_device::k051316_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
55425542   : device_t(mconfig, K051316, "Konami 051316", tag, owner, clock)
55435543{
5544   m_token = global_alloc_array_clear(UINT8, sizeof(k051316_state));
5544   m_token = global_alloc_clear(k051316_state);
55455545}
55465546
55475547//-------------------------------------------------
r17983r17984
59145914k053936_device::k053936_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
59155915   : device_t(mconfig, K053936, "Konami 053936", tag, owner, clock)
59165916{
5917   m_token = global_alloc_array_clear(UINT8, sizeof(k053936_state));
5917   m_token = global_alloc_clear(k053936_state);
59185918}
59195919
59205920//-------------------------------------------------
r17983r17984
61056105k053251_device::k053251_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
61066106   : device_t(mconfig, K053251, "Konami 053251", tag, owner, clock)
61076107{
6108   m_token = global_alloc_array_clear(UINT8, sizeof(k053251_state));
6108   m_token = global_alloc_clear(k053251_state);
61096109}
61106110
61116111//-------------------------------------------------
r17983r17984
62506250k054000_device::k054000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
62516251   : device_t(mconfig, K054000, "Konami 054000", tag, owner, clock)
62526252{
6253   m_token = global_alloc_array_clear(UINT8, sizeof(k054000_state));
6253   m_token = global_alloc_clear(k054000_state);
62546254}
62556255
62566256//-------------------------------------------------
r17983r17984
64386438k051733_device::k051733_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
64396439   : device_t(mconfig, K051733, "Konami 051733", tag, owner, clock)
64406440{
6441   m_token = global_alloc_array_clear(UINT8, sizeof(k051733_state));
6441   m_token = global_alloc_clear(k051733_state);
64426442}
64436443
64446444//-------------------------------------------------
r17983r17984
81868186k056832_device::k056832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
81878187   : device_t(mconfig, K056832, "Konami 056832", tag, owner, clock)
81888188{
8189   m_token = global_alloc_array_clear(UINT8, sizeof(k056832_state));
8189   m_token = global_alloc_clear(k056832_state);
81908190}
81918191
81928192//-------------------------------------------------
r17983r17984
85778577k055555_device::k055555_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
85788578   : device_t(mconfig, K055555, "Konami 055555", tag, owner, clock)
85798579{
8580   m_token = global_alloc_array_clear(UINT8, sizeof(k055555_state));
8580   m_token = global_alloc_clear(k055555_state);
85818581}
85828582
85838583//-------------------------------------------------
r17983r17984
89158915k054338_device::k054338_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
89168916   : device_t(mconfig, K054338, "Konami 054338", tag, owner, clock)
89178917{
8918   m_token = global_alloc_array_clear(UINT8, sizeof(k054338_state));
8918   m_token = global_alloc_clear(k054338_state);
89198919}
89208920
89218921//-------------------------------------------------
r17983r17984
91269126k001006_device::k001006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
91279127   : device_t(mconfig, K001006, "Konami 001006", tag, owner, clock)
91289128{
9129   m_token = global_alloc_array_clear(UINT8, sizeof(k001006_state));
9129   m_token = global_alloc_clear(k001006_state);
91309130}
91319131
91329132//-------------------------------------------------
r17983r17984
1008910089k001005_device::k001005_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1009010090   : device_t(mconfig, K001005, "Konami 001005", tag, owner, clock)
1009110091{
10092   m_token = global_alloc_array_clear(UINT8, sizeof(k001005_state));
10092   m_token = global_alloc_clear(k001005_state);
1009310093}
1009410094
1009510095//-------------------------------------------------
r17983r17984
1048710487k001604_device::k001604_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1048810488   : device_t(mconfig, K001604, "Konami 001604", tag, owner, clock)
1048910489{
10490   m_token = global_alloc_array_clear(UINT8, sizeof(k001604_state));
10490   m_token = global_alloc_clear(k001604_state);
1049110491}
1049210492
1049310493//-------------------------------------------------
r17983r17984
1078310783k037122_device::k037122_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1078410784   : device_t(mconfig, K037122, "Konami 0371222", tag, owner, clock)
1078510785{
10786   m_token = global_alloc_array_clear(UINT8, sizeof(k037122_state));
10786   m_token = global_alloc_clear(k037122_state);
1078710787}
1078810788
1078910789//-------------------------------------------------
trunk/src/mame/drivers/mjkjidai.c
r17983r17984
106106   : device_t(mconfig, MJKJIDAI, "Custom ADPCM", tag, owner, clock),
107107     device_sound_interface(mconfig, *this)
108108{
109   m_token = global_alloc_array_clear(UINT8, sizeof(mjkjidai_adpcm_state));
109   m_token = global_alloc_clear(mjkjidai_adpcm_state);
110110}
111111
112112//-------------------------------------------------
trunk/src/mame/drivers/renegade.c
r17983r17984
196196   : device_t(mconfig, RENEGADE_ADPCM, "Renegade Custom ADPCM", tag, owner, clock),
197197     device_sound_interface(mconfig, *this)
198198{
199   m_token = global_alloc_array_clear(UINT8, sizeof(renegade_adpcm_state));
199   m_token = global_alloc_clear(renegade_adpcm_state);
200200}
201201
202202//-------------------------------------------------
trunk/src/emu/video/hd63484.c
r17983r17984
15811581hd63484_device::hd63484_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
15821582   : device_t(mconfig, HD63484, "HD63484", tag, owner, clock)
15831583{
1584   m_token = global_alloc_array_clear(UINT8, sizeof(hd63484_state));
1584   m_token = global_alloc_clear(hd63484_state);
15851585}
15861586
15871587//-------------------------------------------------
trunk/src/emu/video/tlc34076.c
r17983r17984
285285tlc34076_device::tlc34076_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
286286   : device_t(mconfig, TLC34076, "TLC34076", tag, owner, clock)
287287{
288   m_token = global_alloc_array_clear(UINT8, sizeof(tlc34076_state));
288   m_token = global_alloc_clear(tlc34076_state);
289289}
290290
291291//-------------------------------------------------
trunk/src/emu/video/voodoo.c
r17983r17984
56585658voodoo_device::voodoo_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
56595659   : device_t(mconfig, type, name, tag, owner, clock)
56605660{
5661   m_token = global_alloc_array_clear(UINT8, sizeof(voodoo_state));
5661   m_token = global_alloc_clear(voodoo_state);
56625662}
56635663
56645664//-------------------------------------------------
trunk/src/emu/video/i8275.c
r17983r17984
591591i8275_device::i8275_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
592592   : device_t(mconfig, I8275, "Intel 8275", tag, owner, clock)
593593{
594   m_token = global_alloc_array_clear(UINT8, sizeof(i8275_t));
594   m_token = global_alloc_clear(i8275_t);
595595}
596596
597597//-------------------------------------------------
trunk/src/emu/video/s2636.c
r17983r17984
369369s2636_device::s2636_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
370370   : device_t(mconfig, S2636, "Signetics 2636", tag, owner, clock)
371371{
372   m_token = global_alloc_array_clear(UINT8, sizeof(s2636_state));
372   m_token = global_alloc_clear(s2636_state);
373373}
374374
375375//-------------------------------------------------
trunk/src/emu/video/tms9927.c
r17983r17984
311311tms9927_device::tms9927_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
312312   : device_t(mconfig, TMS9927, "TMS9927", tag, owner, clock)
313313{
314   m_token = global_alloc_array_clear(UINT8, sizeof(tms9927_state));
314   m_token = global_alloc_clear(tms9927_state);
315315}
316316tms9927_device::tms9927_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
317317   : device_t(mconfig, type, name, tag, owner, clock)
318318{
319   m_token = global_alloc_array_clear(UINT8, sizeof(tms9927_state));
319   m_token = global_alloc_clear(tms9927_state);
320320}
321321
322322//-------------------------------------------------
trunk/src/emu/sound/sp0256.c
r17983r17984
13701370   : device_t(mconfig, SP0256, "SP0256", tag, owner, clock),
13711371     device_sound_interface(mconfig, *this)
13721372{
1373   m_token = global_alloc_array_clear(UINT8, sizeof(sp0256_state));
1373   m_token = global_alloc_clear(sp0256_state);
13741374}
13751375
13761376//-------------------------------------------------
trunk/src/emu/sound/hc55516.c
r17983r17984
299299   : device_t(mconfig, HC55516, "HC-55516", tag, owner, clock),
300300     device_sound_interface(mconfig, *this)
301301{
302   m_token = global_alloc_array_clear(UINT8, sizeof(hc55516_state));
302   m_token = global_alloc_clear(hc55516_state);
303303}
304304hc55516_device::hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
305305   : device_t(mconfig, type, name, tag, owner, clock),
306306     device_sound_interface(mconfig, *this)
307307{
308   m_token = global_alloc_array_clear(UINT8, sizeof(hc55516_state));
308   m_token = global_alloc_clear(hc55516_state);
309309}
310310
311311//-------------------------------------------------
trunk/src/emu/sound/iremga20.c
r17983r17984
269269   : device_t(mconfig, IREMGA20, "Irem GA20", tag, owner, clock),
270270     device_sound_interface(mconfig, *this)
271271{
272   m_token = global_alloc_array_clear(UINT8, sizeof(ga20_state));
272   m_token = global_alloc_clear(ga20_state);
273273}
274274
275275//-------------------------------------------------
trunk/src/emu/sound/tms5110.c
r17983r17984
15011501   : device_t(mconfig, TMS5110, "TMS5110", tag, owner, clock),
15021502     device_sound_interface(mconfig, *this)
15031503{
1504   m_token = global_alloc_array_clear(UINT8, sizeof(tms5110_state));
1504   m_token = global_alloc_clear(tms5110_state);
15051505}
15061506tms5110_device::tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
15071507   : device_t(mconfig, type, name, tag, owner, clock),
15081508     device_sound_interface(mconfig, *this)
15091509{
1510   m_token = global_alloc_array_clear(UINT8, sizeof(tms5110_state));
1510   m_token = global_alloc_clear(tms5110_state);
15111511}
15121512
15131513//-------------------------------------------------
r17983r17984
17171717tmsprom_device::tmsprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
17181718   : device_t(mconfig, TMSPROM, "TMSPROM", tag, owner, clock)
17191719{
1720   m_token = global_alloc_array_clear(UINT8, sizeof(tmsprom_state));
1720   m_token = global_alloc_clear(tmsprom_state);
17211721}
17221722
17231723//-------------------------------------------------
trunk/src/emu/sound/2612intf.c
r17983r17984
162162   : device_t(mconfig, YM2612, "YM2612", tag, owner, clock),
163163     device_sound_interface(mconfig, *this)
164164{
165   m_token = global_alloc_array_clear(UINT8, sizeof(ym2612_state));
165   m_token = global_alloc_clear(ym2612_state);
166166}
167167ym2612_device::ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
168168   : device_t(mconfig, type, name, tag, owner, clock),
169169     device_sound_interface(mconfig, *this)
170170{
171   m_token = global_alloc_array_clear(UINT8, sizeof(ym2612_state));
171   m_token = global_alloc_clear(ym2612_state);
172172}
173173
174174//-------------------------------------------------
trunk/src/emu/sound/3526intf.c
r17983r17984
150150   : device_t(mconfig, YM3526, "YM3526", tag, owner, clock),
151151     device_sound_interface(mconfig, *this)
152152{
153   m_token = global_alloc_array_clear(UINT8, sizeof(ym3526_state));
153   m_token = global_alloc_clear(ym3526_state);
154154}
155155
156156//-------------------------------------------------
trunk/src/emu/sound/k051649.c
r17983r17984
286286   : device_t(mconfig, K051649, "K051649", tag, owner, clock),
287287     device_sound_interface(mconfig, *this)
288288{
289   m_token = global_alloc_array_clear(UINT8, sizeof(k051649_state));
289   m_token = global_alloc_clear(k051649_state);
290290}
291291
292292//-------------------------------------------------
trunk/src/emu/sound/c140.c
r17983r17984
480480   : device_t(mconfig, C140, "C140", tag, owner, clock),
481481     device_sound_interface(mconfig, *this)
482482{
483   m_token = global_alloc_array_clear(UINT8, sizeof(c140_state));
483   m_token = global_alloc_clear(c140_state);
484484}
485485
486486//-------------------------------------------------
trunk/src/emu/sound/msm5205.c
r17983r17984
346346   : device_t(mconfig, MSM5205, "MSM5205", tag, owner, clock),
347347     device_sound_interface(mconfig, *this)
348348{
349   m_token = global_alloc_array_clear(UINT8, sizeof(msm5205_state));
349   m_token = global_alloc_clear(msm5205_state);
350350}
351351msm5205_device::msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
352352   : device_t(mconfig, type, name, tag, owner, clock),
353353     device_sound_interface(mconfig, *this)
354354{
355   m_token = global_alloc_array_clear(UINT8, sizeof(msm5205_state));
355   m_token = global_alloc_clear(msm5205_state);
356356}
357357
358358//-------------------------------------------------
trunk/src/emu/sound/qsound.c
r17983r17984
375375   : device_t(mconfig, QSOUND, "Q-Sound", tag, owner, clock),
376376     device_sound_interface(mconfig, *this)
377377{
378   m_token = global_alloc_array_clear(UINT8, sizeof(qsound_state));
378   m_token = global_alloc_clear(qsound_state);
379379}
380380
381381//-------------------------------------------------
trunk/src/emu/sound/snkwave.c
r17983r17984
164164   : device_t(mconfig, SNKWAVE, "SNK Wave", tag, owner, clock),
165165     device_sound_interface(mconfig, *this)
166166{
167   m_token = global_alloc_array_clear(UINT8, sizeof(snkwave_state));
167   m_token = global_alloc_clear(snkwave_state);
168168}
169169
170170//-------------------------------------------------
trunk/src/emu/sound/3812intf.c
r17983r17984
146146   : device_t(mconfig, YM3812, "YM3812", tag, owner, clock),
147147     device_sound_interface(mconfig, *this)
148148{
149   m_token = global_alloc_array_clear(UINT8, sizeof(ym3812_state));
149   m_token = global_alloc_clear(ym3812_state);
150150}
151151
152152//-------------------------------------------------
trunk/src/emu/sound/rf5c400.c
r17983r17984
562562   : device_t(mconfig, RF5C400, "RF5C400", tag, owner, clock),
563563     device_sound_interface(mconfig, *this)
564564{
565   m_token = global_alloc_array_clear(UINT8, sizeof(rf5c400_state));
565   m_token = global_alloc_clear(rf5c400_state);
566566}
567567
568568//-------------------------------------------------
trunk/src/emu/sound/cem3394.c
r17983r17984
562562   : device_t(mconfig, CEM3394, "CEM3394", tag, owner, clock),
563563     device_sound_interface(mconfig, *this)
564564{
565   m_token = global_alloc_array_clear(UINT8, sizeof(cem3394_state));
565   m_token = global_alloc_clear(cem3394_state);
566566}
567567
568568//-------------------------------------------------
trunk/src/emu/sound/saa1099.c
r17983r17984
441441   : device_t(mconfig, SAA1099, "SAA1099", tag, owner, clock),
442442     device_sound_interface(mconfig, *this)
443443{
444   m_token = global_alloc_array_clear(UINT8, sizeof(saa1099_state));
444   m_token = global_alloc_clear(saa1099_state);
445445}
446446
447447//-------------------------------------------------
trunk/src/emu/sound/digitalk.c
r17983r17984
696696   : device_t(mconfig, DIGITALKER, "Digitalker", tag, owner, clock),
697697     device_sound_interface(mconfig, *this)
698698{
699   m_token = global_alloc_array_clear(UINT8, sizeof(digitalker));
699   m_token = global_alloc_clear(digitalker);
700700}
701701
702702//-------------------------------------------------
trunk/src/emu/sound/ymz280b.c
r17983r17984
10511051   : device_t(mconfig, YMZ280B, "YMZ280B", tag, owner, clock),
10521052     device_sound_interface(mconfig, *this)
10531053{
1054   m_token = global_alloc_array_clear(UINT8, sizeof(ymz280b_state));
1054   m_token = global_alloc_clear(ymz280b_state);
10551055}
10561056
10571057//-------------------------------------------------
trunk/src/emu/sound/rf5c68.c
r17983r17984
262262   : device_t(mconfig, RF5C68, "RF5C68", tag, owner, clock),
263263     device_sound_interface(mconfig, *this)
264264{
265   m_token = global_alloc_array_clear(UINT8, sizeof(rf5c68_state));
265   m_token = global_alloc_clear(rf5c68_state);
266266}
267267
268268//-------------------------------------------------
trunk/src/emu/sound/k005289.c
r17983r17984
250250   : device_t(mconfig, K005289, "K005289", tag, owner, clock),
251251     device_sound_interface(mconfig, *this)
252252{
253   m_token = global_alloc_array_clear(UINT8, sizeof(k005289_state));
253   m_token = global_alloc_clear(k005289_state);
254254}
255255
256256//-------------------------------------------------
trunk/src/emu/sound/aica.c
r17983r17984
13591359   : device_t(mconfig, AICA, "AICA", tag, owner, clock),
13601360     device_sound_interface(mconfig, *this)
13611361{
1362   m_token = global_alloc_array_clear(UINT8, sizeof(aica_state));
1362   m_token = global_alloc_clear(aica_state);
13631363}
13641364
13651365//-------------------------------------------------
trunk/src/emu/sound/sn76496.c
r17983r17984
491491   : device_t(mconfig, SN76496, "SN76496", tag, owner, clock),
492492     device_sound_interface(mconfig, *this)
493493{
494   m_token = global_alloc_array_clear(UINT8, sizeof(sn76496_state));
494   m_token = global_alloc_clear(sn76496_state);
495495}
496496sn76496_device::sn76496_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
497497   : device_t(mconfig, type, name, tag, owner, clock),
498498     device_sound_interface(mconfig, *this)
499499{
500   m_token = global_alloc_array_clear(UINT8, sizeof(sn76496_state));
500   m_token = global_alloc_clear(sn76496_state);
501501}
502502
503503//-------------------------------------------------
trunk/src/emu/sound/astrocde.c
r17983r17984
307307   : device_t(mconfig, ASTROCADE, "Astrocade", tag, owner, clock),
308308     device_sound_interface(mconfig, *this)
309309{
310   m_token = global_alloc_array_clear(UINT8, sizeof(astrocade_state));
310   m_token = global_alloc_clear(astrocade_state);
311311}
312312
313313//-------------------------------------------------
trunk/src/emu/sound/x1_010.c
r17983r17984
289289   : device_t(mconfig, X1_010, "X1-010", tag, owner, clock),
290290     device_sound_interface(mconfig, *this)
291291{
292   m_token = global_alloc_array_clear(UINT8, sizeof(x1_010_state));
292   m_token = global_alloc_clear(x1_010_state);
293293}
294294
295295//-------------------------------------------------
trunk/src/emu/sound/k056800.c
r17983r17984
168168k056800_device::k056800_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
169169   : device_t(mconfig, K056800, "Konami 056800 MIRAC", tag, owner, clock)
170170{
171   m_token = global_alloc_array_clear(UINT8, sizeof(k056800_state));
171   m_token = global_alloc_clear(k056800_state);
172172}
173173
174174//-------------------------------------------------
trunk/src/emu/sound/upd7759.c
r17983r17984
791791   : device_t(mconfig, UPD7759, "uPD7759", tag, owner, clock),
792792     device_sound_interface(mconfig, *this)
793793{
794   m_token = global_alloc_array_clear(UINT8, sizeof(upd7759_state));
794   m_token = global_alloc_clear(upd7759_state);
795795}
796796upd7759_device::upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
797797   : device_t(mconfig, type, name, tag, owner, clock),
798798     device_sound_interface(mconfig, *this)
799799{
800   m_token = global_alloc_array_clear(UINT8, sizeof(upd7759_state));
800   m_token = global_alloc_clear(upd7759_state);
801801}
802802
803803//-------------------------------------------------
trunk/src/emu/sound/ymf271.c
r17983r17984
18161816   : device_t(mconfig, YMF271, "YMF271", tag, owner, clock),
18171817     device_sound_interface(mconfig, *this)
18181818{
1819   m_token = global_alloc_array_clear(UINT8, sizeof(YMF271Chip));
1819   m_token = global_alloc_clear(YMF271Chip);
18201820}
18211821
18221822//-------------------------------------------------
trunk/src/emu/sound/n63701x.c
r17983r17984
159159   : device_t(mconfig, NAMCO_63701X, "Namco 63701X", tag, owner, clock),
160160     device_sound_interface(mconfig, *this)
161161{
162   m_token = global_alloc_array_clear(UINT8, sizeof(namco_63701x));
162   m_token = global_alloc_clear(namco_63701x);
163163}
164164
165165//-------------------------------------------------
trunk/src/emu/sound/sp0250.c
r17983r17984
243243   : device_t(mconfig, SP0250, "SP0250", tag, owner, clock),
244244     device_sound_interface(mconfig, *this)
245245{
246   m_token = global_alloc_array_clear(UINT8, sizeof(sp0250_state));
246   m_token = global_alloc_clear(sp0250_state);
247247}
248248
249249//-------------------------------------------------
trunk/src/emu/sound/speaker.c
r17983r17984
423423   : device_t(mconfig, SPEAKER_SOUND, "Speaker", tag, owner, clock),
424424     device_sound_interface(mconfig, *this)
425425{
426   m_token = global_alloc_array_clear(UINT8, sizeof(speaker_state));
426   m_token = global_alloc_clear(speaker_state);
427427}
428428
429429//-------------------------------------------------
trunk/src/emu/sound/ay8910.c
r17983r17984
10421042   : device_t(mconfig, AY8910, "AY-3-8910A", tag, owner, clock),
10431043     device_sound_interface(mconfig, *this)
10441044{
1045   m_token = global_alloc_array_clear(UINT8, sizeof(ay8910_context));
1045   m_token = global_alloc_clear(ay8910_context);
10461046}
10471047ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
10481048   : device_t(mconfig, type, name, tag, owner, clock),
10491049     device_sound_interface(mconfig, *this)
10501050{
1051   m_token = global_alloc_array_clear(UINT8, sizeof(ay8910_context));
1051   m_token = global_alloc_clear(ay8910_context);
10521052}
10531053
10541054//-------------------------------------------------
trunk/src/emu/sound/cdda.c
r17983r17984
318318   : device_t(mconfig, CDDA, "CD/DA", tag, owner, clock),
319319     device_sound_interface(mconfig, *this)
320320{
321   m_token = global_alloc_array_clear(UINT8, sizeof(cdda_info));
321   m_token = global_alloc_clear(cdda_info);
322322}
323323
324324//-------------------------------------------------
trunk/src/emu/sound/tms36xx.c
r17983r17984
529529   : device_t(mconfig, TMS36XX, "TMS36XX", tag, owner, clock),
530530     device_sound_interface(mconfig, *this)
531531{
532   m_token = global_alloc_array_clear(UINT8, sizeof(tms_state));
532   m_token = global_alloc_clear(tms_state);
533533}
534534
535535//-------------------------------------------------
trunk/src/emu/sound/st0016.c
r17983r17984
150150   : device_t(mconfig, ST0016, "ST0016", tag, owner, clock),
151151     device_sound_interface(mconfig, *this)
152152{
153   m_token = global_alloc_array_clear(UINT8, sizeof(st0016_state));
153   m_token = global_alloc_clear(st0016_state);
154154}
155155
156156//-------------------------------------------------
trunk/src/emu/sound/tiaintf.c
r17983r17984
5252   : device_t(mconfig, TIA, "TIA", tag, owner, clock),
5353     device_sound_interface(mconfig, *this)
5454{
55   m_token = global_alloc_array_clear(UINT8, sizeof(tia_state));
55   m_token = global_alloc_clear(tia_state);
5656}
5757
5858//-------------------------------------------------
trunk/src/emu/sound/c6280.c
r17983r17984
350350   : device_t(mconfig, C6280, "HuC6280", tag, owner, clock),
351351     device_sound_interface(mconfig, *this)
352352{
353   m_token = global_alloc_array_clear(UINT8, sizeof(c6280_t));
353   m_token = global_alloc_clear(c6280_t);
354354}
355355
356356//-------------------------------------------------
trunk/src/emu/sound/scsp.c
r17983r17984
13611361   : device_t(mconfig, SCSP, "SCSP", tag, owner, clock),
13621362     device_sound_interface(mconfig, *this)
13631363{
1364   m_token = global_alloc_array_clear(UINT8, sizeof(scsp_state));
1364   m_token = global_alloc_clear(scsp_state);
13651365}
13661366
13671367//-------------------------------------------------
trunk/src/emu/sound/msm5232.c
r17983r17984
856856   : device_t(mconfig, MSM5232, "MSM5232", tag, owner, clock),
857857     device_sound_interface(mconfig, *this)
858858{
859   m_token = global_alloc_array_clear(UINT8, sizeof(msm5232_state));
859   m_token = global_alloc_clear(msm5232_state);
860860}
861861
862862//-------------------------------------------------
trunk/src/emu/sound/2610intf.c
r17983r17984
222222   : device_t(mconfig, YM2610, "YM2610", tag, owner, clock),
223223     device_sound_interface(mconfig, *this)
224224{
225   m_token = global_alloc_array_clear(UINT8, sizeof(ym2610_state));
225   m_token = global_alloc_clear(ym2610_state);
226226}
227227ym2610_device::ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
228228   : device_t(mconfig, type, name, tag, owner, clock),
229229     device_sound_interface(mconfig, *this)
230230{
231   m_token = global_alloc_array_clear(UINT8, sizeof(ym2610_state));
231   m_token = global_alloc_clear(ym2610_state);
232232}
233233
234234//-------------------------------------------------
trunk/src/emu/sound/flt_rc.c
r17983r17984
116116   : device_t(mconfig, FILTER_RC, "RC Filter", tag, owner, clock),
117117     device_sound_interface(mconfig, *this)
118118{
119   m_token = global_alloc_array_clear(UINT8, sizeof(filter_rc_state));
119   m_token = global_alloc_clear(filter_rc_state);
120120}
121121
122122//-------------------------------------------------
trunk/src/emu/sound/beep.c
r17983r17984
168168   : device_t(mconfig, BEEP, "Beep", tag, owner, clock),
169169     device_sound_interface(mconfig, *this)
170170{
171   m_token = global_alloc_array_clear(UINT8, sizeof(beep_state));
171   m_token = global_alloc_clear(beep_state);
172172}
173173
174174//-------------------------------------------------
trunk/src/emu/sound/tms3615.c
r17983r17984
9999   : device_t(mconfig, TMS3615, "TMS3615", tag, owner, clock),
100100     device_sound_interface(mconfig, *this)
101101{
102   m_token = global_alloc_array_clear(UINT8, sizeof(tms_state));
102   m_token = global_alloc_clear(tms_state);
103103}
104104
105105//-------------------------------------------------
trunk/src/emu/sound/s14001a.c
r17983r17984
635635   : device_t(mconfig, S14001A, "S14001A", tag, owner, clock),
636636     device_sound_interface(mconfig, *this)
637637{
638   m_token = global_alloc_array_clear(UINT8, sizeof(S14001AChip));
638   m_token = global_alloc_clear(S14001AChip);
639639}
640640
641641//-------------------------------------------------
trunk/src/emu/sound/gaelco.c
r17983r17984
288288   : device_t(mconfig, GAELCO_GAE1, "Gaelco GAE1", tag, owner, clock),
289289     device_sound_interface(mconfig, *this)
290290{
291   m_token = global_alloc_array_clear(UINT8, sizeof(gaelco_sound_state));
291   m_token = global_alloc_clear(gaelco_sound_state);
292292}
293293
294294gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
295295   : device_t(mconfig, type, name, tag, owner, clock),
296296     device_sound_interface(mconfig, *this)
297297{
298   m_token = global_alloc_array_clear(UINT8, sizeof(gaelco_sound_state));
298   m_token = global_alloc_clear(gaelco_sound_state);
299299}
300300
301301//-------------------------------------------------
trunk/src/emu/sound/dmadac.c
r17983r17984
239239   : device_t(mconfig, DMADAC, "DMA-driven DAC", tag, owner, clock),
240240     device_sound_interface(mconfig, *this)
241241{
242   m_token = global_alloc_array_clear(UINT8, sizeof(dmadac_state));
242   m_token = global_alloc_clear(dmadac_state);
243243}
244244
245245//-------------------------------------------------
trunk/src/emu/sound/2608intf.c
r17983r17984
209209   : device_t(mconfig, YM2608, "YM2608", tag, owner, clock),
210210     device_sound_interface(mconfig, *this)
211211{
212   m_token = global_alloc_array_clear(UINT8, sizeof(ym2608_state));
212   m_token = global_alloc_clear(ym2608_state);
213213}
214214
215215//-------------------------------------------------
trunk/src/emu/sound/s2636.c
r17983r17984
8787   : device_t(mconfig, S2636_SOUND, "S2636", tag, owner, clock),
8888     device_sound_interface(mconfig, *this)
8989{
90   m_token = global_alloc_array_clear(UINT8, sizeof(s2636_sound));
90   m_token = global_alloc_clear(s2636_sound);
9191}
9292
9393//-------------------------------------------------
trunk/src/emu/sound/okim6376.c
r17983r17984
624624   : device_t(mconfig, OKIM6376, "OKI6376", tag, owner, clock),
625625     device_sound_interface(mconfig, *this)
626626{
627   m_token = global_alloc_array_clear(UINT8, sizeof(okim6376_state));
627   m_token = global_alloc_clear(okim6376_state);
628628}
629629
630630//-------------------------------------------------
trunk/src/emu/sound/zsg2.c
r17983r17984
235235   : device_t(mconfig, ZSG2, "ZSG-2", tag, owner, clock),
236236     device_sound_interface(mconfig, *this)
237237{
238   m_token = global_alloc_array_clear(UINT8, sizeof(zsg2_state));
238   m_token = global_alloc_clear(zsg2_state);
239239}
240240
241241//-------------------------------------------------
trunk/src/emu/sound/es5506.c
r17983r17984
21372137   : device_t(mconfig, ES5506, "ES5506", tag, owner, clock),
21382138     device_sound_interface(mconfig, *this)
21392139{
2140   m_token = global_alloc_array_clear(UINT8, sizeof(es5506_state));
2140   m_token = global_alloc_clear(es5506_state);
21412141}
21422142
21432143es5506_device::es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
21442144   : device_t(mconfig, type, name, tag, owner, clock),
21452145     device_sound_interface(mconfig, *this)
21462146{
2147   m_token = global_alloc_array_clear(UINT8, sizeof(es5506_state));
2147   m_token = global_alloc_clear(es5506_state);
21482148}
21492149
21502150//-------------------------------------------------
trunk/src/emu/sound/ymf278b.c
r17983r17984
10931093   : device_t(mconfig, YMF278B, "YMF278B", tag, owner, clock),
10941094     device_sound_interface(mconfig, *this)
10951095{
1096   m_token = global_alloc_array_clear(UINT8, sizeof(YMF278BChip));
1096   m_token = global_alloc_clear(YMF278BChip);
10971097}
10981098
10991099//-------------------------------------------------
trunk/src/emu/sound/flt_vol.c
r17983r17984
4949   : device_t(mconfig, FILTER_VOLUME, "Volume Filter", tag, owner, clock),
5050     device_sound_interface(mconfig, *this)
5151{
52   m_token = global_alloc_array_clear(UINT8, sizeof(filter_volume_state));
52   m_token = global_alloc_clear(filter_volume_state);
5353}
5454
5555//-------------------------------------------------
trunk/src/emu/sound/2151intf.c
r17983r17984
124124   : device_t(mconfig, YM2151, "YM2151", tag, owner, clock),
125125     device_sound_interface(mconfig, *this)
126126{
127   m_token = global_alloc_array_clear(UINT8, sizeof(ym2151_state));
127   m_token = global_alloc_clear(ym2151_state);
128128}
129129
130130//-------------------------------------------------
trunk/src/emu/sound/k053260.c
r17983r17984
441441   : device_t(mconfig, K053260, "K053260", tag, owner, clock),
442442     device_sound_interface(mconfig, *this)
443443{
444   m_token = global_alloc_array_clear(UINT8, sizeof(k053260_state));
444   m_token = global_alloc_clear(k053260_state);
445445}
446446
447447//-------------------------------------------------
trunk/src/emu/sound/2413intf.c
r17983r17984
120120   : device_t(mconfig, YM2413, "YM2413", tag, owner, clock),
121121     device_sound_interface(mconfig, *this)
122122{
123   m_token = global_alloc_array_clear(UINT8, sizeof(ym2413_state));
123   m_token = global_alloc_clear(ym2413_state);
124124}
125125
126126//-------------------------------------------------
trunk/src/emu/sound/segapcm.c
r17983r17984
153153   : device_t(mconfig, SEGAPCM, "Sega PCM", tag, owner, clock),
154154     device_sound_interface(mconfig, *this)
155155{
156   m_token = global_alloc_array_clear(UINT8, sizeof(segapcm_state));
156   m_token = global_alloc_clear(segapcm_state);
157157}
158158
159159//-------------------------------------------------
trunk/src/emu/sound/vrender0.c
r17983r17984
244244   : device_t(mconfig, VRENDER0, "VRender0", tag, owner, clock),
245245     device_sound_interface(mconfig, *this)
246246{
247   m_token = global_alloc_array_clear(UINT8, sizeof(vr0_state));
247   m_token = global_alloc_clear(vr0_state);
248248}
249249
250250//-------------------------------------------------
trunk/src/emu/sound/8950intf.c
r17983r17984
179179   : device_t(mconfig, Y8950, "Y8950", tag, owner, clock),
180180     device_sound_interface(mconfig, *this)
181181{
182   m_token = global_alloc_array_clear(UINT8, sizeof(y8950_state));
182   m_token = global_alloc_clear(y8950_state);
183183}
184184
185185//-------------------------------------------------
trunk/src/emu/sound/t6w28.c
r17983r17984
370370   : device_t(mconfig, T6W28, "T6W28", tag, owner, clock),
371371     device_sound_interface(mconfig, *this)
372372{
373   m_token = global_alloc_array_clear(UINT8, sizeof(t6w28_state));
373   m_token = global_alloc_clear(t6w28_state);
374374}
375375
376376//-------------------------------------------------
trunk/src/emu/sound/multipcm.c
r17983r17984
678678   : device_t(mconfig, MULTIPCM, "Sega/Yamaha 315-5560", tag, owner, clock),
679679     device_sound_interface(mconfig, *this)
680680{
681   m_token = global_alloc_array_clear(UINT8, sizeof(MultiPCM));
681   m_token = global_alloc_clear(MultiPCM);
682682}
683683
684684//-------------------------------------------------
trunk/src/emu/sound/namco.c
r17983r17984
819819   : device_t(mconfig, NAMCO, "Namco", tag, owner, clock),
820820     device_sound_interface(mconfig, *this)
821821{
822   m_token = global_alloc_array_clear(UINT8, sizeof(namco_sound));
822   m_token = global_alloc_clear(namco_sound);
823823}
824824
825825namco_device::namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
826826   : device_t(mconfig, type, name, tag, owner, clock),
827827     device_sound_interface(mconfig, *this)
828828{
829   m_token = global_alloc_array_clear(UINT8, sizeof(namco_sound));
829   m_token = global_alloc_clear(namco_sound);
830830}
831831
832832//-------------------------------------------------
trunk/src/emu/sound/sn76477.c
r17983r17984
24722472   : device_t(mconfig, SN76477, "SN76477", tag, owner, clock),
24732473     device_sound_interface(mconfig, *this)
24742474{
2475   m_token = global_alloc_array_clear(UINT8, sizeof(sn76477_state));
2475   m_token = global_alloc_clear(sn76477_state);
24762476}
24772477
24782478//-------------------------------------------------
trunk/src/emu/sound/vlm5030.c
r17983r17984
693693   : device_t(mconfig, VLM5030, "VLM5030", tag, owner, clock),
694694     device_sound_interface(mconfig, *this)
695695{
696   m_token = global_alloc_array_clear(UINT8, sizeof(vlm5030_state));
696   m_token = global_alloc_clear(vlm5030_state);
697697}
698698
699699//-------------------------------------------------
trunk/src/emu/sound/2203intf.c
r17983r17984
186186   : device_t(mconfig, YM2203, "YM2203", tag, owner, clock),
187187     device_sound_interface(mconfig, *this)
188188{
189   m_token = global_alloc_array_clear(UINT8, sizeof(ym2203_state));
189   m_token = global_alloc_clear(ym2203_state);
190190}
191191
192192//-------------------------------------------------
trunk/src/emu/sound/k007232.c
r17983r17984
449449   : device_t(mconfig, K007232, "K007232", tag, owner, clock),
450450     device_sound_interface(mconfig, *this)
451451{
452   m_token = global_alloc_array_clear(UINT8, sizeof(KDAC_A_PCM));
452   m_token = global_alloc_clear(KDAC_A_PCM);
453453}
454454
455455//-------------------------------------------------
trunk/src/emu/sound/tms5220.c
r17983r17984
20362036   : device_t(mconfig, TMS5220, "TMS5220", tag, owner, clock),
20372037     device_sound_interface(mconfig, *this)
20382038{
2039   m_token = global_alloc_array_clear(UINT8, sizeof(tms5220_state));
2039   m_token = global_alloc_clear(tms5220_state);
20402040}
20412041tms5220_device::tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
20422042   : device_t(mconfig, type, name, tag, owner, clock),
20432043     device_sound_interface(mconfig, *this)
20442044{
2045   m_token = global_alloc_array_clear(UINT8, sizeof(tms5220_state));
2045   m_token = global_alloc_clear(tms5220_state);
20462046}
20472047
20482048//-------------------------------------------------
trunk/src/emu/sound/okim6258.c
r17983r17984
358358   : device_t(mconfig, OKIM6258, "OKI6258", tag, owner, clock),
359359     device_sound_interface(mconfig, *this)
360360{
361   m_token = global_alloc_array_clear(UINT8, sizeof(okim6258_state));
361   m_token = global_alloc_clear(okim6258_state);
362362}
363363
364364//-------------------------------------------------
trunk/src/emu/sound/nile.c
r17983r17984
235235   : device_t(mconfig, NILE, "NiLe", tag, owner, clock),
236236     device_sound_interface(mconfig, *this)
237237{
238   m_token = global_alloc_array_clear(UINT8, sizeof(nile_state));
238   m_token = global_alloc_clear(nile_state);
239239}
240240
241241//-------------------------------------------------
trunk/src/emu/sound/es8712.c
r17983r17984
384384   : device_t(mconfig, ES8712, "ES8712", tag, owner, clock),
385385     device_sound_interface(mconfig, *this)
386386{
387   m_token = global_alloc_array_clear(UINT8, sizeof(es8712_state));
387   m_token = global_alloc_clear(es8712_state);
388388}
389389
390390//-------------------------------------------------
trunk/src/emu/sound/nes_apu.c
r17983r17984
770770   : device_t(mconfig, NES, "N2A03", tag, owner, clock),
771771     device_sound_interface(mconfig, *this)
772772{
773   m_token = global_alloc_array_clear(UINT8, sizeof(nesapu_state));
773   m_token = global_alloc_clear(nesapu_state);
774774}
775775
776776//-------------------------------------------------
trunk/src/emu/sound/262intf.c
r17983r17984
136136   : device_t(mconfig, YMF262, "YMF262", tag, owner, clock),
137137     device_sound_interface(mconfig, *this)
138138{
139   m_token = global_alloc_array_clear(UINT8, sizeof(ymf262_state));
139   m_token = global_alloc_clear(ymf262_state);
140140}
141141
142142//-------------------------------------------------
trunk/src/emu/imagedev/flopdrv.c
r17983r17984
868868     device_image_interface(mconfig, *this),
869869     m_token(NULL)
870870{
871   m_token = global_alloc_array_clear(UINT8, sizeof(floppy_drive));
871   m_token = global_alloc_clear(floppy_drive);
872872}
873873
874874legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
r17983r17984
876876     device_image_interface(mconfig, *this),
877877     m_token(NULL)
878878{
879   m_token = global_alloc_array_clear(UINT8, sizeof(floppy_drive));
879   m_token = global_alloc_clear(floppy_drive);
880880}
881881
882882//-------------------------------------------------
trunk/src/emu/machine/adc1213x.c
r17983r17984
374374adc12138_device::adc12138_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
375375   : device_t(mconfig, ADC12138, "A/D Converter 12138", tag, owner, clock)
376376{
377   m_token = global_alloc_array_clear(UINT8, sizeof(adc12138_state));
377   m_token = global_alloc_clear(adc12138_state);
378378}
379379adc12138_device::adc12138_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
380380   : device_t(mconfig, type, name, tag, owner, clock)
381381{
382   m_token = global_alloc_array_clear(UINT8, sizeof(adc12138_state));
382   m_token = global_alloc_clear(adc12138_state);
383383}
384384
385385//-------------------------------------------------
trunk/src/emu/machine/74153.c
r17983r17984
180180ttl74153_device::ttl74153_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
181181   : device_t(mconfig, TTL74153, "74153", tag, owner, clock)
182182{
183   m_token = global_alloc_array_clear(UINT8, sizeof(ttl74153_state));
183   m_token = global_alloc_clear(ttl74153_state);
184184}
185185
186186//-------------------------------------------------
trunk/src/emu/machine/tms6100.c
r17983r17984
264264tms6100_device::tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
265265   : device_t(mconfig, TMS6100, "TMS6100", tag, owner, clock)
266266{
267   m_token = global_alloc_array_clear(UINT8, sizeof(tms6100_state));
267   m_token = global_alloc_clear(tms6100_state);
268268}
269269tms6100_device::tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
270270   : device_t(mconfig, type, name, tag, owner, clock)
271271{
272   m_token = global_alloc_array_clear(UINT8, sizeof(tms6100_state));
272   m_token = global_alloc_clear(tms6100_state);
273273}
274274
275275//-------------------------------------------------
trunk/src/emu/machine/smc91c9x.c
r17983r17984
586586smc91c9x_device::smc91c9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
587587   : device_t(mconfig, type, name, tag, owner, clock)
588588{
589   m_token = global_alloc_array_clear(UINT8, sizeof(smc91c9x_state));
589   m_token = global_alloc_clear(smc91c9x_state);
590590}
591591
592592//-------------------------------------------------
trunk/src/emu/machine/adc083x.c
r17983r17984
509509adc0831_device::adc0831_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
510510   : device_t(mconfig, ADC0831, "A/D Converters 0831", tag, owner, clock)
511511{
512   m_token = global_alloc_array_clear(UINT8, sizeof(adc0831_state));
512   m_token = global_alloc_clear(adc0831_state);
513513}
514514adc0831_device::adc0831_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
515515   : device_t(mconfig, type, name, tag, owner, clock)
516516{
517   m_token = global_alloc_array_clear(UINT8, sizeof(adc0831_state));
517   m_token = global_alloc_clear(adc0831_state);
518518}
519519
520520//-------------------------------------------------
trunk/src/emu/machine/pic8259.c
r17983r17984
451451pic8259_device::pic8259_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
452452   : device_t(mconfig, PIC8259, "Intel PIC8259", tag, owner, clock)
453453{
454   m_token = global_alloc_array_clear(UINT8, sizeof(pic8259_t));
454   m_token = global_alloc_clear(pic8259_t);
455455}
456456
457457//-------------------------------------------------
trunk/src/emu/machine/upd4701.c
r17983r17984
305305upd4701_device::upd4701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
306306   : device_t(mconfig, UPD4701, "NEC uPD4701 Encoder", tag, owner, clock)
307307{
308   m_token = global_alloc_array_clear(UINT8, sizeof(upd4701_state));
308   m_token = global_alloc_clear(upd4701_state);
309309}
310310
311311//-------------------------------------------------
trunk/src/emu/machine/s3c2440.c
r17983r17984
7676s3c2440_device::s3c2440_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
7777       : device_t(mconfig, S3C2440, "Samsung S3C2440", tag, owner, clock)
7878{
79   m_token = global_alloc_array_clear(UINT8, sizeof(s3c24xx_t));
79   m_token = global_alloc_clear(s3c24xx_t);
8080}
8181
8282//-------------------------------------------------
trunk/src/emu/machine/wd17xx.c
r17983r17984
22472247wd1770_device::wd1770_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
22482248   : device_t(mconfig, WD1770, "WD1770", tag, owner, clock)
22492249{
2250   m_token = global_alloc_array_clear(UINT8, sizeof(wd1770_state));
2250   m_token = global_alloc_clear(wd1770_state);
22512251}
22522252wd1770_device::wd1770_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
22532253   : device_t(mconfig, type, name, tag, owner, clock)
22542254{
2255   m_token = global_alloc_array_clear(UINT8, sizeof(wd1770_state));
2255   m_token = global_alloc_clear(wd1770_state);
22562256}
22572257
22582258//-------------------------------------------------
trunk/src/emu/machine/adc1038.c
r17983r17984
162162adc1038_device::adc1038_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
163163   : device_t(mconfig, ADC1038, "A/D Converters 1038", tag, owner, clock)
164164{
165   m_token = global_alloc_array_clear(UINT8, sizeof(adc1038_state));
165   m_token = global_alloc_clear(adc1038_state);
166166}
167167
168168//-------------------------------------------------
trunk/src/emu/machine/latch8.c
r17983r17984
236236latch8_device::latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
237237       : device_t(mconfig, LATCH8, "8 bit latch", tag, owner, clock)
238238{
239   m_token = global_alloc_array_clear(UINT8, sizeof(latch8_t));
239   m_token = global_alloc_clear(latch8_t);
240240   memset((void*)&m_inline_config,0,sizeof(m_inline_config));
241241}
242242
trunk/src/emu/machine/mb14241.c
r17983r17984
7272mb14241_device::mb14241_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
7373   : device_t(mconfig, MB14241, "MB14241", tag, owner, clock)
7474{
75   m_token = global_alloc_array_clear(UINT8, sizeof(mb14241_state));
75   m_token = global_alloc_clear(mb14241_state);
7676}
7777
7878//-------------------------------------------------
trunk/src/emu/machine/idectrl.c
r17983r17984
19481948ide_controller_device::ide_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
19491949   : device_t(mconfig, IDE_CONTROLLER, "IDE Controller", tag, owner, clock)
19501950{
1951   m_token = global_alloc_array_clear(UINT8, sizeof(ide_state));
1951   m_token = global_alloc_clear(ide_state);
19521952}
19531953
19541954//-------------------------------------------------
trunk/src/emu/machine/74148.c
r17983r17984
218218ttl74148_device::ttl74148_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
219219   : device_t(mconfig, TTL74148, "74148", tag, owner, clock)
220220{
221   m_token = global_alloc_array_clear(UINT8, sizeof(ttl74148_state));
221   m_token = global_alloc_clear(ttl74148_state);
222222}
223223
224224//-------------------------------------------------
trunk/src/emu/machine/68681.c
r17983r17984
908908duart68681_device::duart68681_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
909909   : device_t(mconfig, DUART68681, "DUART 68681", tag, owner, clock)
910910{
911   m_token = global_alloc_array_clear(UINT8, sizeof(duart68681_state));
911   m_token = global_alloc_clear(duart68681_state);
912912}
913913
914914//-------------------------------------------------
trunk/src/emu/machine/pd4990a.c
r17983r17984
525525upd4990a_device::upd4990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
526526   : device_t(mconfig, UPD4990A, "NEC uPD4990A", tag, owner, clock)
527527{
528   m_token = global_alloc_array_clear(UINT8, sizeof(upd4990a_state));
528   m_token = global_alloc_clear(upd4990a_state);
529529}
530530
531531//-------------------------------------------------
trunk/src/emu/machine/s3c2400.c
r17983r17984
7171s3c2400_device::s3c2400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
7272       : device_t(mconfig, S3C2400, "Samsung S3C2400", tag, owner, clock)
7373{
74   m_token = global_alloc_array_clear(UINT8, sizeof(s3c24xx_t));
74   m_token = global_alloc_clear(s3c24xx_t);
7575}
7676
7777//-------------------------------------------------
trunk/src/emu/machine/rp5h01.c
r17983r17984
226226rp5h01_device::rp5h01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
227227   : device_t(mconfig, RP5H01, "RP5H01", tag, owner, clock)
228228{
229   m_token = global_alloc_array_clear(UINT8, sizeof(rp5h01_state));
229   m_token = global_alloc_clear(rp5h01_state);
230230}
231231
232232//-------------------------------------------------
trunk/src/emu/machine/s3c2410.c
r17983r17984
7474s3c2410_device::s3c2410_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
7575       : device_t(mconfig, S3C2410, "Samsung S3C2410", tag, owner, clock)
7676{
77   m_token = global_alloc_array_clear(UINT8, sizeof(s3c24xx_t));
77   m_token = global_alloc_clear(s3c24xx_t);
7878}
7979
8080//-------------------------------------------------
trunk/src/emu/machine/6525tpi.c
r17983r17984
600600tpi6525_device::tpi6525_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
601601   : device_t(mconfig, TPI6525, "6525 TPI", tag, owner, clock)
602602{
603   m_token = global_alloc_array_clear(UINT8, sizeof(tpi6525_state));
603   m_token = global_alloc_clear(tpi6525_state);
604604}
605605
606606//-------------------------------------------------
trunk/src/emu/machine/k053252.c
r17983r17984
235235k053252_device::k053252_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
236236   : device_t(mconfig, K053252, "Konami 053252", tag, owner, clock)
237237{
238   m_token = global_alloc_array_clear(UINT8, sizeof(k053252_state));
238   m_token = global_alloc_clear(k053252_state);
239239}
240240
241241//-------------------------------------------------
trunk/src/emu/machine/mb87078.c
r17983r17984
270270mb87078_device::mb87078_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
271271   : device_t(mconfig, MB87078, "Fujitsu MB87078", tag, owner, clock)
272272{
273   m_token = global_alloc_array_clear(UINT8, sizeof(mb87078_state));
273   m_token = global_alloc_clear(mb87078_state);
274274}
275275
276276//-------------------------------------------------
trunk/src/emu/machine/pit8253.c
r17983r17984
11581158pit8253_device::pit8253_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
11591159   : device_t(mconfig, PIT8253, "Intel PIT8253", tag, owner, clock)
11601160{
1161   m_token = global_alloc_array_clear(UINT8, sizeof(pit8253_t));
1161   m_token = global_alloc_clear(pit8253_t);
11621162}
11631163pit8253_device::pit8253_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
11641164   : device_t(mconfig, type, name, tag, owner, clock)
11651165{
1166   m_token = global_alloc_array_clear(UINT8, sizeof(pit8253_t));
1166   m_token = global_alloc_clear(pit8253_t);
11671167}
11681168
11691169//-------------------------------------------------
trunk/src/mess/audio/wswan.c
r17983r17984
254254   : device_t(mconfig, WSWAN, "WonderSwan Custom", tag, owner, clock),
255255     device_sound_interface(mconfig, *this)
256256{
257   m_token = global_alloc_array_clear(UINT8, sizeof(wswan_sound_state));
257   m_token = global_alloc_clear(wswan_sound_state);
258258}
259259
260260//-------------------------------------------------
trunk/src/mess/audio/mac.c
r17983r17984
193193   : device_t(mconfig, MAC_SOUND, "Mac Custom", tag, owner, clock),
194194     device_sound_interface(mconfig, *this)
195195{
196   m_token = global_alloc_array_clear(UINT8, sizeof(mac_sound));
196   m_token = global_alloc_clear(mac_sound);
197197}
198198
199199//-------------------------------------------------
trunk/src/mess/audio/gmaster.c
r17983r17984
7171   : device_t(mconfig, GMASTER, "Game Master Custom", tag, owner, clock),
7272     device_sound_interface(mconfig, *this)
7373{
74   m_token = global_alloc_array_clear(UINT8, sizeof(gmaster_sound));
74   m_token = global_alloc_clear(gmaster_sound);
7575}
7676
7777//-------------------------------------------------
trunk/src/mess/audio/upd1771.c
r17983r17984
464464   : device_t(mconfig, UPD1771C, "NEC uPD1771C 017", tag, owner, clock),
465465     device_sound_interface(mconfig, *this)
466466{
467   m_token = global_alloc_array_clear(UINT8, sizeof(upd1771_state));
467   m_token = global_alloc_clear(upd1771_state);
468468}
469469
470470//-------------------------------------------------
trunk/src/mess/audio/mea8000.c
r17983r17984
708708mea8000_device::mea8000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
709709   : device_t(mconfig, MEA8000, "Philips / Signetics MEA 8000 speech synthesizer", tag, owner, clock)
710710{
711   m_token = global_alloc_array_clear(UINT8, sizeof(mea8000_t));
711   m_token = global_alloc_clear(mea8000_t);
712712}
713713
714714//-------------------------------------------------
trunk/src/mess/audio/vc4000.c
r17983r17984
8787   : device_t(mconfig, VC4000, "VC 4000 Custom", tag, owner, clock),
8888     device_sound_interface(mconfig, *this)
8989{
90   m_token = global_alloc_array_clear(UINT8, sizeof(vc4000_sound));
90   m_token = global_alloc_clear(vc4000_sound);
9191}
9292
9393//-------------------------------------------------
trunk/src/mess/audio/channelf.c
r17983r17984
137137   : device_t(mconfig, CHANNELF, "Channel F", tag, owner, clock),
138138     device_sound_interface(mconfig, *this)
139139{
140   m_token = global_alloc_array_clear(UINT8, sizeof(channelf_sound_state));
140   m_token = global_alloc_clear(channelf_sound_state);
141141}
142142
143143//-------------------------------------------------
trunk/src/mess/audio/dave.c
r17983r17984
823823   : device_t(mconfig, DAVE, "Dave", tag, owner, clock),
824824     device_sound_interface(mconfig, *this)
825825{
826   m_token = global_alloc_array_clear(UINT8, sizeof(dave_t));
826   m_token = global_alloc_clear(dave_t);
827827}
828828
829829//-------------------------------------------------
trunk/src/mess/audio/special.c
r17983r17984
7777   : device_t(mconfig, SPECIMX, "Specialist MX Custom", tag, owner, clock),
7878     device_sound_interface(mconfig, *this)
7979{
80   m_token = global_alloc_array_clear(UINT8, sizeof(specimx_sound_state));
80   m_token = global_alloc_clear(specimx_sound_state);
8181}
8282
8383//-------------------------------------------------
trunk/src/mess/audio/socrates.c
r17983r17984
149149   : device_t(mconfig, SOCRATES, "Socrates Sound", tag, owner, clock),
150150     device_sound_interface(mconfig, *this)
151151{
152   m_token = global_alloc_array_clear(UINT8, sizeof(SocratesASIC));
152   m_token = global_alloc_clear(SocratesASIC);
153153}
154154
155155//-------------------------------------------------
trunk/src/mess/audio/t6721.c
r17983r17984
288288t6721_device::t6721_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
289289   : device_t(mconfig, T6721, "Toshiba 6721A", tag, owner, clock)
290290{
291   m_token = global_alloc_array_clear(UINT8, sizeof(t6721_state));
291   m_token = global_alloc_clear(t6721_state);
292292}
293293
294294//-------------------------------------------------
trunk/src/mess/audio/gb.c
r17983r17984
761761   : device_t(mconfig, GAMEBOY, "LR35902", tag, owner, clock),
762762     device_sound_interface(mconfig, *this)
763763{
764   m_token = global_alloc_array_clear(UINT8, sizeof(gb_sound_t));
764   m_token = global_alloc_clear(gb_sound_t);
765765}
766766
767767//-------------------------------------------------
trunk/src/mess/audio/lynx.c
r17983r17984
506506   : device_t(mconfig, LYNX, "Mikey", tag, owner, clock),
507507     device_sound_interface(mconfig, *this)
508508{
509   m_token = global_alloc_array_clear(UINT8, sizeof(lynx_sound_state));
509   m_token = global_alloc_clear(lynx_sound_state);
510510}
511511
512512lynx_sound_device::lynx_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
513513   : device_t(mconfig, type, name, tag, owner, clock),
514514     device_sound_interface(mconfig, *this)
515515{
516   m_token = global_alloc_array_clear(UINT8, sizeof(lynx_sound_state));
516   m_token = global_alloc_clear(lynx_sound_state);
517517}
518518
519519//-------------------------------------------------
trunk/src/mess/audio/svision.c
r17983r17984
303303   : device_t(mconfig, SVISION, "Super Vision Custom", tag, owner, clock),
304304     device_sound_interface(mconfig, *this)
305305{
306   m_token = global_alloc_array_clear(UINT8, sizeof(svision_sound_state));
306   m_token = global_alloc_clear(svision_sound_state);
307307}
308308
309309//-------------------------------------------------
trunk/src/mess/machine/strata.c
r17983r17984
104104strataflash_device::strataflash_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
105105   : device_t(mconfig, STRATAFLASH, "Intel 28F640J5", tag, owner, clock)
106106{
107   m_token = global_alloc_array_clear(UINT8, sizeof(strata_t));
107   m_token = global_alloc_clear(strata_t);
108108}
109109
110110//-------------------------------------------------
trunk/src/mess/machine/mos6530.c
r17983r17984
437437mos6530_device::mos6530_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
438438   : device_t(mconfig, MOS6530, "MOS6530", tag, owner, clock)
439439{
440   m_token = global_alloc_array_clear(UINT8, sizeof(mos6530_state));
440   m_token = global_alloc_clear(mos6530_state);
441441}
442442
443443//-------------------------------------------------
trunk/src/mess/machine/mc6854.c
r17983r17984
10441044mc6854_device::mc6854_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
10451045   : device_t(mconfig, MC6854, "Motorola MC6854 ADLC", tag, owner, clock)
10461046{
1047   m_token = global_alloc_array_clear(UINT8, sizeof(mc6854_t));
1047   m_token = global_alloc_clear(mc6854_t);
10481048}
10491049
10501050//-------------------------------------------------
trunk/src/mess/machine/mc6846.c
r17983r17984
641641mc6846_device::mc6846_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
642642   : device_t(mconfig, MC6846, "Motorola MC6846 programmable timer", tag, owner, clock)
643643{
644   m_token = global_alloc_array_clear(UINT8, sizeof(mc6846_t));
644   m_token = global_alloc_clear(mc6846_t);
645645}
646646
647647//-------------------------------------------------
trunk/src/mess/machine/sst39vfx.c
r17983r17984
182182sst39vf020_device::sst39vf020_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
183183   : device_t(mconfig, SST39VF020, "SST39VF020", tag, owner, clock)
184184{
185   m_token = global_alloc_array_clear(UINT8, sizeof(sst39vfx_t));
185   m_token = global_alloc_clear(sst39vfx_t);
186186}
187187sst39vf020_device::sst39vf020_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
188188   : device_t(mconfig, type, name, tag, owner, clock)
189189{
190   m_token = global_alloc_array_clear(UINT8, sizeof(sst39vfx_t));
190   m_token = global_alloc_clear(sst39vfx_t);
191191}
192192
193193//-------------------------------------------------
trunk/src/mess/machine/upd71071.c
r17983r17984
424424upd71071_device::upd71071_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
425425   : device_t(mconfig, UPD71071, "NEC uPD71071", tag, owner, clock)
426426{
427   m_token = global_alloc_array_clear(UINT8, sizeof(upd71071_t));
427   m_token = global_alloc_clear(upd71071_t);
428428}
429429
430430//-------------------------------------------------
trunk/src/mess/machine/e05a03.c
r17983r17984
220220e05a03_device::e05a03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
221221   : device_t(mconfig, E05A03, "E05A03", tag, owner, clock)
222222{
223   m_token = global_alloc_array_clear(UINT8, sizeof(e05a03_state));
223   m_token = global_alloc_clear(e05a03_state);
224224}
225225
226226//-------------------------------------------------
trunk/src/mess/machine/990_tap.c
r17983r17984
10691069tap_990_device::tap_990_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
10701070   : device_t(mconfig, TI990_TAPE_CTRL, "Generic TI990 Tape Controller", tag, owner, clock)
10711071{
1072   m_token = global_alloc_array_clear(UINT8, sizeof(tap_990_t));
1072   m_token = global_alloc_clear(tap_990_t);
10731073}
10741074
10751075//-------------------------------------------------
trunk/src/mess/machine/ds1315.c
r17983r17984
243243ds1315_device::ds1315_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
244244   : device_t(mconfig, DS1315, "Dallas Semiconductor DS1315", tag, owner, clock)
245245{
246   m_token = global_alloc_array_clear(UINT8, sizeof(ds1315_t));
246   m_token = global_alloc_clear(ds1315_t);
247247}
248248
249249//-------------------------------------------------
trunk/src/mess/machine/pc_lpt.c
r17983r17984
231231pc_lpt_device::pc_lpt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
232232   : device_t(mconfig, PC_LPT, "PC-LPT", tag, owner, clock)
233233{
234   m_token = global_alloc_array_clear(UINT8, sizeof(pc_lpt_state));
234   m_token = global_alloc_clear(pc_lpt_state);
235235}
236236
237237//-------------------------------------------------
trunk/src/mess/machine/s3c44b0.c
r17983r17984
20402040s3c44b0_device::s3c44b0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
20412041   : device_t(mconfig, S3C44B0, "Samsung S3C44B0", tag, owner, clock)
20422042{
2043   m_token = global_alloc_array_clear(UINT8, sizeof(s3c44b0_t));
2043   m_token = global_alloc_clear(s3c44b0_t);
20442044}
20452045
20462046//-------------------------------------------------
trunk/src/mess/machine/mc68328.c
r17983r17984
28402840mc68328_device::mc68328_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
28412841   : device_t(mconfig, MC68328, "Motorola MC68328 (DragonBall) Integrated Processor", tag, owner, clock)
28422842{
2843   m_token = global_alloc_array_clear(UINT8, sizeof(mc68328_t));
2843   m_token = global_alloc_clear(mc68328_t);
28442844}
28452845
28462846//-------------------------------------------------
trunk/src/mess/machine/micropolis.c
r17983r17984
381381micropolis_device::micropolis_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
382382   : device_t(mconfig, MICROPOLIS, "MICROPOLIS", tag, owner, clock)
383383{
384   m_token = global_alloc_array_clear(UINT8, sizeof(micropolis_state));
384   m_token = global_alloc_clear(micropolis_state);
385385}
386386
387387//-------------------------------------------------
trunk/src/mess/machine/tf20.c
r17983r17984
362362tf20_device::tf20_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
363363   : device_t(mconfig, TF20, "TF-20", tag, owner, clock)
364364{
365   m_token = global_alloc_array_clear(UINT8, sizeof(tf20_state));
365   m_token = global_alloc_clear(tf20_state);
366366}
367367
368368//-------------------------------------------------
trunk/src/mess/machine/hd63450.c
r17983r17984
467467hd63450_device::hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
468468   : device_t(mconfig, HD63450, "Hitachi HD63450", tag, owner, clock)
469469{
470   m_token = global_alloc_array_clear(UINT8, sizeof(hd63450_t));
470   m_token = global_alloc_clear(hd63450_t);
471471}
472472
473473//-------------------------------------------------
trunk/src/mess/machine/kr2376.c
r17983r17984
379379kr2376_device::kr2376_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
380380   : device_t(mconfig, KR2376, "SMC KR2376", tag, owner, clock)
381381{
382   m_token = global_alloc_array_clear(UINT8, sizeof(kr2376_t));
382   m_token = global_alloc_clear(kr2376_t);
383383}
384384
385385//-------------------------------------------------
trunk/src/mess/machine/applefdc.c
r17983r17984
770770applefdc_base_device::applefdc_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
771771   : device_t(mconfig, type, name, tag, owner, clock)
772772{
773   m_token = global_alloc_array_clear(UINT8, sizeof(applefdc_token));
773   m_token = global_alloc_clear(applefdc_token);
774774}
775775
776776//-------------------------------------------------
trunk/src/mess/machine/upd765.c
r17983r17984
24802480upd765a_device::upd765a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
24812481   : device_t(mconfig, UPD765A, "UPD765A", tag, owner, clock)
24822482{
2483   m_token = global_alloc_array_clear(UINT8, sizeof(upd765_t));
2483   m_token = global_alloc_clear(upd765_t);
24842484}
24852485upd765a_device::upd765a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
24862486   : device_t(mconfig, type, name, tag, owner, clock)
24872487{
2488   m_token = global_alloc_array_clear(UINT8, sizeof(upd765_t));
2488   m_token = global_alloc_clear(upd765_t);
24892489}
24902490
24912491//-------------------------------------------------
trunk/src/mess/machine/at45dbxx.c
r17983r17984
418418at45db041_device::at45db041_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
419419   : device_t(mconfig, AT45DB041, "AT45DB041", tag, owner, clock)
420420{
421   m_token = global_alloc_array_clear(UINT8, sizeof(at45dbxx_t));
421   m_token = global_alloc_clear(at45dbxx_t);
422422}
423423at45db041_device::at45db041_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
424424   : device_t(mconfig, type, name, tag, owner, clock)
425425{
426   m_token = global_alloc_array_clear(UINT8, sizeof(at45dbxx_t));
426   m_token = global_alloc_clear(at45dbxx_t);
427427}
428428
429429//-------------------------------------------------
trunk/src/mess/machine/er59256.c
r17983r17984
227227er59256_device::er59256_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
228228   : device_t(mconfig, ER59256, "Microchip ER59256 serial eeprom.", tag, owner, clock)
229229{
230   m_token = global_alloc_array_clear(UINT8, sizeof(er59256_t));
230   m_token = global_alloc_clear(er59256_t);
231231}
232232
233233//-------------------------------------------------
trunk/src/mess/machine/pf10.c
r17983r17984
136136pf10_device::pf10_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
137137   : device_t(mconfig, PF10, "PF-10", tag, owner, clock)
138138{
139   m_token = global_alloc_array_clear(UINT8, sizeof(pf10_state));
139   m_token = global_alloc_clear(pf10_state);
140140}
141141
142142//-------------------------------------------------
trunk/src/mess/machine/pcf8593.c
r17983r17984
449449pcf8593_device::pcf8593_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
450450   : device_t(mconfig, PCF8593, "PCF8593 RTC", tag, owner, clock)
451451{
452   m_token = global_alloc_array_clear(UINT8, sizeof(pcf8593_t));
452   m_token = global_alloc_clear(pcf8593_t);
453453}
454454
455455//-------------------------------------------------
trunk/src/mess/machine/i8271.c
r17983r17984
15791579i8271_device::i8271_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
15801580   : device_t(mconfig, I8271, "Intel 8271", tag, owner, clock)
15811581{
1582   m_token = global_alloc_array_clear(UINT8, sizeof(i8271_t));
1582   m_token = global_alloc_clear(i8271_t);
15831583}
15841584
15851585//-------------------------------------------------
trunk/src/mess/machine/upd7002.c
r17983r17984
213213uPD7002_device::uPD7002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
214214   : device_t(mconfig, UPD7002, "uPD7002", tag, owner, clock)
215215{
216   m_token = global_alloc_array_clear(UINT8, sizeof(uPD7002_t));
216   m_token = global_alloc_clear(uPD7002_t);
217217}
218218
219219//-------------------------------------------------
trunk/src/mess/machine/beta.c
r17983r17984
332332beta_disk_device::beta_disk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
333333   : device_t(mconfig, BETA_DISK, "Beta Disk Interface", tag, owner, clock)
334334{
335   m_token = global_alloc_array_clear(UINT8, sizeof(beta_disk_state));
335   m_token = global_alloc_clear(beta_disk_state);
336336}
337337
338338//-------------------------------------------------
trunk/src/mess/machine/ay31015.c
r17983r17984
728728ay31015_device::ay31015_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
729729   : device_t(mconfig, AY31015, "AY-3-1015", tag, owner, clock)
730730{
731   m_token = global_alloc_array_clear(UINT8, sizeof(ay31015_t));
731   m_token = global_alloc_clear(ay31015_t);
732732}
733733
734734//-------------------------------------------------
trunk/src/mess/machine/mc6843.c
r17983r17984
835835mc6843_device::mc6843_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
836836   : device_t(mconfig, MC6843, "Motorola MC6843 floppy controller", tag, owner, clock)
837837{
838   m_token = global_alloc_array_clear(UINT8, sizeof(mc6843_t));
838   m_token = global_alloc_clear(mc6843_t);
839839}
840840
841841//-------------------------------------------------
trunk/src/mess/machine/mm58274c.c
r17983r17984
520520mm58274c_device::mm58274c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
521521   : device_t(mconfig, MM58274C, "National Semiconductor MM58274C", tag, owner, clock)
522522{
523   m_token = global_alloc_array_clear(UINT8, sizeof(mm58274c_t));
523   m_token = global_alloc_clear(mm58274c_t);
524524}
525525
526526//-------------------------------------------------
trunk/src/mess/machine/atarifdc.c
r17983r17984
817817atari_fdc_device::atari_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
818818   : device_t(mconfig, ATARI_FDC, "Atari FDC", tag, owner, clock)
819819{
820   m_token = global_alloc_array_clear(UINT8, sizeof(atari_fdc_t));
820   m_token = global_alloc_clear(atari_fdc_t);
821821}
822822
823823//-------------------------------------------------
trunk/src/mess/machine/omti8621.c
r17983r17984
13371337omti8621_device::omti8621_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
13381338   : device_t(mconfig, OMTI8621, "OMTI 8621", tag, owner, clock)
13391339{
1340   m_token = global_alloc_array_clear(UINT8, sizeof(omti8621_state));
1340   m_token = global_alloc_clear(omti8621_state);
13411341}
13421342
13431343//-------------------------------------------------
trunk/src/mess/video/911_vdt.c
r17983r17984
273273vdt911_device::vdt911_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
274274   : device_t(mconfig, VDT911, "911 VDT", tag, owner, clock)
275275{
276   m_token = global_alloc_array_clear(UINT8, sizeof(vdt_t));
276   m_token = global_alloc_clear(vdt_t);
277277}
278278
279279//-------------------------------------------------
trunk/src/mess/video/apollo.c
r17983r17984
836836apollo_mono_device::apollo_mono_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
837837   : device_t(mconfig, type, name, tag, owner, clock)
838838{
839   m_token = global_alloc_array_clear(UINT8, sizeof(screen_data_t));
839   m_token = global_alloc_clear(screen_data_t);
840840}
841841
842842const device_type APOLLO_MONO19I = &device_creator<apollo_mono19i_device>;
trunk/src/mess/video/vic4567.c
r17983r17984
21542154vic3_device::vic3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
21552155   : device_t(mconfig, VIC3, "4567 VIC III", tag, owner, clock)
21562156{
2157   m_token = global_alloc_array_clear(UINT8, sizeof(vic3_state));
2157   m_token = global_alloc_clear(vic3_state);
21582158}
21592159
21602160//-------------------------------------------------
trunk/src/mess/video/vtvideo.c
r17983r17984
452452vt100_video_device::vt100_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
453453   : device_t(mconfig, VT100_VIDEO, "VT100 Video", tag, owner, clock)
454454{
455   m_token = global_alloc_array_clear(UINT8, sizeof(vt_video_t));
455   m_token = global_alloc_clear(vt_video_t);
456456}
457457
458458//-------------------------------------------------
trunk/src/mess/video/vdc8563.c
r17983r17984
662662vdc8563_device::vdc8563_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
663663   : device_t(mconfig, VDC8563, "8563 / 8568 VDC", tag, owner, clock)
664664{
665   m_token = global_alloc_array_clear(UINT8, sizeof(vdc8563_state));
665   m_token = global_alloc_clear(vdc8563_state);
666666}
667667
668668//-------------------------------------------------
trunk/src/mess/video/vic6567.c
r17983r17984
28042804vic2_device::vic2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
28052805   : device_t(mconfig, VIC2, "6567 / 6569 VIC II", tag, owner, clock)
28062806{
2807   m_token = global_alloc_array_clear(UINT8, sizeof(vic2_state));
2807   m_token = global_alloc_clear(vic2_state);
28082808}
28092809
28102810//-------------------------------------------------
trunk/src/mess/video/crt.c
r17983r17984
104104crt_device::crt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
105105   : device_t(mconfig, CRT, "CRT Video", tag, owner, clock)
106106{
107   m_token = global_alloc_array_clear(UINT8, sizeof(crt_t));
107   m_token = global_alloc_clear(crt_t);
108108}
109109
110110//-------------------------------------------------
trunk/src/mess/video/dl1416.c
r17983r17984
296296dl1416_device::dl1416_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
297297   : device_t(mconfig, type, name, tag, owner, clock)
298298{
299   m_token = global_alloc_array_clear(UINT8, sizeof(dl1416_state));
299   m_token = global_alloc_clear(dl1416_state);
300300}
301301
302302//-------------------------------------------------
trunk/src/mess/video/733_asr.c
r17983r17984
221221asr733_device::asr733_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
222222   : device_t(mconfig, ASR733, "733 ASR", tag, owner, clock)
223223{
224   m_token = global_alloc_array_clear(UINT8, sizeof(asr_t));
224   m_token = global_alloc_clear(asr_t);
225225}
226226
227227//-------------------------------------------------
trunk/src/mess/video/k1ge.c
r17983r17984
896896k1ge_device::k1ge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
897897   : device_t(mconfig, K1GE, "", tag, owner, clock)
898898{
899   m_token = global_alloc_array_clear(UINT8, sizeof( k1ge_t ));
899   m_token = global_alloc_clear(k1ge_t);
900900}
901901
902902k1ge_device::k1ge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
903903   : device_t(mconfig, type, name, tag, owner, clock)
904904{
905   m_token = global_alloc_array_clear(UINT8, sizeof( k1ge_t ));
905   m_token = global_alloc_clear(k1ge_t);
906906}
907907
908908//-------------------------------------------------

Previous 199869 Revisions Next


© 1997-2024 The MAME Team