Previous 15994 Revisions Next

r2343 Wednesday 9th April, 2008 at 10:02:47 UTC by Miodrag Milanović
[ORION] Beeper fixed
[src/mess/machine]orion.c

src/mess/machine/orion.c
r2342r2343
280280   mc146818_init(MC146818_IGNORE_CENTURY);
281281}
282282
283
283UINT8 orion_speaker;
284284WRITE8_HANDLER ( orionz80_sound_w )
285285{   
286   speaker_level_w(0,data);
286   if (orion_speaker==0) {
287      orion_speaker = data;     
288   } else {
289      orion_speaker = 0 ;   
290   }
291   speaker_level_w(0,orion_speaker);
292     
287293}
288294
289295WRITE8_HANDLER ( orionz80_sound_fe_w )
r2342r2343
383389   orion128_video_mode = 0;
384390   orionz80_memory_page = 0;
385391   orionz80_dispatcher = 0;
392   orion_speaker = 0;
386393   orion128_video_width = SCREEN_WIDTH_384;
387394   orion_set_video_mode(machine,384);
388395}
r2342r2343
390397INTERRUPT_GEN( orionz80_interrupt )
391398{
392399   if ((orionz80_dispatcher & 0x40)==0x40) {
393      cpunum_set_input_line(machine, 0, 0, HOLD_LINE);   
394      speaker_level_w(0,0);
400      cpunum_set_input_line(machine, 0, 0, HOLD_LINE);         
395401   }   
396402}
397403

Previous 15994 Revisions Next


© 1998-2018 The MESS Team