Previous 199869 Revisions Next

r20210 Friday 11th January, 2013 at 21:30:18 UTC by Wilbert Pol
(MESS) Reverted accidental odyssey2 palette change. Shuffled some code around (nw)
[src/emu/video]i8244.c
[src/mess/drivers]odyssey2.c
[src/mess/video]odyssey2.c

trunk/src/emu/video/i8244.c
r20209r20210
1616const device_type I8245 = &device_creator<i8245_device>;
1717
1818
19static const UINT8 c_shape[0x40 * 8]={
19static const UINT8 c_shape[0x40 * 8] =
20{
2021   0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00, // 0
2122   0x18,0x38,0x18,0x18,0x18,0x18,0x3C,0x00,
2223   0x3C,0x66,0x0C,0x18,0x30,0x60,0x7E,0x00,
trunk/src/mess/video/odyssey2.c
r20209r20210
3434const UINT8 odyssey2_colors[] =
3535{
3636   /* Background,Grid Dim */
37   0x00, 0x00, 0x00, //   0x00,0x00,0x00,                  // i r g b
38   0x00, 0x00, 0xAA, //   0x00,0x00,0xFF,   /* Blue */      // i r g B
39   0x00, 0xAA, 0x00, //   0x00,0x80,0x00,   /* DK Green */   // i r G b
40   0x00, 0xAA, 0xAA, //   0xff,0x9b,0x60,                  // i r G B
41   0xAA, 0x00, 0x00, //   0xCC,0x00,0x00,   /* Red */         // i R g b
42   0xAA, 0x00, 0xAA, //   0xa9,0x80,0xff,                  // i R g B
43   0xAA, 0xAA, 0x00, //   0x82,0xfd,0xdb,                  // i R G b
44   0xAA, 0xAA, 0xAA, //   0xFF,0xFF,0xFF,                  // i R G B
37   0x00,0x00,0x00,                  // i r g b
38   0x00,0x00,0xFF,   /* Blue */      // i r g B
39   0x00,0x80,0x00,   /* DK Green */   // i r G b
40   0xff,0x9b,0x60,                  // i r G B
41   0xCC,0x00,0x00,   /* Red */         // i R g b
42   0xa9,0x80,0xff,                  // i R g B
43   0x82,0xfd,0xdb,                  // i R G b
44   0xFF,0xFF,0xFF,                  // i R G B
4545
4646   /* Background,Grid Bright */
47   0x55, 0x55, 0x55, //   0x80,0x80,0x80,                  // I r g b
48   0x55, 0x55, 0xFF, //   0x50,0xAE,0xFF,   /* Blue */      // I r g B
49   0x55, 0xFF, 0x55, //   0x00,0xFF,0x00,   /* Dk Green */   // I r G b
50   0x55, 0xFF, 0xFF, //   0x82,0xfb,0xdb,   /* Lt Grey */      // I r G B
51   0xFF, 0x55, 0x55, //   0xEC,0x02,0x60,   /* Red */         // I R g b
52   0xFF, 0x55, 0xFF, //   0xa9,0x80,0xff,   /* Violet */      // I R g B
53   0xFF, 0xFF, 0x55, //   0xff,0x9b,0x60,   /* Orange */      // I R G b
54   0xFF, 0xFF, 0xFF, //   0xFF,0xFF,0xFF,                  // I R G B
47   0x80,0x80,0x80,                  // I r g b
48   0x50,0xAE,0xFF,   /* Blue */      // I r g B
49   0x00,0xFF,0x00,   /* Dk Green */   // I r G b
50   0x82,0xfb,0xdb,   /* Lt Grey */      // I r G B
51   0xEC,0x02,0x60,   /* Red */         // I R g b
52   0xa9,0x80,0xff,   /* Violet */      // I R g B
53   0xff,0x9b,0x60,   /* Orange */      // I R G b
54   0xFF,0xFF,0xFF,                  // I R G B
5555
5656   /* Character,Sprite colors */
5757   0x80,0x80,0x80,   /* Dark Grey */   // I r g b
r20209r20210
241241}
242242
243243
244WRITE8_MEMBER(odyssey2_state::lum_write)
245{
246   m_lum = ( data & 0x01 ) << 3;
247}
248
249
250WRITE16_MEMBER(odyssey2_state::scanline_postprocess)
251{
252   int vpos = data;
253   bitmap_ind16 *bitmap = m_i8244->get_bitmap();
254
255   // apply external LUM setting
256   for ( int x = i8244_device::START_ACTIVE_SCAN; x < i8244_device::END_ACTIVE_SCAN; x++ )
257   {
258      bitmap->pix16( vpos, x ) |= ( m_lum ^ 0x08 );
259   }
260}
261
262
263244READ8_MEMBER(odyssey2_state::t1_read)
264245{
265246   if ( m_screen->vpos() > m_start_vpos && m_screen->vpos() < m_start_vblank )
r20209r20210
273254}
274255
275256
276READ8_MEMBER(odyssey2_state::t1_read_g7400)
277{
278   if ( m_i8244->vblank() || m_i8244->hblank() )
279   {
280      return 1;
281   }
282   return 0;
283}
284
285
286257void odyssey2_state::i824x_scanline(int vpos)
287258{
288259   UINT8   collision_map[160];
trunk/src/mess/drivers/odyssey2.c
r20209r20210
137137}
138138
139139
140WRITE8_MEMBER(odyssey2_state::lum_write)
141{
142   m_lum = ( data & 0x01 ) << 3;
143}
144
145
146WRITE16_MEMBER(odyssey2_state::scanline_postprocess)
147{
148   int vpos = data;
149   bitmap_ind16 *bitmap = m_i8244->get_bitmap();
150
151   // apply external LUM setting
152   for ( int x = i8244_device::START_ACTIVE_SCAN; x < i8244_device::END_ACTIVE_SCAN; x++ )
153   {
154      bitmap->pix16( vpos, x ) |= ( m_lum ^ 0x08 );
155   }
156}
157
158
159READ8_MEMBER(odyssey2_state::t1_read_g7400)
160{
161   if ( m_i8244->vblank() || m_i8244->hblank() )
162   {
163      return 1;
164   }
165   return 0;
166}
167
168
140169static const gfx_layout odyssey2_graphicslayout =
141170{
142171   8,1,

Previous 199869 Revisions Next


© 1997-2024 The MAME Team