Previous 15994 Revisions Next

r1249 Friday 9th November, 2007 at 18:08:49 UTC by Dirk Best
Removed some mslegacy.h dependencies.
[src/mess/drivers]apexc.c apple1.c apple2.c aquarius.c arcadia.c vtech2.c

src/mess/drivers/arcadia.c
r1248r1249
1313#include <assert.h>
1414#include "driver.h"
1515#include "image.h"
16#include "mslegacy.h"
1716#include "cpu/s2650/s2650.h"
1817#include "includes/arcadia.h"
1918#include "devices/cartslot.h"
r1248r1249
311310   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, arcadia_charlayout, 0, 128 )
312311GFXDECODE_END
313312
314static unsigned char arcadia_palette[] =
313static const rgb_t arcadia_palette[] =
315314{
316   255, 255, 255,   // white
317   255, 255, 0,   // yellow
318   0, 255, 255,   // cyan
319   0, 255, 0,      // green
320   255, 0, 255,   // magenta
321   255, 0, 0,      // red
322   0, 0, 255,      // blue
323   0, 0, 0         // black
315   RGB_WHITE,               /* white */
316   MAKE_RGB(0xff, 0xff, 0x00),   /* yellow */
317   MAKE_RGB(0x00, 0xff, 0xff),   /* cyan */
318   MAKE_RGB(0x00, 0xff, 0x00),   /* green */
319   MAKE_RGB(0xff, 0x00, 0xff),   /* magenta */
320   MAKE_RGB(0xff, 0x00, 0x00),   /* red */
321   MAKE_RGB(0x00, 0x00, 0xff),   /* blue */
322   RGB_BLACK               /* black */
324323};
325324
326325static unsigned short arcadia_colortable[2][2] = {
r1248r1249
330329
331330static PALETTE_INIT( arcadia )
332331{
333   palette_set_colors_rgb(machine, 0, arcadia_palette, sizeof (arcadia_palette)/3);
332   palette_set_colors(machine, 0, arcadia_palette, ARRAY_LENGTH(arcadia_palette));
334333   memcpy(colortable, arcadia_colortable,sizeof(arcadia_colortable));
335334}
336335
r1248r1249
350349   MDRV_SCREEN_SIZE(128+2*XPOS, 262)
351350   MDRV_SCREEN_VISIBLE_AREA(0, 2*XPOS+128-1, 0, 262-1)
352351   MDRV_GFXDECODE( arcadia_gfxdecodeinfo )
353   MDRV_PALETTE_LENGTH(sizeof (arcadia_palette) / sizeof (arcadia_palette[0]) / 3)
352   MDRV_PALETTE_LENGTH(ARRAY_LENGTH(arcadia_palette))
354353   MDRV_COLORTABLE_LENGTH(sizeof (arcadia_colortable) / sizeof(arcadia_colortable[0][0]))
355354   MDRV_PALETTE_INIT( arcadia )
356355
src/mess/drivers/aquarius.c
r1248r1249
2525************************************************************************/
2626
2727#include "driver.h"
28#include "mslegacy.h"
2928#include "cpu/z80/z80.h"
3029#include "video/generic.h"
3130#include "includes/aquarius.h"
r1248r1249
7069   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, aquarius_charlayout, 0, 256 )
7170GFXDECODE_END
7271
73static unsigned char aquarius_palette[] =
72static const rgb_t aquarius_palette[] =
7473{
75   0x00, 0x00, 0x00,   /* Black */
76   0xff, 0x00, 0x00,   /* Red */
77   0x00, 0xff, 0x00,   /* Green */
78   0xff, 0xff, 0x00,   /* Yellow */
79   0x00, 0x00, 0xff,   /* Blue */
80   0x7f, 0x00, 0x7f,   /* Violet */
81   0x7f, 0xff, 0xff,   /* Light Blue-Green */
82   0xff, 0xff, 0xff,   /* White */
83   0xc0, 0xc0, 0xc0,   /* Light Gray */
84   0x00, 0xff, 0xff,   /* Blue-Green */
85   0xff, 0x00, 0xff,   /* Magenta */
86   0x00, 0x00, 0x7f,   /* Dark Blue */
87   0xff, 0xff, 0x7f,   /* Light Yellow */
88   0x7f, 0xff, 0x7f,   /* Light Green */
89   0xff, 0x7f, 0x00,   /* Orange */
90   0x7f, 0x7f, 0x7f,   /* Dark Gray */
74   RGB_BLACK,               /* Black */
75   MAKE_RGB(0xff, 0x00, 0x00),   /* Red */
76   MAKE_RGB(0x00, 0xff, 0x00),   /* Green */
77   MAKE_RGB(0xff, 0xff, 0x00),   /* Yellow */
78   MAKE_RGB(0x00, 0x00, 0xff),   /* Blue */
79   MAKE_RGB(0x7f, 0x00, 0x7f),   /* Violet */
80   MAKE_RGB(0x7f, 0xff, 0xff),   /* Light Blue-Green */
81   RGB_WHITE,               /* White */
82   MAKE_RGB(0xc0, 0xc0, 0xc0),   /* Light Gray */
83   MAKE_RGB(0x00, 0xff, 0xff),   /* Blue-Green */
84   MAKE_RGB(0xff, 0x00, 0xff),   /* Magenta */
85   MAKE_RGB(0x00, 0x00, 0x7f),   /* Dark Blue */
86   MAKE_RGB(0xff, 0xff, 0x7f),   /* Light Yellow */
87   MAKE_RGB(0x7f, 0xff, 0x7f),   /* Light Green */
88   MAKE_RGB(0xff, 0x7f, 0x00),   /* Orange */
89   MAKE_RGB(0x7f, 0x7f, 0x7f)   /* Dark Gray */
9190};
9291
9392static unsigned short aquarius_colortable[] =
r1248r1249
112111
113112static PALETTE_INIT( aquarius )
114113{
115   palette_set_colors_rgb(machine, 0, aquarius_palette, sizeof(aquarius_palette) / 3);
114   palette_set_colors(machine, 0, aquarius_palette, ARRAY_LENGTH(aquarius_palette));
116115   memcpy(colortable, aquarius_colortable, sizeof (aquarius_colortable));
117116}
118117
r1248r1249
224223   MDRV_SCREEN_SIZE(40 * 8, 24 * 8)
225224   MDRV_SCREEN_VISIBLE_AREA(0, 40 * 8 - 1, 0, 24 * 8 - 1)
226225   MDRV_GFXDECODE( aquarius_gfxdecodeinfo )
227   MDRV_PALETTE_LENGTH(sizeof (aquarius_palette) / 3)
226   MDRV_PALETTE_LENGTH(ARRAY_LENGTH(aquarius_palette))
228227   MDRV_COLORTABLE_LENGTH(sizeof (aquarius_colortable))
229228   MDRV_PALETTE_INIT( aquarius )
230229
src/mess/drivers/apexc.c
r1248r1249
99#include "driver.h"
1010#include "cpu/apexc/apexc.h"
1111#include "video/generic.h"
12#include "mslegacy.h"
1312
13
1414static void apexc_teletyper_init(void);
1515static void apexc_teletyper_putchar(int character);
1616
r1248r1249
427427   Additionnally, We display one page of teletyper output.
428428*/
429429
430static unsigned char apexc_palette[] =
430static const rgb_t apexc_palette[] =
431431{
432   255, 255, 255,
433   0, 0, 0,
434   255, 0, 0,
435   50, 0, 0
432   RGB_WHITE,
433   RGB_BLACK,
434   MAKE_RGB(255, 0, 0),
435   MAKE_RGB(50, 0, 0)
436436};
437437
438438static unsigned short apexc_colortable[] =
r1248r1249
440440   0, 1
441441};
442442
443#define APEXC_PALETTE_SIZE sizeof(apexc_palette)/3
443#define APEXC_PALETTE_SIZE ARRAY_LENGTH(apexc_palette)
444444#define APEXC_COLORTABLE_SIZE sizeof(apexc_colortable)/2
445445
446446static mame_bitmap *apexc_bitmap;
r1248r1249
482482
483483static PALETTE_INIT( apexc )
484484{
485   palette_set_colors_rgb(machine, 0, apexc_palette, APEXC_PALETTE_SIZE);
485   palette_set_colors(machine, 0, apexc_palette, APEXC_PALETTE_SIZE);
486486
487487   memcpy(colortable, & apexc_colortable, sizeof(apexc_colortable));
488488}
src/mess/drivers/apple1.c
r1248r1249
7575#include "devices/snapquik.h"
7676#include "devices/cassette.h"
7777#include "inputx.h"
78#include "mslegacy.h"
7978
79
8080/* port i/o functions */
8181
8282/* memory w/r functions */
r1248r1249
134134   modulator.  Thus white seems like a more accurate foreground color
135135   than green. */
136136
137static unsigned char apple1_palette[] =
137static const rgb_t apple1_palette[] =
138138{
139   0x00, 0x00, 0x00,   /* Black */
140   0xff, 0xff, 0xff   /* White */
139   RGB_BLACK,
140   RGB_WHITE
141141};
142142
143143static unsigned short apple1_colortable[] =
r1248r1249
147147
148148static PALETTE_INIT( apple1 )
149149{
150   palette_set_colors_rgb(machine, 0, apple1_palette, sizeof(apple1_palette) / 3);
150   palette_set_colors(machine, 0, apple1_palette, ARRAY_LENGTH(apple1_palette));
151151   memcpy(colortable, apple1_colortable, sizeof (apple1_colortable));
152152}
153153
r1248r1249
245245   MDRV_SCREEN_SIZE(40 * 7, 24 * 8)
246246   MDRV_SCREEN_VISIBLE_AREA(0, 40 * 7 - 1, 0, 24 * 8 - 1)
247247   MDRV_GFXDECODE(apple1_gfxdecodeinfo)
248   MDRV_PALETTE_LENGTH(sizeof (apple1_palette) / 3)
248   MDRV_PALETTE_LENGTH(ARRAY_LENGTH(apple1_palette))
249249   MDRV_COLORTABLE_LENGTH(sizeof(apple1_colortable)/sizeof(unsigned short))
250250   MDRV_PALETTE_INIT(apple1)
251251
src/mess/drivers/apple2.c
r1248r1249
191191#include "devices/mflopimg.h"
192192#include "formats/ap2_dsk.h"
193193#include "sound/ay8910.h"
194#include "mslegacy.h"
195194
195
196196static ADDRESS_MAP_START( apple2_map, ADDRESS_SPACE_PROGRAM, 8 )
197197ADDRESS_MAP_END
198198
r1248r1249
508508 * have been more appropriate for an Apple IIgs.  So we've substituted in the
509509 * Robert Munafo palette instead, which is more accurate on 8-bit Apples
510510 */
511static const unsigned char apple2_palette[] =
511static const rgb_t apple2_palette[] =
512512{
513   0x00, 0x00, 0x00,   /* Black */
514   0xE3, 0x1E, 0x60,   /* Dark Red */
515   0x60, 0x4E, 0xBD,   /* Dark Blue */
516   0xFF, 0x44, 0xFD,   /* Purple */
517   0x00, 0xA3, 0x60,   /* Dark Green */
518   0x9C, 0x9C, 0x9C,   /* Dark Gray */
519   0x14, 0xCF, 0xFD,   /* Medium Blue */
520   0xD0, 0xC3, 0xFF,   /* Light Blue */
521   0x60, 0x72, 0x03,   /* Brown */
522   0xFF, 0x6A, 0x3C,   /* Orange */
523   0x9C, 0x9C, 0x9C,   /* Light Grey */
524   0xFF, 0xA0, 0xD0,   /* Pink */
525   0x14, 0xF5, 0x3C,   /* Light Green */
526   0xD0, 0xDD, 0x8D,   /* Yellow */
527   0x72, 0xFF, 0xD0,   /* Aquamarine */
528   0xFF, 0xFF, 0xFF   /* White */
513   RGB_BLACK,
514   MAKE_RGB(0xE3, 0x1E, 0x60),   /* Dark Red */
515   MAKE_RGB(0x60, 0x4E, 0xBD),   /* Dark Blue */
516   MAKE_RGB(0xFF, 0x44, 0xFD),   /* Purple */
517   MAKE_RGB(0x00, 0xA3, 0x60),   /* Dark Green */
518   MAKE_RGB(0x9C, 0x9C, 0x9C),   /* Dark Gray */
519   MAKE_RGB(0x14, 0xCF, 0xFD),   /* Medium Blue */
520   MAKE_RGB(0xD0, 0xC3, 0xFF),   /* Light Blue */
521   MAKE_RGB(0x60, 0x72, 0x03),   /* Brown */
522   MAKE_RGB(0xFF, 0x6A, 0x3C),   /* Orange */
523   MAKE_RGB(0x9C, 0x9C, 0x9C),   /* Light Grey */
524   MAKE_RGB(0xFF, 0xA0, 0xD0),   /* Pink */
525   MAKE_RGB(0x14, 0xF5, 0x3C),   /* Light Green */
526   MAKE_RGB(0xD0, 0xDD, 0x8D),   /* Yellow */
527   MAKE_RGB(0x72, 0xFF, 0xD0),   /* Aquamarine */
528   RGB_WHITE
529529};
530530
531531static const gfx_layout apple2_text_layout =
r1248r1249
622622/* Initialize the palette */
623623PALETTE_INIT( apple2 )
624624{
625   palette_set_colors_rgb(machine, 0, apple2_palette, sizeof(apple2_palette) / 3);
625   palette_set_colors(machine, 0, apple2_palette, ARRAY_LENGTH(apple2_palette));
626626   memcpy(colortable, apple2_colortable, sizeof(apple2_colortable));
627627}
628628
r1248r1249
646646   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
647647   MDRV_SCREEN_SIZE(280*2, 192)
648648   MDRV_SCREEN_VISIBLE_AREA(0, (280*2)-1,0,192-1)
649   MDRV_PALETTE_LENGTH(sizeof(apple2_palette)/3)
649   MDRV_PALETTE_LENGTH(ARRAY_LENGTH(apple2_palette))
650650   MDRV_COLORTABLE_LENGTH(sizeof(apple2_colortable)/sizeof(unsigned short))
651651   MDRV_PALETTE_INIT(apple2)
652652
src/mess/drivers/vtech2.c
r1248r1249
419419GFXDECODE_END
420420
421421
422static rgb_t vt_palette[] =
422static const rgb_t vt_palette[] =
423423{
424424   RGB_BLACK,
425425   MAKE_RGB(0x00, 0x00, 0x7f),  /* blue */
r1248r1249
445445{
446446   int i;
447447
448   palette_set_colors(machine, 0, vt_palette, 16);
448   palette_set_colors(machine, 0, vt_palette, ARRAY_LENGTH(vt_palette));
449449
450450   for (i = 0; i < 256; i++)
451451   {
r1248r1249
479479   MDRV_SCREEN_SIZE(88*8, 24*8+32)
480480   MDRV_SCREEN_VISIBLE_AREA(0*8, 88*8-1, 0*8, 24*8+32-1)
481481   MDRV_GFXDECODE( gfxdecodeinfo )
482   MDRV_PALETTE_LENGTH(16)
482   MDRV_PALETTE_LENGTH(ARRAY_LENGTH(vt_palette))
483483   MDRV_COLORTABLE_LENGTH(256*2+16)
484484   MDRV_PALETTE_INIT(vtech2)
485485

Previous 15994 Revisions Next


© 1998-2018 The MESS Team