Previous 15994 Revisions Next

r2029 Thursday 20th March, 2008 at 19:47:41 UTC by Firewave
Removed more unnecessary machine->pens lookups
[src/mess/drivers]amstrad.c coupe.c
[src/mess/includes]amstrad.h coupe.h
[src/mess/video]733_asr.c a7800.c advision.c amstrad.c arcadia.c bbc.c cbmb.c channelf.c coupe.c

src/mess/includes/amstrad.h
r2028r2029
8181extern VIDEO_START( aleste );
8282extern VIDEO_UPDATE( amstrad );
8383void amstrad_vh_execute_crtc_cycles(int);
84void amstrad_vh_update_colour(running_machine *machine, int, int);
84void amstrad_vh_update_colour(int, int);
8585void amstrad_vh_update_mode(int);
8686
8787/* The VSYNC signal of the CRTC */
r2028r2029
105105
106106/**** ALESTE SPECIFIC ***/
107107extern PALETTE_INIT( aleste );
108void aleste_vh_update_colour(running_machine *machine, int, int);
108void aleste_vh_update_colour(int, int);
109109
110110#endif /* AMSTRAD_H_ */
src/mess/includes/coupe.h
r2028r2029
5151
5252/*----------- defined in video/coupe.c -----------*/
5353
54void drawMode1_line(running_machine *,bitmap_t *,int);
55void drawMode2_line(running_machine *,bitmap_t *,int);
56void drawMode3_line(running_machine *,bitmap_t *,int);
57void drawMode4_line(running_machine *,bitmap_t *,int);
54void drawMode1_line(bitmap_t *,int);
55void drawMode2_line(bitmap_t *,int);
56void drawMode3_line(bitmap_t *,int);
57void drawMode4_line(bitmap_t *,int);
5858
5959
6060#endif /* COUPE_H_ */
src/mess/video/cbmb.c
r2028r2029
7575
7676   for( i = 0; i < x_count; i++ ) {
7777      if ( i == cursor_x ) {
78         plot_box( bitmap, device->machine->gfx[cbmb_font]->width * i, y, device->machine->gfx[cbmb_font]->width, 1, device->machine->pens[1] );
78         plot_box( bitmap, device->machine->gfx[cbmb_font]->width * i, y, device->machine->gfx[cbmb_font]->width, 1, 1 );
7979      } else {
8080         drawgfx( bitmap, device->machine->gfx[cbmb_font], videoram[(ma+i )& 0x7ff], 0, 0, 0, device->machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 );
8181      }
r2028r2029
8888
8989   for( i = 0; i < x_count; i++ ) {
9090      if ( i == cursor_x ) {
91         plot_box( bitmap, device->machine->gfx[cbmb_font]->width * i, y, device->machine->gfx[cbmb_font]->width, 1, device->machine->pens[1] );
91         plot_box( bitmap, device->machine->gfx[cbmb_font]->width * i, y, device->machine->gfx[cbmb_font]->width, 1, 1 );
9292      } else {
9393         drawgfx( bitmap, device->machine->gfx[cbmb_font], videoram[(ma+i) & 0x7ff], 0, 0, 0, device->machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 );
9494      }
src/mess/video/advision.c
r2028r2029
105105         for( bit = 0; bit < 8; bit++ )
106106         {
107107            if( *led > 0 )
108               *BITMAP_ADDR16(bitmap, 30 + 2 *( y * 8 + bit), 85 + x) = screen->machine->pens[--(*led)];
108               *BITMAP_ADDR16(bitmap, 30 + 2 *( y * 8 + bit), 85 + x) = --(*led);
109109            led += 256;
110110         }
111111      }
src/mess/video/arcadia.c
r2028r2029
655655   int c;
656656   if (color&0x40) c=arcadia_video.reg.d.pal[1];
657657   else c=arcadia_video.reg.d.pal[0];
658   /*imachine->gfx[0]->colortable[1]=machine->pens[(c>>3)&7];*/
658   /*imachine->gfx[0]->colortable[1]=(c>>3)&7;*/
659659
660660   if (color&0x80) c=arcadia_video.reg.d.pal[1];
661661   else c=arcadia_video.reg.d.pal[0];
662   /*machine->gfx[0]->colortable[0]=machine->pens[c&7];*/
662   /*machine->gfx[0]->colortable[0]=c&7;*/
663663
664664    } else {
665665   /*machine->gfx[0]->colortable[1]=
666       machine->pens[((arcadia_video.reg.d.pal[1]>>3)&1)|((color>>5)&6)];*/
666       ((arcadia_video.reg.d.pal[1]>>3)&1)|((color>>5)&6);*/
667667    }
668668
669669    if (arcadia_video.doublescan) {
r2028r2029
763763    * to survive the 0.118u5 transition */
764764   switch (i) {
765765   case 0:
766       /*machine->gfx[0]->colortable[1]=machine->pens[(arcadia_video.reg.d.pal[3]>>3)&7];*/
766       /*machine->gfx[0]->colortable[1]=(arcadia_video.reg.d.pal[3]>>3)&7;*/
767767       doublescan=arcadia_video.reg.d.pal[3]&0x80?FALSE:TRUE;
768768       break;
769769   case 1:
770       /*machine->gfx[0]->colortable[1]=machine->pens[arcadia_video.reg.d.pal[3]&7];*/
770       /*machine->gfx[0]->colortable[1]=arcadia_video.reg.d.pal[3]&7;*/
771771       doublescan=arcadia_video.reg.d.pal[3]&0x40?FALSE:TRUE;
772772       break;
773773   case 2:
774       /*machine->gfx[0]->colortable[1]=machine->pens[(arcadia_video.reg.d.pal[2]>>3)&7];*/
774       /*machine->gfx[0]->colortable[1]=(arcadia_video.reg.d.pal[2]>>3)&7;*/
775775       doublescan=arcadia_video.reg.d.pal[2]&0x80?FALSE:TRUE;
776776       break;
777777   case 3:
778       /*machine->gfx[0]->colortable[1]=machine->pens[arcadia_video.reg.d.pal[2]&7];*/
778       /*machine->gfx[0]->colortable[1]=arcadia_video.reg.d.pal[2]&7;*/
779779       doublescan=arcadia_video.reg.d.pal[2]&0x40?FALSE:TRUE;
780780       break;
781781   }
r2028r2029
828828   /* 7-Sep-2007 - whomever wrote this crap code was dynamically remapping
829829    * the color table, a vile gross hack.  Doesn't look like this is going
830830    * to survive the 0.118u5 transition */
831   /*machine->gfx[0]->colortable[0]=machine->pens[arcadia_video.reg.d.pal[1]&7];*/
831   /*machine->gfx[0]->colortable[0]=arcadia_video.reg.d.pal[1]&7;*/
832832
833833   if (arcadia_video.line<arcadia_video.ypos)
834834   {
src/mess/video/channelf.c
r2028r2029
6969      {
7070         offset = y*128+x;
7171         color = palette_offset+(videoram[offset]&3);
72         pen = screen->machine->pens[colormap[color]];
72         pen = colormap[color];
7373         *BITMAP_ADDR16(bitmap, y, x) = pen;
7474      }
7575   }
src/mess/video/a7800.c
r2028r2029
475475   switch (offset)
476476   {
477477      case 0x00:
478         maria_backcolor = machine->pens[data];
478         maria_backcolor = data;
479479         // 20030621 ericball added maria_palette[pal][0] to make kanagroo mode easier
480480         maria_palette[0][0]=maria_backcolor;
481481         maria_palette[1][0]=maria_backcolor;
r2028r2029
487487         maria_palette[7][0]=maria_backcolor;
488488         break;
489489      case 0x01:
490         maria_palette[0][1] = machine->pens[data];
490         maria_palette[0][1] = data;
491491         break;
492492      case 0x02:
493         maria_palette[0][2] = machine->pens[data];
493         maria_palette[0][2] = data;
494494         break;
495495      case 0x03:
496         maria_palette[0][3] = machine->pens[data];
496         maria_palette[0][3] = data;
497497         break;
498498      case 0x04:
499499         cpu_spinuntil_trigger(TRIGGER_HSYNC);
r2028r2029
501501         break;
502502
503503      case 0x05:
504         maria_palette[1][1] = machine->pens[data];
504         maria_palette[1][1] = data;
505505         break;
506506      case 0x06:
507         maria_palette[1][2] = machine->pens[data];
507         maria_palette[1][2] = data;
508508         break;
509509      case 0x07:
510         maria_palette[1][3] = machine->pens[data];
510         maria_palette[1][3] = data;
511511         break;
512512
513513      case 0x09:
514         maria_palette[2][1] = machine->pens[data];
514         maria_palette[2][1] = data;
515515         break;
516516      case 0x0A:
517         maria_palette[2][2] = machine->pens[data];
517         maria_palette[2][2] = data;
518518         break;
519519      case 0x0B:
520         maria_palette[2][3] = machine->pens[data];
520         maria_palette[2][3] = data;
521521         break;
522522
523523      case 0x0D:
524         maria_palette[3][1] = machine->pens[data];
524         maria_palette[3][1] = data;
525525         break;
526526      case 0x0E:
527         maria_palette[3][2] = machine->pens[data];
527         maria_palette[3][2] = data;
528528         break;
529529      case 0x0F:
530         maria_palette[3][3] = machine->pens[data];
530         maria_palette[3][3] = data;
531531         break;
532532
533533      case 0x11:
534         maria_palette[4][1] = machine->pens[data];
534         maria_palette[4][1] = data;
535535         break;
536536      case 0x12:
537         maria_palette[4][2] = machine->pens[data];
537         maria_palette[4][2] = data;
538538         break;
539539      case 0x13:
540         maria_palette[4][3] = machine->pens[data];
540         maria_palette[4][3] = data;
541541         break;
542542      case 0x14:
543543         maria_charbase = (data << 8);
544544         break;
545545      case 0x15:
546         maria_palette[5][1] = machine->pens[data];
546         maria_palette[5][1] = data;
547547         break;
548548      case 0x16:
549         maria_palette[5][2] = machine->pens[data];
549         maria_palette[5][2] = data;
550550         break;
551551      case 0x17:
552         maria_palette[5][3] = machine->pens[data];
552         maria_palette[5][3] = data;
553553         break;
554554
555555      case 0x19:
556         maria_palette[6][1] = machine->pens[data];
556         maria_palette[6][1] = data;
557557         break;
558558      case 0x1A:
559         maria_palette[6][2] = machine->pens[data];
559         maria_palette[6][2] = data;
560560         break;
561561      case 0x1B:
562         maria_palette[6][3] = machine->pens[data];
562         maria_palette[6][3] = data;
563563         break;
564564
565565      case 0x1C:
r2028r2029
585585
586586         break;
587587      case 0x1D:
588         maria_palette[7][1] = machine->pens[data];
588         maria_palette[7][1] = data;
589589         break;
590590      case 0x1E:
591         maria_palette[7][2] = machine->pens[data];
591         maria_palette[7][2] = data;
592592         break;
593593      case 0x1F:
594         maria_palette[7][3] = machine->pens[data];
594         maria_palette[7][3] = data;
595595         break;
596596   }
597597   ROM[ 0x20 + offset ] = data;
src/mess/video/amstrad.c
r2028r2029
7676static int display_y;
7777static int display_update;  // flag to get location at first DE
7878
79/* this contains the colours in Machine->pens form.*/
79/* this contains the colours in machine->pens form.*/
8080/* this is updated from the eventlist and reflects the current state
8181of the render colours - these may be different to the current colour palette values */
8282/* colours can be changed at any time and will take effect immediatly */
r2028r2029
335335   }
336336}
337337/* Set the new colour from the GateArray */
338void amstrad_vh_update_colour(running_machine *machine, int PenIndex, int hw_colour_index)
338void amstrad_vh_update_colour(int PenIndex, int hw_colour_index)
339339{
340340   int val;
341341/*  int cpu_cycles = ((cycles_currently_ran()>>2)-1) & 63;
342342
343   logerror("color is changed(%d,%d) = %d\n",PenIndex, cpu_cycles, machine->pens[hw_colour_index]);
343   logerror("color is changed(%d,%d) = %d\n",PenIndex, cpu_cycles, hw_colour_index);
344344  amstrad_GateArray_colours_ischanged++;
345   amstrad_GateArray_changed_colours[cpu_cycles][PenIndex] = machine->pens[hw_colour_index];
345   amstrad_GateArray_changed_colours[cpu_cycles][PenIndex] = hw_colour_index;
346346*/
347   amstrad_GateArray_render_colours[PenIndex] = machine->pens[hw_colour_index];
347   amstrad_GateArray_render_colours[PenIndex] = hw_colour_index;
348348   if(amstrad_system_type != 0)
349349   {  // CPC+/GX4000 - normal palette changes through the Gate Array also makes the corresponding change in the ASIC palette
350350      val = (amstrad_palette[hw_colour_index] & 0xf00000) >> 16; // red
r2028r2029
355355   }
356356}
357357
358void aleste_vh_update_colour(running_machine *machine, int PenIndex, int hw_colour_index)
358void aleste_vh_update_colour(int PenIndex, int hw_colour_index)
359359{
360360/*  int cpu_cycles = ((cycles_currently_ran()>>2)-1) & 63;
361361
362   logerror("color is changed(%d,%d) = %d\n",PenIndex, cpu_cycles, machine->pens[hw_colour_index]);
362   logerror("color is changed(%d,%d) = %d\n",PenIndex, cpu_cycles, hw_colour_index);
363363  amstrad_GateArray_colours_ischanged++;
364   amstrad_GateArray_changed_colours[cpu_cycles][PenIndex] = machine->pens[hw_colour_index];
364   amstrad_GateArray_changed_colours[cpu_cycles][PenIndex] = hw_colour_index;
365365*/
366   amstrad_GateArray_render_colours[PenIndex] = machine->pens[hw_colour_index+32];
366   amstrad_GateArray_render_colours[PenIndex] = hw_colour_index+32;
367367}
368368
369369/* Set the new screen mode (0,1,2,4) from the GateArray */
src/mess/video/coupe.c
r2028r2029
1414
1515unsigned char *sam_screen;
1616
17void drawMode4_line(running_machine *machine, bitmap_t *bitmap,int y)
17void drawMode4_line(bitmap_t *bitmap,int y)
1818{
1919   int x;
2020   unsigned char tmp=0;
r2028r2029
2525#ifdef MONO
2626      if (tmp>>4)
2727      {
28         plot_pixel(bitmap, x*2, y, machine->pens[127]);
29         plot_pixel(bitmap, x*2+1, y, machine->pens[127]);
28         plot_pixel(bitmap, x*2, y, 127);
29         plot_pixel(bitmap, x*2+1, y, 127);
3030      }
3131      else
3232      {
33         plot_pixel(bitmap, x*2, y, machine->pens[0]);
34         plot_pixel(bitmap, x*2+1, y, machine->pens[0]);
33         plot_pixel(bitmap, x*2, y, 0);
34         plot_pixel(bitmap, x*2+1, y, 0);
3535      }
3636      x++;
3737      if (tmp&0x0F)
3838      {
39         plot_pixel(bitmap, x*2, y, machine->pens[127]);
40         plot_pixel(bitmap, x*2+1, y, machine->pens[127]);
39         plot_pixel(bitmap, x*2, y, 127);
40         plot_pixel(bitmap, x*2+1, y, 127);
4141      }
4242      else
4343      {
44         plot_pixel(bitmap, x*2, y, machine->pens[0]);
45         plot_pixel(bitmap, x*2+1, y, machine->pens[0]);
44         plot_pixel(bitmap, x*2, y, 0);
45         plot_pixel(bitmap, x*2+1, y, 0);
4646      }
4747      x++;
4848#else
49      *BITMAP_ADDR16(bitmap, y, x*2+0) = machine->pens[CLUT[tmp>>4]];
50      *BITMAP_ADDR16(bitmap, y, x*2+1) = machine->pens[CLUT[tmp>>4]];
49      *BITMAP_ADDR16(bitmap, y, x*2+0) = CLUT[tmp>>4];
50      *BITMAP_ADDR16(bitmap, y, x*2+1) = CLUT[tmp>>4];
5151      x++;
52      *BITMAP_ADDR16(bitmap, y, x*2+0) = machine->pens[CLUT[tmp&0x0F]];
53      *BITMAP_ADDR16(bitmap, y, x*2+1) = machine->pens[CLUT[tmp&0x0F]];
52      *BITMAP_ADDR16(bitmap, y, x*2+0) = CLUT[tmp&0x0F];
53      *BITMAP_ADDR16(bitmap, y, x*2+1) = CLUT[tmp&0x0F];
5454      x++;
5555#endif
5656   }
5757}
5858
59void drawMode3_line(running_machine *machine, bitmap_t *bitmap,int y)
59void drawMode3_line(bitmap_t *bitmap,int y)
6060{
6161   int x;
6262   unsigned char tmp=0;
r2028r2029
6666      tmp=*(sam_screen + (x/4) + (y*128));
6767#ifdef MONO
6868      if (tmp>>6)
69         plot_pixel(bitmap,x,y,machine->pens[127]);
69         plot_pixel(bitmap,x,y,127);
7070      else
71         plot_pixel(bitmap,x,y,machine->pens[0]);
71         plot_pixel(bitmap,x,y,0);
7272      x++;
7373      if ((tmp>>4)&0x03)
74         plot_pixel(bitmap,x,y,machine->pens[127]);
74         plot_pixel(bitmap,x,y,127);
7575      else
76         plot_pixel(bitmap,x,y,machine->pens[0]);
76         plot_pixel(bitmap,x,y,0);
7777      x++;
7878      if ((tmp>>2)&0x03)
79         plot_pixel(bitmap,x,y,machine->pens[127]);
79         plot_pixel(bitmap,x,y,127);
8080      else
81         plot_pixel(bitmap,x,y,machine->pens[0]);
81         plot_pixel(bitmap,x,y,0);
8282      x++;
8383      if (tmp&0x03)
84         plot_pixel(bitmap,x,y,machine->pens[127]);
84         plot_pixel(bitmap,x,y,127);
8585      else
86         plot_pixel(bitmap,x,y,machine->pens[0]);
86         plot_pixel(bitmap,x,y,0);
8787      x++;
8888#else
89      *BITMAP_ADDR16(bitmap, y, x) = machine->pens[CLUT[tmp>>6]];
89      *BITMAP_ADDR16(bitmap, y, x) = CLUT[tmp>>6];
9090      x++;
91      *BITMAP_ADDR16(bitmap, y, x) = machine->pens[CLUT[(tmp>>4)&0x03]];
91      *BITMAP_ADDR16(bitmap, y, x) = CLUT[(tmp>>4)&0x03];
9292      x++;
93      *BITMAP_ADDR16(bitmap, y, x) = machine->pens[CLUT[(tmp>>2)&0x03]];
93      *BITMAP_ADDR16(bitmap, y, x) = CLUT[(tmp>>2)&0x03];
9494      x++;
95      *BITMAP_ADDR16(bitmap, y, x) = machine->pens[CLUT[tmp&0x03]];
95      *BITMAP_ADDR16(bitmap, y, x) = CLUT[tmp&0x03];
9696      x++;
9797#endif
9898   }
9999}
100100
101void drawMode2_line(running_machine *machine, bitmap_t *bitmap,int y)
101void drawMode2_line(bitmap_t *bitmap,int y)
102102{
103103   int x,b,scrx;
104104   unsigned char tmp=0;
r2028r2029
122122
123123      for (b=0x80;b!=0;b>>=1)
124124      {
125         *BITMAP_ADDR16(bitmap, y, scrx++) = (tmp&b) ? machine->pens[ink] : machine->pens[pap];
126         *BITMAP_ADDR16(bitmap, y, scrx++) = (tmp&b) ? machine->pens[ink] : machine->pens[pap];
125         *BITMAP_ADDR16(bitmap, y, scrx++) = (tmp&b) ? ink : pap;
126         *BITMAP_ADDR16(bitmap, y, scrx++) = (tmp&b) ? ink : pap;
127127      }
128128   }
129129}
130130
131void drawMode1_line(running_machine *machine, bitmap_t *bitmap,int y)
131void drawMode1_line(bitmap_t *bitmap,int y)
132132{
133133   int x,b,scrx,scry;
134134   unsigned char tmp=0;
r2028r2029
152152      attr++;
153153      for (b=0x80;b!=0;b>>=1)
154154      {
155         *BITMAP_ADDR16(bitmap, scry, scrx++) = (tmp&b) ? machine->pens[ink] : machine->pens[pap];
156         *BITMAP_ADDR16(bitmap, scry, scrx++) = (tmp&b) ? machine->pens[ink] : machine->pens[pap];
155         *BITMAP_ADDR16(bitmap, scry, scrx++) = (tmp&b) ? ink : pap;
156         *BITMAP_ADDR16(bitmap, scry, scrx++) = (tmp&b) ? ink : pap;
157157      }
158158   }
159159}
src/mess/video/733_asr.c
r2028r2029
190190
191191   asr[unit].bitmap = auto_bitmap_alloc(width, height, BITMAP_FORMAT_INDEXED16);
192192
193   fillbitmap(asr[unit].bitmap, machine->pens[0], visarea);
193   fillbitmap(asr[unit].bitmap, 0, visarea);
194194
195195   asr[unit].int_callback = int_callback;
196196
r2028r2029
241241      draw_scanline8(asr[unit].bitmap, asr_window_offset_x, y, asr_window_width, buf, machine->pens, -1);
242242   }
243243
244   fillbitmap(asr[unit].bitmap, machine->pens[0], &asr_scroll_clear_window);
244   fillbitmap(asr[unit].bitmap, 0, &asr_scroll_clear_window);
245245}
246246
247247static void asr_transmit(running_machine *machine, int unit, UINT8 data)
src/mess/video/bbc.c
r2028r2029
1414#include "saa505x.h"
1515
1616
17static void BBC_draw_hi_res(running_machine *machine);
17static void BBC_draw_hi_res(running_machine* machine);
1818static void BBC_draw_teletext(running_machine *machine);
1919
20static void (*draw_function)(running_machine *machine);
20static void (*draw_function)(running_machine* machine);
2121
2222static void BBC_draw_RGB_in(running_machine *machine, int offset,int data);
2323
r2028r2029
359359
360360// This is the actual output of the Video ULA this fuction does all the output to the screen in the BBC emulator
361361
362static void BBC_ula_drawpixel(running_machine *machine, int col,int number_of_pixels)
362static void BBC_ula_drawpixel(int col,int number_of_pixels)
363363{
364364   int pixel_count;
365365   int pixel_temp;
366366   if ((BBC_display>=BBC_display_left) && ((BBC_display+number_of_pixels)<BBC_display_right))
367367   {
368368
369      pixel_temp=machine->pens[col^cursor_state];
369      pixel_temp=col^cursor_state;
370370      for(pixel_count=0;pixel_count<number_of_pixels;pixel_count++)
371371      {
372372         *(BBC_display++) = pixel_temp;
r2028r2029
401401
402402         for(sc1=0;sc1<pixels_per_byte;sc1++)
403403         {
404            BBC_ula_drawpixel(machine, videoULA_pallet_lookup[pixel_bits[i]],emulation_pixels_per_real_pixel);
404            BBC_ula_drawpixel(videoULA_pallet_lookup[pixel_bits[i]],emulation_pixels_per_real_pixel);
405405            i=(i<<1)|1;
406406         }
407407      } else {
r2028r2029
411411      if (video_refresh)
412412      {
413413         // if the display is not enable, just draw a blank area.
414         BBC_ula_drawpixel(machine, 0, emulation_pixels_per_byte);
414         BBC_ula_drawpixel(0, emulation_pixels_per_byte);
415415      } else {
416416         BBC_display += emulation_pixels_per_byte;
417417      }
r2028r2029
423423// Just pass on the output at the correct pixel size.
424424static void BBC_draw_RGB_in(running_machine *machine, int offset,int data)
425425{
426   BBC_ula_drawpixel(machine, data,emulation_pixels_per_real_pixel);
426   BBC_ula_drawpixel(data,emulation_pixels_per_real_pixel);
427427}
428428
429429
src/mess/drivers/amstrad.c
r2028r2029
10111011#ifdef AMSTRAD_VIDEO_EVENT_LIST
10121012    EventList_AddItemOffset((EVENT_LIST_CODE_GA_COLOUR<<6) | PenIndex, AmstradCPC_PenColours[PenIndex], TIME_TO_CYCLES(0,video_screen_get_vpos(machine->primary_screen)*video_screen_get_scan_period(machine->primary_screen)));
10131013#else
1014      amstrad_vh_update_colour(machine, amstrad_GateArray_PenSelected, (dataToGateArray & 0x1F));
1014      amstrad_vh_update_colour(amstrad_GateArray_PenSelected, (dataToGateArray & 0x1F));
10151015#endif
10161016    } break;
10171017/* Select screen mode and rom configuration
r2028r2029
11161116      amstrad_GateArray_write(machine, data);
11171117      break;
11181118   case 1:  // Colour select (6-bit palette)
1119      aleste_vh_update_colour(machine, amstrad_GateArray_PenSelected,data & 0x3f);
1119      aleste_vh_update_colour(amstrad_GateArray_PenSelected,data & 0x3f);
11201120      break;
11211121   case 2:  // Screen mode, Upper/Lower ROM select
11221122      amstrad_GateArray_write(machine, data);
src/mess/drivers/coupe.c
r2028r2029
6565      switch ((VMPR & 0x60)>>5)
6666      {
6767      case 0: /* mode 1 */
68         drawMode1_line(machine, bitmap,(CURLINE-1));
68         drawMode1_line(bitmap,(CURLINE-1));
6969         break;
7070      case 1: /* mode 2 */
71         drawMode2_line(machine, bitmap,(CURLINE-1));
71         drawMode2_line(bitmap,(CURLINE-1));
7272         break;
7373      case 2: /* mode 3 */
74         drawMode3_line(machine, bitmap,(CURLINE-1));
74         drawMode3_line(bitmap,(CURLINE-1));
7575         break;
7676      case 3: /* mode 4 */
77         drawMode4_line(machine, bitmap,(CURLINE-1));
77         drawMode4_line(bitmap,(CURLINE-1));
7878         break;
7979      }
8080   }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team