Previous 15994 Revisions Next

r1518 Wednesday 16th January, 2008 at 06:12:48 UTC by Dirk Best
[PRIMO] Converted to use the common black and white palette
[src/mess/drivers]primo.c
[src/mess/includes]primo.h
[src/mess/video]primo.c

src/mess/includes/primo.h
r1517r1518
2929
3030/*----------- defined in video/primo.c -----------*/
3131
32extern VIDEO_START( primo );
3332extern VIDEO_UPDATE( primo );
34extern const unsigned char primo_palette[2*3];
35extern const unsigned short primo_colortable[1][2];
36extern PALETTE_INIT( primo );
3733extern UINT16 primo_video_memory_base;
3834
3935
src/mess/video/primo.c
r1517r1518
99***************************************************************************/
1010
1111#include "driver.h"
12#include "mslegacy.h"
1312#include "includes/primo.h"
1413
1514UINT16 primo_video_memory_base;
1615
17const unsigned char primo_palette[2*3] =
18{
19   0x00, 0x00, 0x00,
20   0xff, 0xff, 0xff
21};
2216
23const unsigned short primo_colortable[1][2] =
24{
25   { 0, 1 }
26};
27
28PALETTE_INIT( primo )
29{
30   palette_set_colors_rgb(machine, 0, primo_palette, sizeof(primo_palette) / 3);
31   memcpy(colortable, primo_colortable, sizeof (primo_colortable));
32}
33
34VIDEO_START( primo )
35{
36}
37
3817static void primo_draw_scanline(mame_bitmap *bitmap, int primo_scanline)
3918{
4019   int x, i;
r1517r1518
5635   }
5736}
5837
38
5939VIDEO_UPDATE( primo )
6040{
6141   int primo_scanline;
src/mess/drivers/primo.c
r1517r1518
9999    NMI - 20ms (50HZ), can be disbled/enabled by I/O write
100100
101101*******************************************************************************/
102
102103#include "driver.h"
104#include "includes/primo.h"
103105#include "cpu/z80/z80.h"
104106#include "devices/cassette.h"
105107#include "devices/snapquik.h"
106108#include "devices/cartslot.h"
107109#include "includes/cbmserb.h"
108#include "includes/primo.h"
109110#include "formats/primoptp.h"
110#include "mslegacy.h"
111111
112112
113113static ADDRESS_MAP_START( primoa_port, ADDRESS_SPACE_IO, 8 )
r1517r1518
230230   MDRV_SCREEN_REFRESH_RATE( 50 )
231231   MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION)
232232   MDRV_CPU_VBLANK_INT( primo_vblank_interrupt, 1 )
233   MDRV_INTERLEAVE( 1 )
234233
235234   MDRV_MACHINE_RESET( primoa )
236235
r1517r1518
239238   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
240239   MDRV_SCREEN_SIZE( 256, 192 )
241240   MDRV_SCREEN_VISIBLE_AREA( 0, 256-1, 0, 192-1 )
242   MDRV_PALETTE_LENGTH( sizeof (primo_palette) / 3 )
243   MDRV_COLORTABLE_LENGTH( sizeof (primo_colortable) )
244   MDRV_PALETTE_INIT( primo )
241   MDRV_PALETTE_LENGTH(2)
242   MDRV_PALETTE_INIT(black_and_white)
245243
246   MDRV_VIDEO_START( primo )
247244   MDRV_VIDEO_UPDATE( primo )
248245
249246   /* sound hardware */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team