src/mess/video/atarist.c
| r1345 | r1346 | |
| 56 | 56 | shifter.rr[1] <<= 1; |
| 57 | 57 | shifter.shift++; |
| 58 | 58 | |
| 59 | | if (shifter.shift == 15) |
| 59 | if (shifter.shift == 16) |
| 60 | 60 | { |
| 61 | 61 | shifter.rr[0] = shifter.rr[2]; |
| 62 | 62 | shifter.rr[1] = shifter.rr[3]; |
| r1345 | r1346 | |
| 69 | 69 | |
| 70 | 70 | pen_t INLINE atarist_shift_mode_2(void) |
| 71 | 71 | { |
| 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]; |
| 74 | 100 | } |
| 75 | 101 | |
| 76 | 102 | static TIMER_CALLBACK(atarist_shifter_tick) |