src/mess/drivers/jr200.c
| r5788 | r5789 | |
| 308 | 308 | for (j = 0; j < 0x20; j++) |
| 309 | 309 | { |
| 310 | 310 | UINT8 code = textram[0x0100 + i + j]; |
| 311 | | UINT8 col_fg = (textram[0x0500 + i + j] >> 0) & 0x3f; |
| 311 | UINT8 col = textram[0x0500 + i + j]; |
| 312 | 312 | |
| 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 | } |
| 317 | 328 | } |
| 318 | 329 | return 0; |
| 319 | 330 | } |
| r5788 | r5789 | |
| 350 | 361 | MDRV_CPU_ADD("maincpu", M6802, 890000) /* MN1800A */ |
| 351 | 362 | MDRV_CPU_PROGRAM_MAP(jr200_mem) |
| 352 | 363 | MDRV_CPU_IO_MAP(jr200_io) |
| 353 | | MDRV_CPU_VBLANK_INT("screen", jr200_irq) |
| 364 | // MDRV_CPU_VBLANK_INT("screen", jr200_irq) |
| 354 | 365 | // MDRV_CPU_PERIODIC_INT(jr200_nmi,60) |
| 366 | MDRV_CPU_PERIODIC_INT(jr200_irq,10) |
| 355 | 367 | /* |
| 356 | 368 | MDRV_CPU_ADD("mn1544", MN1544, ?) |
| 357 | 369 | */ |