Previous 199869 Revisions Next

r23940 Tuesday 25th June, 2013 at 15:28:29 UTC by Angelo Salese
Driver file
[src/mess/drivers]harriet.c*

trunk/src/mess/drivers/harriet.c
r0r23940
1/***************************************************************************
2
3   Harriet (c) 1990 Quadtel
4
5
6
7***************************************************************************/
8
9
10#include "emu.h"
11#include "cpu/m68000/m68000.h"
12//#include "sound/ay8910.h"
13
14#define MAIN_CLOCK XTAL_8MHz
15
16class harriet_state : public driver_device
17{
18public:
19   harriet_state(const machine_config &mconfig, device_type type, const char *tag)
20      : driver_device(mconfig, type, tag),
21         m_maincpu(*this, "maincpu")
22   { }
23
24   // devices
25   required_device<cpu_device> m_maincpu;
26
27   // screen updates
28   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
29
30protected:
31   // driver_device overrides
32   virtual void machine_start();
33   virtual void machine_reset();
34
35   virtual void video_start();
36   virtual void palette_init();
37};
38
39void harriet_state::video_start()
40{
41}
42
43UINT32 harriet_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect )
44{
45   return 0;
46}
47
48static ADDRESS_MAP_START( harriet_map, AS_PROGRAM, 16, harriet_state )
49   AM_RANGE(0x000000, 0x007fff) AM_ROM
50ADDRESS_MAP_END
51
52static INPUT_PORTS_START( harriet )
53   /* dummy active high structure */
54   PORT_START("SYSA")
55   PORT_DIPNAME( 0x01, 0x00, "SYSA" )
56   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
57   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
58   PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) )
59   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
60   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
61   PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) )
62   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
63   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
64   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
65   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
66   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
67   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
68   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
69   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
70   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
71   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
72   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
73   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) )
74   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
75   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
76   PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) )
77   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
78   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
79
80   /* dummy active low structure */
81   PORT_START("DSWA")
82   PORT_DIPNAME( 0x01, 0x01, "DSWA" )
83   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
84   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
85   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
86   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
87   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
88   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
89   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
90   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
91   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
92   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
93   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
94   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
95   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
96   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
97   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
98   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
99   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
100   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
101   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
102   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
103   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
104   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
105   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
106INPUT_PORTS_END
107
108static const gfx_layout charlayout =
109{
110   8,8,
111   RGN_FRAC(1,1),
112   1,
113   { RGN_FRAC(0,1) },
114   { 0, 1, 2, 3, 4, 5, 6, 7 },
115   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
116   8*8
117};
118
119static GFXDECODE_START( harriet )
120   GFXDECODE_ENTRY( "maincpu", 0, charlayout,     0, 1 )
121GFXDECODE_END
122
123
124void harriet_state::machine_start()
125{
126}
127
128void harriet_state::machine_reset()
129{
130}
131
132
133void harriet_state::palette_init()
134{
135}
136
137static MACHINE_CONFIG_START( harriet, harriet_state )
138
139   /* basic machine hardware */
140   MCFG_CPU_ADD("maincpu",M68010,MAIN_CLOCK) // TODO
141   MCFG_CPU_PROGRAM_MAP(harriet_map)
142
143   /* video hardware */
144   MCFG_SCREEN_ADD("screen", RASTER)
145   MCFG_SCREEN_REFRESH_RATE(60)
146   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
147   MCFG_SCREEN_UPDATE_DRIVER(harriet_state, screen_update)
148   MCFG_SCREEN_SIZE(32*8, 32*8)
149   MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
150
151   MCFG_GFXDECODE(harriet)
152
153   MCFG_PALETTE_LENGTH(8)
154
155   /* sound hardware */
156   MCFG_SPEAKER_STANDARD_MONO("mono")
157//  MCFG_SOUND_ADD("aysnd", AY8910, MAIN_CLOCK/4)
158//  MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
159MACHINE_CONFIG_END
160
161
162/***************************************************************************
163
164  Game driver(s)
165
166***************************************************************************/
167
168ROM_START( harriet )
169   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
170   ROM_LOAD16_BYTE( "harriet 36-74c.tfb v5.01 lobyte 533f.bin", 0x0001, 0x4000, CRC(f07fff76) SHA1(8288f7eaa8f4155e0e4746635f63ca2cc3da25d1) )
171   ROM_LOAD16_BYTE( "harriet 36-74c.tdb v5.01 hibyte 2a0c.bin", 0x0000, 0x4000, CRC(a61f441d) SHA1(76af6eddd5c042f1b2eef590eb822379944b9b28) )
172ROM_END
173
174GAME( 1990, harriet,  0,   harriet,  harriet, driver_device,  0,       ROT0, "Quadtel",      "Harriet", GAME_IS_SKELETON )
Property changes on: trunk/src/mess/drivers/harriet.c
Added: svn:eol-style
   + native
Added: svn:mime-type
   + text/plain

Previous 199869 Revisions Next


© 1997-2024 The MAME Team