Previous 15994 Revisions Next

r1027 Monday 24th September, 2007 at 10:39:37 UTC by Curt Coder
[ATARIST] Changed to use 32-bit RGB video
[src/mess/video]atarist.c atarist.h

src/mess/video/atarist.c
r1026r1027
4848   case 0: // 320 x 200, 4 Plane
4949      color = (BIT(shifter.rr[3], 15) << 3) | (BIT(shifter.rr[2], 15) << 2) | (BIT(shifter.rr[1], 15) << 1) | BIT(shifter.rr[0], 15);
5050     
51      *BITMAP_ADDR16(atarist_bitmap, y, x) = Machine->pens[color];
51      *BITMAP_ADDR32(atarist_bitmap, y, x) = Machine->pens[color];
5252
5353      shifter.rr[0] <<= 1;
5454      shifter.rr[1] <<= 1;
r1026r1027
5959   case 1: // 640 x 200, 2 Plane
6060      color = (BIT(shifter.rr[1], 15) << 1) | BIT(shifter.rr[0], 15);
6161
62      *BITMAP_ADDR16(atarist_bitmap, y, x) = Machine->pens[color];
62      *BITMAP_ADDR32(atarist_bitmap, y, x) = Machine->pens[color];
6363
6464      shifter.rr[0] <<= 1;
6565      shifter.rr[1] <<= 1;
r1026r1027
305305
306306WRITE16_HANDLER( atariste_shifter_palette_w )
307307{
308   int r = ((data >> 7) & 0x0e) | ((data >> 11) & 0x01);
309   int g = ((data >> 3) & 0x0e) | ((data >> 4) & 0x01);
310   int b = ((data << 1) & 0x0e) | ((data >> 3) & 0x01);
308   int r = ((data >> 7) & 0x0e) | BIT(data, 11);
309   int g = ((data >> 3) & 0x0e) | BIT(data, 7);
310   int b = ((data << 1) & 0x0e) | BIT(data, 3);
311311
312312   shifter.palette[offset] = data;
313313   logerror("SHIFTER palette %x = %x\n", offset, data);
src/mess/video/atarist.h
r1026r1027
5050READ16_HANDLER( atariste_shifter_counter_r );
5151READ16_HANDLER( atariste_shifter_lineofs_r );
5252READ16_HANDLER( atariste_shifter_pixelofs_r );
53READ16_HANDLER( atariste_shifter_palette_r );
5453
5554WRITE16_HANDLER( atariste_shifter_base_low_w );
5655WRITE16_HANDLER( atariste_shifter_counter_w );

Previous 15994 Revisions Next


© 1998-2018 The MESS Team