Previous 15994 Revisions Next

r2189 Monday 31st March, 2008 at 22:39:52 UTC by Dirk Best
[COUPE] Added support for the display disabled flag, removes garbage screens
[src/mess/drivers]coupe.c
[src/mess/includes]coupe.h
[src/mess/video]coupe.c

src/mess/includes/coupe.h
r2188r2189
1414
1515struct coupe_asic
1616{
17   UINT8 lmpr, hmpr, vmpr; /* memory pages */   
17   UINT8 lmpr, hmpr, vmpr; /* memory pages */
18   UINT8 border;           /* border */
1819   UINT8 clut[16];         /* color lookup table, 16 entries */
1920   UINT8 line_int;         /* line interrupt */
2021   UINT8 status;           /* status register */
src/mess/video/coupe.c
r2188r2189
164164   /* line interrupt? */
165165   if (coupe_regs.line_int == scanline) coupe_irq(screen->machine, 0x01);
166166
167   switch ((coupe_regs.vmpr & 0x60) >> 5)
167   /* display disabled? (only in mode 3 or 4) */
168   if ((coupe_regs.vmpr & 0x40) && (coupe_regs.border & 0x80))
168169   {
169   case 0: /* mode 1 */
170      drawMode1_line(bitmap, scanline);
171      break;
172   case 1: /* mode 2 */
173      drawMode2_line(bitmap, scanline);
174      break;
175   case 2: /* mode 3 */
176      drawMode3_line(bitmap, scanline);
177      break;
178   case 3: /* mode 4 */
179      drawMode4_line(bitmap, scanline);
180      break;
170      fillbitmap(bitmap, 0, cliprect);
181171   }
172   else
173   {
174      switch ((coupe_regs.vmpr & 0x60) >> 5)
175      {
176      case 0: /* mode 1 */
177         drawMode1_line(bitmap, scanline);
178         break;
179      case 1: /* mode 2 */
180         drawMode2_line(bitmap, scanline);
181         break;
182      case 2: /* mode 3 */
183         drawMode3_line(bitmap, scanline);
184         break;
185      case 3: /* mode 4 */
186         drawMode4_line(bitmap, scanline);
187         break;
188      }
189   }
182190
183191   return 0;
184192}
src/mess/drivers/coupe.c
r2188r2189
241241
242242static WRITE8_HANDLER( coupe_border_w )
243243{
244   coupe_regs.border = data;
245
244246   /* DAC output state */
245247   speaker_level_w(0,(data >> 4) & 0x01);
246248}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team