speaker_enable = val & 2;
if (speaker_enable)
was_speaker_enable = 1;
- pit_set_gate(&pit, 2, val & 1);
+ pit_set_gate((PIT*)priv, 2, val & 1);
if (romset == ROM_XI8088)
{
{
//return;
memset(&keyboard_at, 0, sizeof(keyboard_at));
- io_sethandler(0x0060, 0x0005, keyboard_at_read, NULL, NULL, keyboard_at_write, NULL, NULL, NULL);
+ io_sethandler(0x0060, 0x0005, keyboard_at_read, NULL, NULL, keyboard_at_write, NULL, NULL, &pit);
keyboard_at_reset();
keyboard_send = keyboard_at_adddata_keyboard;
keyboard_poll = keyboard_at_poll;
{
case 0x60:
if (xb->type >= TYPE_2286) {
- keyboard_at_write(portnum, v, NULL);
+ keyboard_at_write(portnum, v, &pit);
} else {
aio = 0x41f;
}
case 0x61:
//write_log(_T("OUT Port B %02x\n"), v);
if (xb->type >= TYPE_2286) {
- keyboard_at_write(portnum, v, NULL);
+ keyboard_at_write(portnum, v, &pit);
} else {
timer_process();
//timer_update_outstanding();
break;
case 0x64:
if (xb->type >= TYPE_2286) {
- keyboard_at_write(portnum, v, NULL);
+ keyboard_at_write(portnum, v, &pit);
}
break;