Previous 15994 Revisions Next

r2473 Friday 25th April, 2008 at 16:00:39 UTC by Wilbert Pol
[IBMPC] 8255 port C bit 5 should hold the 8253 timer 2 output.
[src/mess/machine]ibmpc.c

src/mess/machine/ibmpc.c
r2472r2473
142142
143143 READ8_HANDLER ( pc_ppi_portc_r )
144144{
145   int timer2_output = pit8253_get_output( device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" ), 2 );
145146   int data=0xff;
146147
147148   data&=~0x80; // no parity error
r2472r2473
171172      }
172173   } else {
173174      if ( pc_ppi.portb & 0x01 ) {
174         data = ( data & ~0x10 ) | ( pit8253_get_output( (device_config*)device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" ), 2 ) ? 0x10 : 0x00 );
175         data = ( data & ~0x10 ) | ( timer2_output ? 0x10 : 0x00 );
175176      }
176177   }
178   data = ( data & ~0x20 ) | ( timer2_output ? 0x20 : 0x00 );
179
177180   return data;
178181}
179182
r2472r2473
189192   pc_ppi.portb = data;
190193   pc_ppi.portc_switch_high = data & 0x08;
191194   pc_ppi.keyboard_disabled = data & 0x80;
192   pit8253_gate_w( (device_config*)device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" ), 2, data & 1);
195   pit8253_gate_w( device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" ), 2, data & 1);
193196   pc_sh_speaker(machine, data & 0x03);
194197   pc_keyb_set_clock(data & 0x40);
195198

Previous 15994 Revisions Next


© 1998-2018 The MESS Team