src/mess/drivers/glasgow.c
| r3689 | r3690 | |
| 189 | 189 | { |
| 190 | 190 | UINT16 data; |
| 191 | 191 | data = 0x0300; |
| 192 | | key_low = input_port_read(machine, "LINE0"); |
| 193 | | key_hi = input_port_read(machine, "LINE1"); |
| 192 | key_low = input_port_read(space->machine, "LINE0"); |
| 193 | key_hi = input_port_read(space->machine, "LINE1"); |
| 194 | 194 | //logerror("Keyboard Offset = %x Data = %x\n ",offset,data); |
| 195 | 195 | if (key_select == key_low) |
| 196 | 196 | data = data & 0x100; |
| r3689 | r3690 | |
| 205 | 205 | UINT16 data; |
| 206 | 206 | |
| 207 | 207 | if (key_selector == 0) |
| 208 | | data = input_port_read(machine, "LINE0"); |
| 208 | data = input_port_read(space->machine, "LINE0"); |
| 209 | 209 | else |
| 210 | | data = input_port_read(machine, "LINE1"); |
| 210 | data = input_port_read(space->machine, "LINE1"); |
| 211 | 211 | |
| 212 | 212 | logerror("read Keyboard Offset = %x Data = %x Select = %x \n", offset, data, key_selector); |
| 213 | 213 | data = data << 8; |
| r3689 | r3690 | |
| 358 | 358 | { |
| 359 | 359 | UINT32 data; |
| 360 | 360 | if (key_selector == 0) |
| 361 | | data = input_port_read(machine, "LINE0"); |
| 361 | data = input_port_read(space->machine, "LINE0"); |
| 362 | 362 | else |
| 363 | | data = input_port_read(machine, "LINE1"); |
| 363 | data = input_port_read(space->machine, "LINE1"); |
| 364 | 364 | //if (key_selector==1) data=input_port_read(machine, "LINE0");else data=0; |
| 365 | 365 | logerror("read Keyboard Offset = %x Data = %x\n", offset, data); |
| 366 | 366 | data = data << 24; |
| r3689 | r3690 | |
| 401 | 401 | |
| 402 | 402 | static TIMER_CALLBACK( update_nmi ) |
| 403 | 403 | { |
| 404 | | //cpu_set_input_line_and_vector(machine->cpu[0], MC68000_IRQ_7,irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, MC68000_INT_ACK_AUTOVECTOR); |
| 405 | | cpu_set_input_line_and_vector(machine->cpu[0], MC68000_IRQ_7,ASSERT_LINE, MC68000_INT_ACK_AUTOVECTOR); |
| 406 | | cpu_set_input_line_and_vector(machine->cpu[0], MC68000_IRQ_7,CLEAR_LINE, MC68000_INT_ACK_AUTOVECTOR); |
| 404 | //cpu_set_input_line_and_vector(machine->cpu[0], M68K_IRQ_7,irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR); |
| 405 | cpu_set_input_line_and_vector(machine->cpu[0], M68K_IRQ_7,ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR); |
| 406 | cpu_set_input_line_and_vector(machine->cpu[0], M68K_IRQ_7,CLEAR_LINE, M68K_INT_ACK_AUTOVECTOR); |
| 407 | 407 | irq_edge=~irq_edge; |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 410 | static TIMER_CALLBACK( update_nmi32 ) |
| 411 | 411 | { |
| 412 | | // cpu_set_input_line_and_vector(machine->cpu[0], MC68020_IRQ_7, irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, MC68020_INT_ACK_AUTOVECTOR); |
| 413 | | cpu_set_input_line_and_vector(machine->cpu[0], MC68020_IRQ_7, ASSERT_LINE, MC68020_INT_ACK_AUTOVECTOR); |
| 414 | | cpu_set_input_line_and_vector(machine->cpu[0], MC68020_IRQ_7, CLEAR_LINE, MC68020_INT_ACK_AUTOVECTOR); |
| 412 | // cpu_set_input_line_and_vector(machine->cpu[0], M68K_IRQ_7, irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR); |
| 413 | cpu_set_input_line_and_vector(machine->cpu[0], M68K_IRQ_7, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR); |
| 414 | cpu_set_input_line_and_vector(machine->cpu[0], M68K_IRQ_7, CLEAR_LINE, M68K_INT_ACK_AUTOVECTOR); |
| 415 | 415 | irq_edge=~irq_edge; |
| 416 | 416 | } |
| 417 | 417 | |