Previous 15994 Revisions Next

r1946 Tuesday 11th March, 2008 at 22:18:33 UTC by Wilbert Pol
Removed deprecat.h dependency from video/atarist.c
[src/mess/video]atarist.c

src/mess/video/atarist.c
r1945r1946
1010*/
1111
1212#include "driver.h"
13#include "deprecat.h"
1413#include "cpu/m68000/m68k.h"
1514#include "cpu/m68000/m68000.h"
1615#include "machine/68901mfp.h"
r1945r1946
3837static emu_timer *atarist_glue_timer;
3938static emu_timer *atarist_shifter_timer;
4039
41INLINE pen_t atarist_shift_mode_0(void)
40INLINE pen_t atarist_shift_mode_0(running_machine *machine)
4241{
4342   int color = (BIT(shifter.rr[3], 15) << 3) | (BIT(shifter.rr[2], 15) << 2) | (BIT(shifter.rr[1], 15) << 1) | BIT(shifter.rr[0], 15);
4443
r1945r1946
4746   shifter.rr[2] <<= 1;
4847   shifter.rr[3] <<= 1;
4948
50   return Machine->pens[color];
49   return machine->pens[color];
5150}
5251
53INLINE pen_t atarist_shift_mode_1(void)
52INLINE pen_t atarist_shift_mode_1(running_machine *machine)
5453{
5554   int color = (BIT(shifter.rr[1], 15) << 1) | BIT(shifter.rr[0], 15);
5655
r1945r1946
6665      shifter.shift = 0;
6766   }
6867
69   return Machine->pens[color];
68   return machine->pens[color];
7069}
7170
72INLINE pen_t atarist_shift_mode_2(void)
71INLINE pen_t atarist_shift_mode_2(running_machine *machine)
7372{
7473   int color = BIT(shifter.rr[0], 15);
7574
r1945r1946
9897      break;
9998   }
10099
101   return Machine->pens[color];
100   return machine->pens[color];
102101}
103102
104103static TIMER_CALLBACK(atarist_shifter_tick)
r1945r1946
111110   switch (shifter.mode)
112111   {
113112   case 0:
114      pen = atarist_shift_mode_0();
113      pen = atarist_shift_mode_0(machine);
115114      break;
116115
117116   case 1:
118      pen = atarist_shift_mode_1();
117      pen = atarist_shift_mode_1(machine);
119118      break;
120119
121120   case 2:
122      pen = atarist_shift_mode_2();
121      pen = atarist_shift_mode_2(machine);
123122      break;
124123
125124   default:
r1945r1946
284283   shifter.palette[offset] = data;
285284   logerror("SHIFTER Palette[%x] = %x\n", offset, data);
286285
287   palette_set_color_rgb(Machine, offset, pal3bit(data >> 8), pal3bit(data >> 4), pal3bit(data));
286   palette_set_color_rgb(machine, offset, pal3bit(data >> 8), pal3bit(data >> 4), pal3bit(data));
288287}
289288
290289/* Atari STe Shifter */
r1945r1946
343342   shifter.palette[offset] = data;
344343   logerror("SHIFTER palette %x = %x\n", offset, data);
345344
346   palette_set_color_rgb(Machine, offset, r, g, b);
345   palette_set_color_rgb(machine, offset, r, g, b);
347346}
348347
349348READ16_HANDLER( atariste_shifter_lineofs_r )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team