Previous 15994 Revisions Next

r8717 Thursday 5th August, 2010 at 09:46:06 UTC by Miodrag Milanović
Updated SAA5050 to form 12x20 chars as noted in documentation, A6809 gives correct output
[src/emu/video]saa5050.c
[src/mess/drivers]a6809.c p2000t.c
[src/mess/video]p2000m.c

src/emu/video/saa5050.c
r8716r8717
319319         {
320320            if (saa5050->flags & SAA5050_DBLHI)
321321            {
322               drawgfx_opaque(bitmap, cliprect, saa5050->screen->machine->gfx[saa5050->gfxnum + 1], code, colour, 0, 0, sx * 6, ssy * 10);
323               drawgfx_opaque(bitmap, cliprect, saa5050->screen->machine->gfx[saa5050->gfxnum + 2], code, colour, 0, 0, sx * 6, (ssy + 1) * 10);
322               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine->gfx[saa5050->gfxnum + 1], code, colour, 0, 0, sx * 12, ssy * 20, 0x20000, 0x20000);
323               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine->gfx[saa5050->gfxnum + 2], code, colour, 0, 0, sx * 12, (ssy + 1) * 20, 0x20000, 0x20000);
324324            }
325325            else
326326            {
327               drawgfx_opaque(bitmap, cliprect, saa5050->screen->machine->gfx[saa5050->gfxnum + 0], code, colour, 0, 0, sx * 6, ssy * 10);
327               drawgfxzoom_opaque(bitmap, cliprect, saa5050->screen->machine->gfx[saa5050->gfxnum + 0], code, colour, 0, 0, sx * 12, ssy * 20, 0x20000, 0x20000);
328328            }
329329         }
330330      }
src/mess/video/p2000m.c
r8716r8717
2525
2626   for (offs = 0; offs < 80 * 24; offs++)
2727   {
28      sy = (offs / 80) * 10;
29      sx = (offs % 80) * 6;
28      sy = (offs / 80) * 20;
29      sx = (offs % 80) * 12;
3030
3131      if ((frame_count > 25) && (screen->machine->generic.videoram.u8[offs + 2048] & 0x40))
3232         code = 32;
r8716r8717
4242         if (code < 32) code = 32;
4343      }
4444
45      drawgfx_opaque (bitmap, NULL, screen->machine->gfx[0], code,
46         screen->machine->generic.videoram.u8[offs + 2048] & 0x08 ? 0 : 1, 0, 0, sx, sy);
45      drawgfxzoom_opaque (bitmap, NULL, screen->machine->gfx[0], code,
46         screen->machine->generic.videoram.u8[offs + 2048] & 0x08 ? 0 : 1, 0, 0, sx, sy, 0x20000, 0x20000);
4747
4848      if (screen->machine->generic.videoram.u8[offs] & 0x80)
4949      {
50         for (loop = 0; loop < 6; loop++)
50         for (loop = 0; loop < 12; loop++)
5151         {
52            *BITMAP_ADDR16(bitmap, sy + 9, sx + loop) = 0;   /* cursor */
52            *BITMAP_ADDR16(bitmap, sy + 18, sx + loop) = 0;   /* cursor */
53            *BITMAP_ADDR16(bitmap, sy + 19, sx + loop) = 0;   /* cursor */
5354         }
5455      }
5556   }
src/mess/drivers/a6809.c
r8716r8717
5454static const mc6845_interface a6809_crtc6845_interface =
5555{
5656   "screen",
57   6 /*?*/,
57   12 /*?*/,
5858   NULL,
5959   a6809_update_row,
6060   NULL,
r8716r8717
104104   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(SAA5050_VBLANK))
105105
106106   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
107   MDRV_SCREEN_SIZE(40 * 6, 25 * 10)
108   MDRV_SCREEN_VISIBLE_AREA(0, 40 * 6 - 1, 0, 25 * 10 - 1)
107   MDRV_SCREEN_SIZE(40 * 12, 24 * 20)
108   MDRV_SCREEN_VISIBLE_AREA(0, 40 * 12 - 1, 0, 24 * 20 - 1)
109109   MDRV_GFXDECODE(saa5050)
110110   MDRV_PALETTE_LENGTH(128)
111111   MDRV_PALETTE_INIT(saa5050)
src/mess/drivers/p2000t.c
r8716r8717
243243   MDRV_QUANTUM_TIME(HZ(60))
244244
245245   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
246   MDRV_SCREEN_SIZE(40 * 6, 24 * 10)
247   MDRV_SCREEN_VISIBLE_AREA(0, 40 * 6 - 1, 0, 24 * 10 - 1)
246   MDRV_SCREEN_SIZE(40 * 12, 24 * 20)
247   MDRV_SCREEN_VISIBLE_AREA(0, 40 * 12 - 1, 0, 24 * 20 - 1)
248248   MDRV_GFXDECODE(saa5050)
249249   MDRV_PALETTE_LENGTH(128)
250250   MDRV_PALETTE_INIT(saa5050)
r8716r8717
274274   MDRV_SCREEN_REFRESH_RATE(50)
275275   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
276276   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
277   MDRV_SCREEN_SIZE(80 * 6, 24 * 10)
278   MDRV_SCREEN_VISIBLE_AREA(0, 80 * 6 - 1, 0, 24 * 10 - 1)
277   MDRV_SCREEN_SIZE(80 * 12, 24 * 20)
278   MDRV_SCREEN_VISIBLE_AREA(0, 80 * 12 - 1, 0, 24 * 20 - 1)
279279   MDRV_GFXDECODE( p2000m )
280280   MDRV_PALETTE_LENGTH(4)
281281   MDRV_PALETTE_INIT(p2000m)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team