src/emu/video/generic.c
| r5091 | r5092 | |
| 570 | 570 | ***************************************************************************/ |
| 571 | 571 | |
| 572 | 572 | /*------------------------------------------------- |
| 573 | | black - completely black pelette |
| 573 | black - completely black palette |
| 574 | 574 | -------------------------------------------------*/ |
| 575 | 575 | |
| 576 | 576 | PALETTE_INIT( all_black ) |
| r5091 | r5092 | |
| 596 | 596 | |
| 597 | 597 | |
| 598 | 598 | /*------------------------------------------------- |
| 599 | monochrome_amber - 2-color black & amber |
| 600 | -------------------------------------------------*/ |
| 601 | |
| 602 | PALETTE_INIT( monochrome_amber ) |
| 603 | { |
| 604 | palette_set_color(machine, 0, RGB_BLACK); /* black */ |
| 605 | palette_set_color_rgb(machine, 1, 0xf7, 0xaa, 0x00); /* amber */ |
| 606 | } |
| 607 | |
| 608 | |
| 609 | /*------------------------------------------------- |
| 610 | monochrome_green - 2-color black & green |
| 611 | -------------------------------------------------*/ |
| 612 | |
| 613 | PALETTE_INIT( monochrome_green ) |
| 614 | { |
| 615 | palette_set_color(machine, 0, RGB_BLACK); /* black */ |
| 616 | palette_set_color_rgb(machine, 1, 0x00, 0xff, 0x00); /* green */ |
| 617 | } |
| 618 | |
| 619 | |
| 620 | /*------------------------------------------------- |
| 599 | 621 | RRRR_GGGG_BBBB - standard 4-4-4 palette, |
| 600 | 622 | assuming the commonly used resistor values: |
| 601 | 623 | |
src/mess/video/abc802.c
| r5091 | r5092 | |
| 9 | 9 | #include "machine/z80dart.h" |
| 10 | 10 | #include "video/mc6845.h" |
| 11 | 11 | |
| 12 | | /* Palette Initialization */ |
| 13 | | |
| 14 | | static PALETTE_INIT( abc802 ) |
| 15 | | { |
| 16 | | palette_set_color_rgb(machine, 0, 0x00, 0x00, 0x00); // black |
| 17 | | palette_set_color_rgb(machine, 1, 0xff, 0x81, 0x00); // amber |
| 18 | | } |
| 19 | | |
| 20 | 12 | /* Character Memory */ |
| 21 | 13 | |
| 22 | 14 | READ8_HANDLER( abc802_charram_r ) |
| r5091 | r5092 | |
| 272 | 264 | |
| 273 | 265 | MDRV_PALETTE_LENGTH(2) |
| 274 | 266 | |
| 275 | | MDRV_PALETTE_INIT(abc802) |
| 267 | MDRV_PALETTE_INIT(monochrome_amber) |
| 276 | 268 | MDRV_VIDEO_START(abc802) |
| 277 | 269 | MDRV_VIDEO_UPDATE(abc802) |
| 278 | 270 | MACHINE_DRIVER_END |
src/mess/drivers/bw12.c
| r5091 | r5092 | |
| 358 | 358 | |
| 359 | 359 | /* Video */
|
| 360 | 360 | |
| 361 | | static PALETTE_INIT( bw12 )
|
| 362 | | {
|
| 363 | | palette_set_color_rgb(machine, 0, 0x00, 0x00, 0x00); /* black */
|
| 364 | | palette_set_color_rgb(machine, 1, 0xf7, 0xaa, 0x00); /* amber */
|
| 365 | | }
|
| 366 | | |
| 367 | 361 | static MC6845_UPDATE_ROW( bw12_update_row )
|
| 368 | 362 | {
|
| 369 | 363 | bw12_state *state = device->machine->driver_data;
|
| r5091 | r5092 | |
| 744 | 738 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1)
|
| 745 | 739 | |
| 746 | 740 | MDRV_PALETTE_LENGTH(2)
|
| 747 | | MDRV_PALETTE_INIT(bw12)
|
| 741 | MDRV_PALETTE_INIT(monochrome_amber)
|
| 748 | 742 | |
| 749 | 743 | MDRV_VIDEO_START(bw12)
|
| 750 | 744 | MDRV_VIDEO_UPDATE(bw12)
|