trunk/src/mame/drivers/model1.c
| r20261 | r20262 | |
| 645 | 645 | if(offset < 0x8) |
| 646 | 646 | return ioport(analognames[offset])->read_safe(0x00); |
| 647 | 647 | |
| 648 | if(offset == 0x0f) |
| 649 | return m_lamp_state; |
| 650 | |
| 648 | 651 | if(offset < 0x10) |
| 649 | 652 | { |
| 650 | 653 | offset -= 0x8; |
| r20261 | r20262 | |
| 660 | 663 | WRITE16_MEMBER(model1_state::io_w) |
| 661 | 664 | { |
| 662 | 665 | if(offset == 0x0f){ |
| 663 | | // tested in vf, swa, wingwar |
| 666 | // tested in vr, vf, swa, wingwar |
| 664 | 667 | set_led_status(machine(), 0, data & 0x4); // START (1) |
| 665 | 668 | set_led_status(machine(), 1, data & 0x8); // VIEW1 (START2 - VF) |
| 666 | 669 | set_led_status(machine(), 2, data & 0x10); // VIEW2 (VIEW - SWA) |
| 667 | 670 | set_led_status(machine(), 3, data & 0x20); // VIEW3 |
| 668 | 671 | set_led_status(machine(), 4, data & 0x40); // VIEW4 |
| 672 | set_led_status(machine(), 5, data & 0x80); // RACE LEADER |
| 673 | m_lamp_state = data; |
| 669 | 674 | return; |
| 670 | 675 | } |
| 671 | 676 | logerror("IOW: %02x %02x\n", offset, data); |
| r20261 | r20262 | |
| 965 | 970 | AM_RANGE(0x900000, 0x903fff) AM_RAM_WRITE(p_w) AM_SHARE("paletteram") |
| 966 | 971 | AM_RANGE(0x910000, 0x91bfff) AM_RAM AM_SHARE("color_xlat") |
| 967 | 972 | |
| 968 | | AM_RANGE(0xc00000, 0xc0003f) AM_READ(io_r) AM_WRITENOP |
| 973 | AM_RANGE(0xc00000, 0xc0003f) AM_READWRITE(io_r, io_w) |
| 969 | 974 | |
| 970 | 975 | AM_RANGE(0xc00040, 0xc00043) AM_READWRITE(network_ctl_r, network_ctl_w) |
| 971 | 976 | |