Previous 199869 Revisions Next

r33487 Sunday 23rd November, 2014 at 07:49:08 UTC by Fabio Priuli
Skeleton driver for the PSE Desert Patrol, so to document the
dumped PROMs [Dave Widel, gregf]
[src/mame]mame.lst mame.mak
[src/mame/drivers]pse.c*

trunk/src/mame/drivers/pse.c
r0r241999
1/***************************************************************************
2
3 Project Support Engineering Games
4
5 Game Name                  DATA
6 --------------------------------
7 Knights in Armor (1976)    YES
8 Desert Patrol (1977)       YES
9 Game Tree (1978)           YES
10
11 ***************************************************************************/
12
13
14#include "emu.h"
15
16#include "machine/netlist.h"
17#include "netlist/devices/net_lib.h"
18#include "video/fixfreq.h"
19
20// copied by Pong, not accurate for this driver!
21// start
22#define MASTER_CLOCK    7159000
23#define V_TOTAL         (0x105+1)       // 262
24#define H_TOTAL         (0x1C6+1)       // 454
25
26#define HBSTART                 (H_TOTAL)
27#define HBEND                   (80)
28#define VBSTART                 (V_TOTAL)
29#define VBEND                   (16)
30
31#define HRES_MULT                   (1)
32// end
33
34
35class pse_state : public driver_device
36{
37public:
38   pse_state(const machine_config &mconfig, device_type type, const char *tag)
39   : driver_device(mconfig, type, tag),
40      m_maincpu(*this, "maincpu"),
41      m_video(*this, "fixfreq")
42   {
43   }
44
45   // devices
46   required_device<netlist_mame_device_t> m_maincpu;
47   required_device<fixedfreq_device> m_video;
48
49protected:
50
51   // driver_device overrides
52   virtual void machine_start();
53   virtual void machine_reset();
54
55   virtual void video_start();
56
57private:
58
59};
60
61
62static NETLIST_START(pse)
63   SOLVER(Solver, 48000)
64//  PARAM(Solver.FREQ, 48000)
65   PARAM(Solver.ACCURACY, 1e-4) // works and is sufficient
66
67   // schematics
68   //...
69
70//  NETDEV_ANALOG_CALLBACK(sound_cb, sound, psettl_state, sound_cb, "")
71//  NETDEV_ANALOG_CALLBACK(video_cb, videomix, fixedfreq_device, update_vid, "fixfreq")
72NETLIST_END()
73
74
75
76void pse_state::machine_start()
77{
78}
79
80void pse_state::machine_reset()
81{
82}
83
84
85void pse_state::video_start()
86{
87}
88
89static MACHINE_CONFIG_START( pse, pse_state )
90
91   /* basic machine hardware */
92   MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK)
93   MCFG_NETLIST_SETUP(pse)
94
95   /* video hardware */
96   MCFG_FIXFREQ_ADD("fixfreq", "screen")
97   MCFG_FIXFREQ_MONITOR_CLOCK(MASTER_CLOCK)
98   MCFG_FIXFREQ_HORZ_PARAMS(H_TOTAL-67,H_TOTAL-40,H_TOTAL-8,H_TOTAL)
99   MCFG_FIXFREQ_VERT_PARAMS(V_TOTAL-22,V_TOTAL-19,V_TOTAL-12,V_TOTAL)
100   MCFG_FIXFREQ_FIELDCOUNT(1)
101   MCFG_FIXFREQ_SYNC_THRESHOLD(0.30)
102MACHINE_CONFIG_END
103
104
105/***************************************************************************
106
107 Game driver(s)
108
109 ***************************************************************************/
110
111
112ROM_START( dpatrol )
113   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
114
115   ROM_REGION( 0x0800, "roms", ROMREGION_ERASE00 )
116   ROM_LOAD( "bd1.d2", 0x0000, 0x0400, CRC(e4c8e4ab) SHA1(0b989ca9369139f212dcea1d1461998f20057db8)) // computer program game code. 6341-1 or 82S181 according to Desert Patrol schematics
117   // the one below should be at e2 according to schematics?
118   ROM_LOAD( "bd1.f2", 0x0000, 0x0400, CRC(256b3320) SHA1(712573e3d9625a84c54bbe2e3edafb8879a14b2e)) // computer program game code. 6341-1 or 82S181 according to Desert Patrol schematics
119
120   ROM_LOAD( "bd2.l4", 0x0000, 0x0200, CRC(bc87c648) SHA1(c4709d155aa50cc87146abd152a11de618cfd64c)) // prom 1 contains aircraft target images and explosion image. pcb has 82S141; schematics show 6341-1
121   ROM_LOAD( "bd2.l1", 0x0000, 0x0800, CRC(f1e8ba9e) SHA1(605db3fdbaff4ba13729371ad0c4fbab3889378e)) // prom 2 contains parachute and man, falling man. pcb has 82S141; schematics show 6341-1
122
123   ROM_LOAD( "bd2.h7", 0x0000, 0x0020, NO_DUMP) // contains prom address codes and image speeds. Each image has its own speed and address block in the image PROM. chip is 82S123
124
125   ROM_LOAD( "bd3.d1", 0x0000, 0x0020, NO_DUMP ) // data in prom is organized to produce the waveform of a human scream. Chip type is 8574 or MM6301-0J
126ROM_END
127
128/*
129ROM_START( knightar )
130   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
131
132   ROM_REGION( 0x0020, "roms", ROMREGION_ERASE00 )
133   ROM_LOAD( "1.m1" ) // Man rom stores image characters of knights. 82S115P or 8205R according to KIA schematics
134   ROM_LOAD( "2.m2" ) // Horse rom stores image characters of horses. 82S115P or 8205R according to KIA schematics
135ROM_END
136*/
137
138/*
139ROM_START( gametree )
140   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
141
142   ROM_REGION( 0x0020, "roms", ROMREGION_ERASE00 )
143   ROM_LOAD( "bd1.d2" ) // computer program game code. 6341-1 or 82S181 according to Game Tree schematics
144   ROM_LOAD( "bd1.e2" ) // computer program game code. 6341-1 or 82S181 according to Game Tree schematics
145
146   ROM_LOAD( "bd2.f12" ) // prom 1 contains squirrel and squirrel point value. 82S141 or 6341-1 according to Game Tree layout
147   ROM_LOAD( "bd2.f14" ) // prom 1 contains squirrel and squirrel point value. 82S141 or 6341-1 according to Game Tree layout
148
149
150   ROM_LOAD( "bd2.e12" ) // prom 2 contains other targets (rabbit and turkey) and point values
151   ROM_LOAD( "bd2.e14" ) // prom 2 82S141 or 6341-1 according to Game Tree layout.
152
153
154   ROM_LOAD( "bd2.a2" ) // contains prom address codes and image speeds. Each has its own speed and address block in the image prom.
155
156   ROM_LOAD( "bd2.a3" ) // contains prom address codes and image speeds. 82S123 or 6331-1 according to Game Tree layout.
157ROM_END
158*/
159
160
161GAME( 1977, dpatrol, 0, pse, 0, driver_device, 0, ROT0, "Project Support Engineering", "Desert Patrol [TTL]", GAME_IS_SKELETON )
162//GAME( 1976, knightar, 0, pse, 0, driver_device, 0, ROT0, "Project Support Engineering", "Knights in Armor [TTL]", GAME_IS_SKELETON )
163//GAME( 1978, gametree, 0, pse, 0, driver_device, 0, ROT0, "Project Support Engineering", "Game Tree [TTL]", GAME_IS_SKELETON )
164
trunk/src/mame/mame.lst
r241998r241999
1278812788deathrac      // (c) 1976 Exidy
1278912789biplane4      // (c) 1976 Fun Games
1279012790take5         // (c) 1975 Fun Games
12791dpatrol       // (c) 1977 PSE
1279112792bballrmt      // (c) 1974 Ramtek
1279212793cleanswp      // (c) 1974 Ramtek
1279312794vollyrmt      // (c) 1973 Ramtek
trunk/src/mame/mame.mak
r241998r241999
23912391   $(DRIVERS)/potgoldu.o \
23922392   $(DRIVERS)/proconn.o \
23932393   $(DRIVERS)/psattack.o \
2394   $(DRIVERS)/pse.o \
23942395   $(DRIVERS)/quizo.o \
23952396   $(DRIVERS)/quizpun2.o \
23962397   $(DRIVERS)/rbmk.o \


Previous 199869 Revisions Next


© 1997-2024 The MAME Team