Previous 15994 Revisions Next

r7073 Tuesday 19th January, 2010 at 21:51:39 UTC by Wilbert Pol
[PV1000] Fixed palette
[src/mess/drivers]pv1000.c

src/mess/drivers/pv1000.c
r7072r7073
3131
3232static WRITE8_HANDLER( pv1000_io_w )
3333{
34//   logerror("pv1000_io_w offset=%02x, data=%02x\n", offset, data );
3435   pv1000_io_regs[offset] = data;
3536}
3637
r7072r7073
3940{
4041   UINT8 data = pv1000_io_regs[offset];
4142
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
4265   return data;
4366}
4467
4568
4669static 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)
4775INPUT_PORTS_END
4876
4977
5078static PALETTE_INIT( pv1000 )
5179{
5280   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 );
5482   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 );
5785   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 );
5987   palette_set_color_rgb( machine,  7, 255, 255, 255 );
6088}
6189

Previous 15994 Revisions Next


© 1998-2018 The MESS Team