Previous 15994 Revisions Next

r5789 Friday 18th September, 2009 at 13:35:10 UTC by Roberto Zandonà
[JR200] implemented gfx resolution; reduced interrupt frequency (wip)
[src/mess/drivers]jr200.c

src/mess/drivers/jr200.c
r5788r5789
308308      for (j = 0; j < 0x20; j++)
309309      {
310310         UINT8 code = textram[0x0100 + i + j];
311         UINT8 col_fg = (textram[0x0500 + i + j] >> 0) & 0x3f;
311         UINT8 col = textram[0x0500 + i + j];
312312
313         drawgfx_transpen(bitmap, cliprect, gfx,
314               code, col_fg,
315               0, 0,
316               j * 8, (i >> 5) * 8, 15);
313         if (col & 0x80)
314         {
315            UINT8 pixel01 = (textram[0x0100 + i + j] >> 3) & 0x07;
316            UINT8 pixel00 = (textram[0x0100 + i + j] >> 0) & 0x07;
317            UINT8 pixel11 = (textram[0x0500 + i + j] >> 3) & 0x07;
318            UINT8 pixel10 = (textram[0x0500 + i + j] >> 0) & 0x07;
319            plot_box(bitmap, j * 8    , (i >> 5) * 8    , 4, 4, pixel00 * 2 + 1);
320            plot_box(bitmap, j * 8 + 4, (i >> 5) * 8    , 4, 4, pixel01 * 2 + 1);
321            plot_box(bitmap, j * 8    , (i >> 5) * 8 + 4, 4, 4, pixel10 * 2 + 1);
322            plot_box(bitmap, j * 8 + 4, (i >> 5) * 8 + 4, 4, 4, pixel11 * 2 + 1);
323         }
324         else
325         {
326            drawgfx_transpen(bitmap, cliprect, gfx, code, col & 0x3f, 0, 0, j * 8, (i >> 5) * 8, 15);
327         }
317328      }
318329   return 0;
319330}
r5788r5789
350361   MDRV_CPU_ADD("maincpu", M6802, 890000) /* MN1800A */
351362   MDRV_CPU_PROGRAM_MAP(jr200_mem)
352363   MDRV_CPU_IO_MAP(jr200_io)
353MDRV_CPU_VBLANK_INT("screen", jr200_irq)
364// MDRV_CPU_VBLANK_INT("screen", jr200_irq)
354365// MDRV_CPU_PERIODIC_INT(jr200_nmi,60)
366MDRV_CPU_PERIODIC_INT(jr200_irq,10)
355367/*
356368   MDRV_CPU_ADD("mn1544", MN1544, ?)
357369*/

Previous 15994 Revisions Next


© 1998-2018 The MESS Team