Previous 15994 Revisions Next

r6843 Friday 1st January, 2010 at 12:55:19 UTC by Wilbert Pol
[SCV/SCV_PAL] Added skeleton drivers.
[src/mess]mess.mak messdriv.c
[src/mess/drivers]scv.c*

src/mess/messdriv.c
r6842r6843
15751575   DRIVER( ipds )
15761576   DRIVER( sbc6510 )
15771577   DRIVER( supracan )
1578   DRIVER( scv )
1579   DRIVER( scv_pal )
15781580
15791581#endif /* DRIVER_RECURSIVE */
src/mess/mess.mak
r6842r6843
15721572   $(MESS_DRIVERS)/msbc1.o      \
15731573   $(MESS_DRIVERS)/sbc6510.o   \
15741574   $(MESS_DRIVERS)/supracan.o   \
1575   $(MESS_DRIVERS)/scv.o      \
15751576
15761577
15771578
src/mess/drivers/scv.c
r0r6843
1/***************************************************************************
2
3    Driver for Epoch Super Cassette Vision
4
5
6***************************************************************************/
7
8#include "driver.h"
9#include "cpu/upd7810/upd7810.h"
10
11
12static ADDRESS_MAP_START( scv_mem, ADDRESS_SPACE_PROGRAM, 8 )
13   AM_RANGE( 0x0000, 0x0fff ) AM_ROM      /* BIOS */
14
15   AM_RANGE( 0xff80, 0xffff ) AM_RAM      /* upd7801 internal RAM */
16ADDRESS_MAP_END
17
18
19static INPUT_PORTS_START( scv )
20   PORT_START( "PA0" )
21   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_8WAY
22   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_8WAY
23   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
24   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_8WAY
25   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_8WAY
26   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
27
28   PORT_START( "PA1" )
29   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_8WAY
30   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_8WAY
31   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
32   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_8WAY
33   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_8WAY
34   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
35
36   PORT_START( "PA2" )
37   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("0") PORT_CODE(KEYCODE_0)
38   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("1") PORT_CODE(KEYCODE_1)
39
40   PORT_START( "PA3" )
41   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("2") PORT_CODE(KEYCODE_2)
42   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("3") PORT_CODE(KEYCODE_3)
43
44   PORT_START( "PA4" )
45   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("4") PORT_CODE(KEYCODE_4)
46   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("5") PORT_CODE(KEYCODE_5)
47
48   PORT_START( "PA5" )
49   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("6") PORT_CODE(KEYCODE_6)
50   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("7") PORT_CODE(KEYCODE_7)
51
52   PORT_START( "PA6" )
53   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("8") PORT_CODE(KEYCODE_8)
54   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("9") PORT_CODE(KEYCODE_9)
55
56   PORT_START( "PA7" )
57   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Cl") PORT_CODE(KEYCODE_BACKSPACE)
58   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("En") PORT_CODE(KEYCODE_ENTER)
59
60   PORT_START( "PC0" )
61   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Pause") PORT_CODE(KEYCODE_O)
62INPUT_PORTS_END
63
64
65static const UPD7810_CONFIG scv_cpu_config = { TYPE_7801, NULL };
66
67
68static MACHINE_DRIVER_START( scv )
69   MDRV_CPU_ADD( "maincpu", UPD7801, XTAL_4MHz )
70   MDRV_CPU_PROGRAM_MAP( scv_mem )
71   MDRV_CPU_CONFIG( scv_cpu_config )
72
73   MDRV_SCREEN_ADD( "screen", RASTER )
74   MDRV_SCREEN_FORMAT( BITMAP_FORMAT_INDEXED16 )
75   MDRV_SCREEN_RAW_PARAMS( XTAL_14_31818MHz/2, 456, 0, 256, 262, 0, 200 )   /* TODO: Verify */
76
77   MDRV_PALETTE_LENGTH(16)
78
79   /* Video chip is EPOCH TV-1 */
80
81   /* Sound is generated by UPD1771C clocked at XTAL_6MHz */
82MACHINE_DRIVER_END
83
84
85static MACHINE_DRIVER_START( scv_pal )
86   MDRV_CPU_ADD( "maincpu", UPD7801, 3780000 )
87   MDRV_CPU_PROGRAM_MAP( scv_mem )
88   MDRV_CPU_CONFIG( scv_cpu_config )
89
90   MDRV_SCREEN_ADD( "screen", RASTER )
91   MDRV_SCREEN_FORMAT( BITMAP_FORMAT_INDEXED16 )
92   MDRV_SCREEN_RAW_PARAMS( XTAL_13_4MHz/2, 456, 0, 256, 342, 0, 200 )      /* TODO: Verify */
93
94   MDRV_PALETTE_LENGTH(16)
95
96   /* Video chip is EPOCH TV-1A */
97
98   /* Sound is generated by UPD1771C clocked at XTAL_6MHz */
99MACHINE_DRIVER_END
100
101
102/* The same bios is used in both the NTSC and PAL versions of the console */
103ROM_START( scv )
104   ROM_REGION( 0x1000, "maincpu", 0 )
105   ROM_LOAD( "upd7801g.s01", 0, 0x1000, CRC(7ac06182) SHA1(6e89d1227581c76441a53d605f9e324185f1da33) )
106ROM_END
107
108
109ROM_START( scv_pal )
110   ROM_REGION( 0x1000, "maincpu", 0 )
111   ROM_LOAD( "upd7801g.s01", 0, 0x1000, CRC(7ac06182) SHA1(6e89d1227581c76441a53d605f9e324185f1da33) )
112ROM_END
113
114
115/*    YEAR  NAME     PARENT  COMPAT  MACHINE  INPUT  INIT    COMPANY  FULLNAME                 FLAGS */
116CONS( 199?, scv,     0,      0,      scv,     scv,   0,      "Epoch", "Super Cassette Vision", GAME_NOT_WORKING )
117CONS( 199?, scv_pal, scv,    0,      scv_pal, scv,   0,      "Epoch", "Super Cassette Vision (PAL)", GAME_NOT_WORKING )
118

Previous 15994 Revisions Next


© 1998-2018 The MESS Team