Previous 15994 Revisions Next

r2335 Tuesday 8th April, 2008 at 17:47:42 UTC by Wilbert Pol
[SPECIMX] Fixed 8253 asserts.
[src/mess/audio]special.c
[src/mess/machine]special.c

src/mess/audio/special.c
r2334r2335
3434
3535static void specimx_sh_update(void *param,stream_sample_t **inputs, stream_sample_t **buffer,int length)
3636{
37   device_config *pit8253 = (device_config*)device_list_find_by_tag( Machine->config->devicelist, PIT8253, "pit8253" );
3738   INT16 channel_0_signal;
3839   INT16 channel_1_signal;
3940   INT16 channel_2_signal;
r2334r2335
4950   stream_sample_t *sample_left = buffer[0];
5051   stream_sample_t *sample_right = buffer[1];
5152
52   channel_0_baseclock = pit8253_get_frequency(0, 0);
53   channel_1_baseclock = pit8253_get_frequency(0, 1);
54   channel_2_baseclock = pit8253_get_frequency(0, 2);
53   channel_0_baseclock = pit8253_get_frequency(pit8253, 0);
54   channel_1_baseclock = pit8253_get_frequency(pit8253, 1);
55   channel_2_baseclock = pit8253_get_frequency(pit8253, 2);
5556
56   channel_0_signal = pit8253_get_output (0,0) ? 3000 : -3000;
57   channel_1_signal = pit8253_get_output (0,1) ? 3000 : -3000;
58   channel_2_signal = pit8253_get_output (0,2) ? 3000 : -3000;
57   channel_0_signal = pit8253_get_output (pit8253,0) ? 3000 : -3000;
58   channel_1_signal = pit8253_get_output (pit8253,1) ? 3000 : -3000;
59   channel_2_signal = pit8253_get_output (pit8253,2) ? 3000 : -3000;
5960
6061
6162   while (length--)
src/mess/machine/special.c
r2334r2335
233233   wd17xx_set_density (DEN_FM_HI);
234234}
235235
236static TIMER_CALLBACK( setup_pit8253_gates ) {
237   device_config *pit8253 = (device_config*)device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" );
238
239   pit8253_gate_w(pit8253, 0, 0);
240   pit8253_gate_w(pit8253, 1, 0);
241   pit8253_gate_w(pit8253, 2, 0);
242}
243
236244MACHINE_RESET( specimx )
237245{
238   device_config *pit8253 = (device_config*)device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" );
239
240246   ppi8255_init(&specialist_ppi8255_interface);
241247   specimx_set_bank(2,0x00); // Initiali load ROM disk
242248   specimx_color = 0x70;   
243249   wd17xx_reset();
244250   wd17xx_set_side(0);
245   pit8253_gate_w(pit8253, 0, 0);
246   pit8253_gate_w(pit8253, 1, 0);
247   pit8253_gate_w(pit8253, 2, 0);
251   timer_set( attotime_zero, NULL, 0, setup_pit8253_gates );
248252}
249253
250254READ8_HANDLER ( specimx_disk_ctrl_r )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team