Previous 15994 Revisions Next

r2117 Thursday 27th March, 2008 at 01:17:58 UTC by Nathan Woods
[SUPER80] GCC 4.3 warning fix
[src/mess/drivers]super80.c

src/mess/drivers/super80.c
r2116r2117
2626static UINT8 framecnt = 0;
2727static UINT8 super80v_vid_col=1;         // 0 = color ram ; 1 = video ram
2828static UINT8 super80v_rom_pcg=1;         // 0 = prom ; 1 = pcg
29static UINT8 mc6845_cursor[15];            // cursor shape
29static UINT8 mc6845_cursor[16];            // cursor shape
3030static UINT8 mc6845[20];            /* registers */
3131static UINT8 mc6845_reg;            /* register index */
3232static UINT8 mc6845_mask[]={0xff,0xff,0xff,0x0f,0x7f,0x1f,0x7f,0x7f,3,0x1f,0x7f,0x1f,0x3f,0xff,0x3f,0xff,0,0};
r2116r2117
329329   /* Get the graphics of the character under the cursor, xor with the visible cursor scan lines,
330330      and store as character number 256. If inverse mode, drop bit 7 of character before xoring */
331331   if (!super80v_rom_pcg)
332      for ( i = 0; i < 16; i++)
332      for ( i = 0; i < ARRAY_LENGTH(mc6845_cursor); i++)
333333         pcgram[0x1000+i] = pcgram[(videoram[cursor]&0x7f)*16+i] ^ mc6845_cursor[i];
334334   else
335      for ( i = 0; i < 16; i++)
335      for ( i = 0; i < ARRAY_LENGTH(mc6845_cursor); i++)
336336         pcgram[0x1000+i] = pcgram[(videoram[cursor])*16 + i] ^ mc6845_cursor[i];
337337
338338   decodechar(screen->machine->gfx[0],256, pcgram);         // and into machine graphics

Previous 15994 Revisions Next


© 1998-2018 The MESS Team