Previous 15994 Revisions Next

r1346 Wednesday 28th November, 2007 at 10:09:06 UTC by Curt Coder
[ATARIST] Added mode 2 shifter.
[src/mess/video]atarist.c

src/mess/video/atarist.c
r1345r1346
5656   shifter.rr[1] <<= 1;
5757   shifter.shift++;
5858
59   if (shifter.shift == 15)
59   if (shifter.shift == 16)
6060   {
6161      shifter.rr[0] = shifter.rr[2];
6262      shifter.rr[1] = shifter.rr[3];
r1345r1346
6969
7070pen_t INLINE atarist_shift_mode_2(void)
7171{
72   // not implemented
73   return Machine->pens[0];
72   int color = BIT(shifter.rr[0], 15);
73
74   shifter.rr[0] <<= 1;
75   shifter.shift++;
76
77   switch (shifter.shift)
78   {
79   case 16:
80      shifter.rr[0] = shifter.rr[1];
81      shifter.rr[1] = shifter.rr[2];
82      shifter.rr[2] = shifter.rr[3];
83      shifter.rr[3] = 0;
84      break;
85
86   case 32:
87      shifter.rr[0] = shifter.rr[1];
88      shifter.rr[1] = shifter.rr[2];
89      shifter.rr[2] = 0;
90      break;
91
92   case 48:
93      shifter.rr[0] = shifter.rr[1];
94      shifter.rr[1] = 0;
95      shifter.shift = 0;
96      break;
97   }
98
99   return Machine->pens[color];
74100}
75101
76102static TIMER_CALLBACK(atarist_shifter_tick)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team