src/mess/drivers/jr200.c
| r5781 | r5782 | |
| 284 | 284 | { |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | static PALETTE_INIT( jr200 ) |
| 288 | { |
| 289 | int i; |
| 290 | |
| 291 | for (i = 0; i < 64; i++) |
| 292 | { |
| 293 | palette_set_color_rgb(machine, 2 * i + 1, pal1bit(i >> 1), pal1bit(i >> 2), pal1bit(i >> 0)); |
| 294 | palette_set_color_rgb(machine, 2 * i + 0, pal1bit(i >> 4), pal1bit(i >> 5), pal1bit(i >> 3)); |
| 295 | } |
| 296 | } |
| 297 | |
| 287 | 298 | static VIDEO_START( jr200 ) |
| 288 | 299 | { |
| 289 | 300 | } |
| r5781 | r5782 | |
| 298 | 309 | { |
| 299 | 310 | UINT8 code = textram[0x0100 + i + j]; |
| 300 | 311 | UINT8 col_bg = (textram[0x0500 + i + j] >> 3) & 0x07; |
| 301 | | UINT8 col_fg = (textram[0x0500 + i + j] >> 0) & 0x07; |
| 312 | UINT8 col_fg = (textram[0x0500 + i + j] >> 0) & 0x3f; |
| 302 | 313 | |
| 303 | 314 | if (1==0) drawgfx_transpen(bitmap, cliprect, gfx, |
| 304 | 315 | 0, col_bg, |
| r5781 | r5782 | |
| 360 | 371 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 192-1) |
| 361 | 372 | |
| 362 | 373 | MDRV_GFXDECODE(jr200) |
| 363 | | MDRV_PALETTE_LENGTH(255) |
| 364 | | |
| 374 | MDRV_PALETTE_LENGTH(128) |
| 375 | MDRV_PALETTE_INIT(jr200) |
| 365 | 376 | MDRV_VIDEO_START(jr200) |
| 366 | 377 | MDRV_VIDEO_UPDATE(jr200) |
| 367 | 378 | MACHINE_DRIVER_END |