src/mess/drivers/pv1000.c
| r7072 | r7073 | |
| 31 | 31 | |
| 32 | 32 | static WRITE8_HANDLER( pv1000_io_w ) |
| 33 | 33 | { |
| 34 | // logerror("pv1000_io_w offset=%02x, data=%02x\n", offset, data ); |
| 34 | 35 | pv1000_io_regs[offset] = data; |
| 35 | 36 | } |
| 36 | 37 | |
| r7072 | r7073 | |
| 39 | 40 | { |
| 40 | 41 | UINT8 data = pv1000_io_regs[offset]; |
| 41 | 42 | |
| 43 | // logerror("pv1000_io_r offset=%02x\n", offset ); |
| 44 | |
| 45 | switch ( offset ) |
| 46 | { |
| 47 | case 0x05: |
| 48 | /* This input stuff is not working yet */ |
| 49 | if ( pv1000_io_regs[5] & 0x08 ) |
| 50 | { |
| 51 | data = input_port_read( space->machine, "IN3" ); |
| 52 | } |
| 53 | if ( pv1000_io_regs[5] & 0x04 ) |
| 54 | { |
| 55 | } |
| 56 | if ( pv1000_io_regs[5] & 0x02 ) |
| 57 | { |
| 58 | } |
| 59 | if ( pv1000_io_regs[5] & 0x01 ) |
| 60 | { |
| 61 | } |
| 62 | break; |
| 63 | } |
| 64 | |
| 42 | 65 | return data; |
| 43 | 66 | } |
| 44 | 67 | |
| 45 | 68 | |
| 46 | 69 | static INPUT_PORTS_START( pv1000 ) |
| 70 | PORT_START("IN3") |
| 71 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 72 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 73 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 74 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 47 | 75 | INPUT_PORTS_END |
| 48 | 76 | |
| 49 | 77 | |
| 50 | 78 | static PALETTE_INIT( pv1000 ) |
| 51 | 79 | { |
| 52 | 80 | palette_set_color_rgb( machine, 0, 0, 0, 0 ); |
| 53 | | palette_set_color_rgb( machine, 1, 255, 0, 0 ); |
| 81 | palette_set_color_rgb( machine, 1, 0, 0, 255 ); |
| 54 | 82 | palette_set_color_rgb( machine, 2, 0, 255, 0 ); |
| 55 | | palette_set_color_rgb( machine, 3, 255, 255, 0 ); |
| 56 | | palette_set_color_rgb( machine, 4, 0, 0, 255 ); |
| 83 | palette_set_color_rgb( machine, 3, 0, 255, 255 ); |
| 84 | palette_set_color_rgb( machine, 4, 255, 0, 0 ); |
| 57 | 85 | palette_set_color_rgb( machine, 5, 255, 0, 255 ); |
| 58 | | palette_set_color_rgb( machine, 6, 0, 255, 255 ); |
| 86 | palette_set_color_rgb( machine, 6, 255, 255, 0 ); |
| 59 | 87 | palette_set_color_rgb( machine, 7, 255, 255, 255 ); |
| 60 | 88 | } |
| 61 | 89 | |