Previous 15994 Revisions Next

r14983 Saturday 21st April, 2012 at 09:06:01 UTC by Miodrag Milanović
Sync with MAME r16045 (no whatsnew)
[src/emu]device.c device.h ioport.c memory.c memory.h rendlay.c rendlay.h
[src/emu/machine]i8155.c nvram.c
[src/emu/sound]spu.c
[src/mame]mame.lst mame.mak
[src/mame/audio]dcs.c segasnd.c taito_en.c
[src/mame/drivers]actfancr.c amaticmg.c bfm_sc4.c bfm_sc4h.c cps3.c meyc8080.c meyc8088.c* segac2.c
[src/mame/includes]bfm_sc45.h
[src/mame/layout]bfm_sc4.lay
[src/mame/machine]leland.c psx.c s24fd.c
[src/mame/video]sei_crtc.c
[src/mess/drivers]psx.c

src/mame/mame.lst
r14982r14983
1036410364dambustruk      // (c) 1981 South West Research
1036510365gunpey         // (c) 2000 Banpresto
1036610366spaceg         // (c) 19??
10367wldarrow      // (c) 1982
10368unkmeyco      // (c) 198?
10369mdrawpkr      // (c) 19??
10370mdrawpkra      // (c) 19??
10367gldarrow      // (c) 1984 Meyco Games
10368wldarrow      // (c) 1982 Meyco Games
10369casbjack      // (c) 1983 Meyco Games
10370mdrawpkr      // (c) 1984 Meyco Games
10371mdrawpkra      // (c) 1984 Meyco Games
1037110372laserbas      // (c) 1981 Amstar/HOEI
1037210373laserbasa      // (c) 1981 Amstar/HOEI
1037310374futflash      // (c) 1981 HOEI (Arcade TV Game List - P.96, Right, 18 from top)
src/mame/audio/segasnd.c
r14982r14983
736736   assert(usb->cpu != NULL);
737737
738738   /* allocate RAM */
739   usb->program_ram = (UINT8 *)machine.memory().shared("pgmram")->ptr();
739   usb->program_ram = (UINT8 *)machine.root_device().memshare("pgmram")->ptr();
740740   usb->work_ram = auto_alloc_array(machine, UINT8, 0x400);
741741
742742   /* create a sound stream */
src/mame/audio/taito_en.c
r14982r14983
305305{
306306   /* Sound cpu program loads to 0xc00000 so we use a bank */
307307   UINT16 *ROM = (UINT16 *)machine.root_device().memregion("audiocpu")->base();
308   UINT16 *sound_ram = (UINT16 *)machine.memory().shared("share1")->ptr();
308   UINT16 *sound_ram = (UINT16 *)machine.root_device().memshare("share1")->ptr();
309309   machine.root_device().membank("bank1")->set_base(&ROM[0x80000]);
310310   machine.root_device().membank("bank2")->set_base(&ROM[0x90000]);
311311   machine.root_device().membank("bank3")->set_base(&ROM[0xa0000]);
r14982r14983
319319   machine.device("audiocpu")->reset();
320320   //cputag_set_input_line(machine, "audiocpu", INPUT_LINE_RESET, ASSERT_LINE);
321321
322   f3_shared_ram = (UINT32 *)machine.memory().shared("f3_shared")->ptr();
322   f3_shared_ram = (UINT32 *)machine.root_device().memshare("f3_shared")->ptr();
323323}
324324
325325static const es5505_interface es5505_taito_f3_config =
src/mame/audio/dcs.c
r14982r14983
943943   memset(&dcs, 0, sizeof(dcs));
944944   dcs.sram = NULL;
945945
946   dcs.internal_program_ram = (UINT32 *)machine.memory().shared("dcsint")->ptr();
947   dcs.external_program_ram = (UINT32 *)machine.memory().shared("dcsext")->ptr();
946   dcs.internal_program_ram = (UINT32 *)machine.root_device().memshare("dcsint")->ptr();
947   dcs.external_program_ram = (UINT32 *)machine.root_device().memshare("dcsext")->ptr();
948948
949949   /* find the DCS CPU and the sound ROMs */
950950   dcs.cpu = machine.device<adsp21xx_device>("dcs");
r14982r14983
982982   int soundbank_words;
983983
984984   memset(&dcs, 0, sizeof(dcs));
985   dcs.internal_program_ram = (UINT32 *)machine.memory().shared("dcsint")->ptr();
986   dcs.external_program_ram = (UINT32 *)machine.memory().shared("dcsext")->ptr();
985   dcs.internal_program_ram = (UINT32 *)machine.root_device().memshare("dcsint")->ptr();
986   dcs.external_program_ram = (UINT32 *)machine.root_device().memshare("dcsext")->ptr();
987987
988988   /* find the DCS CPU and the sound ROMs */
989989   dcs.cpu = machine.device<adsp21xx_device>("dcs2");
src/mame/machine/s24fd.c
r14982r14983
156156{
157157   int i;
158158
159   s24_fd1094_cpuregion = (UINT16*)machine.memory().shared("share2")->ptr();
159   s24_fd1094_cpuregion = (UINT16*)machine.root_device().memshare("share2")->ptr();
160160   s24_fd1094_cpuregionsize = 0x40000;
161161   s24_fd1094_key = machine.root_device().memregion("fd1094key")->base();
162162
src/mame/machine/psx.c
r14982r14983
2828{
2929   psx_state *p_psx = machine.driver_data<psx_state>();
3030
31   memory_share *share = machine.memory().shared("share1");
31   memory_share *share = machine.root_device().memshare("share1");
3232   p_psx->m_p_n_psxram = (UINT32 *)share->ptr();
3333   p_psx->m_n_psxramsize = share->bytes();
3434}
src/mame/machine/leland.c
r14982r14983
320320{
321321   leland_state *state = machine.driver_data<leland_state>();
322322   /* allocate extra stuff */
323   state->m_battery_ram = reinterpret_cast<UINT8 *>(machine.memory().shared("battery")->ptr());
323   state->m_battery_ram = reinterpret_cast<UINT8 *>(state->memshare("battery")->ptr());
324324
325325   /* start scanline interrupts going */
326326   state->m_master_int_timer = machine.scheduler().timer_alloc(FUNC(leland_interrupt_callback));
r14982r14983
370370{
371371   leland_state *state = machine.driver_data<leland_state>();
372372   /* set the odd data banks */
373   state->m_battery_ram = reinterpret_cast<UINT8 *>(machine.memory().shared("battery")->ptr());
373   state->m_battery_ram = reinterpret_cast<UINT8 *>(state->memshare("battery")->ptr());
374374   state->m_extra_tram = auto_alloc_array(machine, UINT8, ATAXX_EXTRA_TRAM_SIZE);
375375
376376   /* start scanline interrupts going */
src/mame/includes/bfm_sc45.h
r14982r14983
22332233
22342234#define sc_ccogs_others \
22352235   ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
2236   ROM_LOAD( "clevercogssnd", 0x0000, 0x100000, NO_DUMP ) \
2236   ROM_LOAD( "95008361.bin", 0x0000, 0x0ff54f, CRC(d1cc7b58) SHA1(32328e0e56bbf65e91e32de8802edce38f0abc65) )
22372237
22382238#define sc_cclas_others \
22392239   ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
src/mame/mame.mak
r14982r14983
17811781   $(DRIVERS)/malzak.o $(VIDEO)/malzak.o \
17821782   $(DRIVERS)/mcatadv.o $(VIDEO)/mcatadv.o \
17831783   $(DRIVERS)/meyc8080.o \
1784   $(DRIVERS)/meyc8088.o \
17841785   $(DRIVERS)/micro3d.o $(MACHINE)/micro3d.o $(VIDEO)/micro3d.o $(AUDIO)/micro3d.o \
17851786   $(DRIVERS)/midas.o \
17861787   $(DRIVERS)/miniboy7.o \
src/mame/video/sei_crtc.c
r14982r14983
208208
209209static void draw_sprites(running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect,int pri)
210210{
211   UINT16 *spriteram16 = reinterpret_cast<UINT16 *>(machine.memory().shared("spriteram")->ptr());
211   UINT16 *spriteram16 = reinterpret_cast<UINT16 *>(machine.root_device().memshare("spriteram")->ptr());
212212   int offs,fx,fy,x,y,color,sprite;
213213   int dx,dy,ax,ay;
214214
src/mame/layout/bfm_sc4.lay
r14982r14983
1414         <color red="0.0" green="1.0" blue="0.0" />
1515      </rect>
1616   </element>
17   <element name="Steppers" defstate="96">
18      <text string="00" state="0">
19         <color red="1.0" green="1.0" blue="1.0" />
20         <bounds x="0" y="0.1" width="1" height="1" />
21      </text>
22      <text string="01" state="1">
23         <color red="1.0" green="1.0" blue="1.0" />
24         <bounds x="0" y="0.1" width="1" height="1" />
25      </text>
26      <text string="02" state="2">
27         <color red="1.0" green="1.0" blue="1.0" />
28         <bounds x="0" y="0.1" width="1" height="1" />
29      </text>
30      <text string="03" state="3">
31         <color red="1.0" green="1.0" blue="1.0" />
32         <bounds x="0" y="0.1" width="1" height="1" />
33      </text>
34      <text string="04" state="4">
35         <color red="1.0" green="1.0" blue="1.0" />
36         <bounds x="0" y="0.1" width="1" height="1" />
37      </text>
38      <text string="05" state="5">
39         <color red="1.0" green="1.0" blue="1.0" />
40         <bounds x="0" y="0.1" width="1" height="1" />
41      </text>
42      <text string="06" state="6">
43         <color red="1.0" green="1.0" blue="1.0" />
44         <bounds x="0" y="0.1" width="1" height="1" />
45      </text>
46      <text string="07" state="7">
47         <color red="1.0" green="1.0" blue="1.0" />
48         <bounds x="0" y="0.1" width="1" height="1" />
49      </text>
50      <text string="08" state="8">
51         <color red="1.0" green="1.0" blue="1.0" />
52         <bounds x="0" y="0.1" width="1" height="1" />
53      </text>
54      <text string="09" state="9">
55         <color red="1.0" green="1.0" blue="1.0" />
56         <bounds x="0" y="0.1" width="1" height="1" />
57      </text>
58      <text string="10" state="10">
59         <color red="1.0" green="1.0" blue="1.0" />
60         <bounds x="0" y="0.1" width="1" height="1" />
61      </text>
62      <text string="11" state="11">
63         <color red="1.0" green="1.0" blue="1.0" />
64         <bounds x="0" y="0.1" width="1" height="1" />
65      </text>
66      <text string="12" state="12">
67         <color red="1.0" green="1.0" blue="1.0" />
68         <bounds x="0" y="0.1" width="1" height="1" />
69      </text>
70      <text string="13" state="13">
71         <color red="1.0" green="1.0" blue="1.0" />
72         <bounds x="0" y="0.1" width="1" height="1" />
73      </text>
74      <text string="14" state="14">
75         <color red="1.0" green="1.0" blue="1.0" />
76         <bounds x="0" y="0.1" width="1" height="1" />
77      </text>
78      <text string="15" state="15">
79         <color red="1.0" green="1.0" blue="1.0" />
80         <bounds x="0" y="0.1" width="1" height="1" />
81      </text>
82      <text string="16" state="16">
83         <color red="1.0" green="1.0" blue="1.0" />
84         <bounds x="0" y="0.1" width="1" height="1" />
85      </text>
86      <text string="17" state="17">
87         <color red="1.0" green="1.0" blue="1.0" />
88         <bounds x="0" y="0.1" width="1" height="1" />
89      </text>
90      <text string="18" state="18">
91         <color red="1.0" green="1.0" blue="1.0" />
92         <bounds x="0" y="0.1" width="1" height="1" />
93      </text>
94      <text string="19" state="19">
95         <color red="1.0" green="1.0" blue="1.0" />
96         <bounds x="0" y="0.1" width="1" height="1" />
97      </text>
98      <text string="20" state="20">
99         <color red="1.0" green="1.0" blue="1.0" />
100         <bounds x="0" y="0.1" width="1" height="1" />
101      </text>
102      <text string="21" state="21">
103         <color red="1.0" green="1.0" blue="1.0" />
104         <bounds x="0" y="0.1" width="1" height="1" />
105      </text>
106      <text string="22" state="22">
107         <color red="1.0" green="1.0" blue="1.0" />
108         <bounds x="0" y="0.1" width="1" height="1" />
109      </text>
110      <text string="23" state="23">
111         <color red="1.0" green="1.0" blue="1.0" />
112         <bounds x="0" y="0.1" width="1" height="1" />
113      </text>
114      <text string="24" state="24">
115         <color red="1.0" green="1.0" blue="1.0" />
116         <bounds x="0" y="0.1" width="1" height="1" />
117      </text>
118      <text string="25" state="25">
119         <color red="1.0" green="1.0" blue="1.0" />
120         <bounds x="0" y="0.1" width="1" height="1" />
121      </text>
17  <element name="Steppers" defstate="0">
18    <simplecounter maxstate="999" digits="2">
19      <color red="1.0" green="1.0" blue="1.0" />
20      <bounds x="0" y="0.1" width="1" height="1" />
21    </simplecounter>
22  </element>
12223 
123      <text string="26" state="26">
124         <color red="1.0" green="1.0" blue="1.0" />
125         <bounds x="0" y="0.1" width="1" height="1" />
126      </text>
127      <text string="27" state="27">
128         <color red="1.0" green="1.0" blue="1.0" />
129         <bounds x="0" y="0.1" width="1" height="1" />
130      </text>
131      <text string="28" state="28">
132         <color red="1.0" green="1.0" blue="1.0" />
133         <bounds x="0" y="0.1" width="1" height="1" />
134      </text>
135      <text string="29" state="29">
136         <color red="1.0" green="1.0" blue="1.0" />
137         <bounds x="0" y="0.1" width="1" height="1" />
138      </text>
139      <text string="30" state="30">
140         <color red="1.0" green="1.0" blue="1.0" />
141         <bounds x="0" y="0.1" width="1" height="1" />
142      </text>
143      <text string="31" state="31">
144         <color red="1.0" green="1.0" blue="1.0" />
145         <bounds x="0" y="0.1" width="1" height="1" />
146      </text>
147      <text string="32" state="32">
148         <color red="1.0" green="1.0" blue="1.0" />
149         <bounds x="0" y="0.1" width="1" height="1" />
150      </text>
151      <text string="33" state="33">
152         <color red="1.0" green="1.0" blue="1.0" />
153         <bounds x="0" y="0.1" width="1" height="1" />
154      </text>
155      <text string="34" state="34">
156         <color red="1.0" green="1.0" blue="1.0" />
157         <bounds x="0" y="0.1" width="1" height="1" />
158      </text>
159      <text string="35" state="35">
160         <color red="1.0" green="1.0" blue="1.0" />
161         <bounds x="0" y="0.1" width="1" height="1" />
162      </text>
163      <text string="36" state="36">
164         <color red="1.0" green="1.0" blue="1.0" />
165         <bounds x="0" y="0.1" width="1" height="1" />
166      </text>
167      <text string="37" state="37">
168         <color red="1.0" green="1.0" blue="1.0" />
169         <bounds x="0" y="0.1" width="1" height="1" />
170      </text>
171      <text string="38" state="38">
172         <color red="1.0" green="1.0" blue="1.0" />
173         <bounds x="0" y="0.1" width="1" height="1" />
174      </text>
175      <text string="39" state="39">
176         <color red="1.0" green="1.0" blue="1.0" />
177         <bounds x="0" y="0.1" width="1" height="1" />
178      </text>
179      <text string="40" state="40">
180         <color red="1.0" green="1.0" blue="1.0" />
181         <bounds x="0" y="0.1" width="1" height="1" />
182      </text>
183      <text string="41" state="41">
184         <color red="1.0" green="1.0" blue="1.0" />
185         <bounds x="0" y="0.1" width="1" height="1" />
186      </text>
187      <text string="42" state="42">
188         <color red="1.0" green="1.0" blue="1.0" />
189         <bounds x="0" y="0.1" width="1" height="1" />
190      </text>
191      <text string="43" state="43">
192         <color red="1.0" green="1.0" blue="1.0" />
193         <bounds x="0" y="0.1" width="1" height="1" />
194      </text>
195      <text string="44" state="44">
196         <color red="1.0" green="1.0" blue="1.0" />
197         <bounds x="0" y="0.1" width="1" height="1" />
198      </text>
199      <text string="45" state="45">
200         <color red="1.0" green="1.0" blue="1.0" />
201         <bounds x="0" y="0.1" width="1" height="1" />
202      </text>
203      <text string="46" state="46">
204         <color red="1.0" green="1.0" blue="1.0" />
205         <bounds x="0" y="0.1" width="1" height="1" />
206      </text>
207      <text string="47" state="47">
208         <color red="1.0" green="1.0" blue="1.0" />
209         <bounds x="0" y="0.1" width="1" height="1" />
210      </text>
211      <text string="48" state="48">
212         <color red="1.0" green="1.0" blue="1.0" />
213         <bounds x="0" y="0.1" width="1" height="1" />
214      </text>
215      <text string="49" state="49">
216         <color red="1.0" green="1.0" blue="1.0" />
217         <bounds x="0" y="0.1" width="1" height="1" />
218      </text>
219      <text string="50" state="50">
220         <color red="1.0" green="1.0" blue="1.0" />
221         <bounds x="0" y="0.1" width="1" height="1" />
222      </text>
223      <text string="51" state="51">
224         <color red="1.0" green="1.0" blue="1.0" />
225         <bounds x="0" y="0.1" width="1" height="1" />
226      </text>
227      <text string="52" state="52">
228         <color red="1.0" green="1.0" blue="1.0" />
229         <bounds x="0" y="0.1" width="1" height="1" />
230      </text>
231      <text string="53" state="53">
232         <color red="1.0" green="1.0" blue="1.0" />
233         <bounds x="0" y="0.1" width="1" height="1" />
234      </text>
235      <text string="54" state="54">
236         <color red="1.0" green="1.0" blue="1.0" />
237         <bounds x="0" y="0.1" width="1" height="1" />
238      </text>
239      <text string="55" state="55">
240         <color red="1.0" green="1.0" blue="1.0" />
241         <bounds x="0" y="0.1" width="1" height="1" />
242      </text>
243      <text string="56" state="56">
244         <color red="1.0" green="1.0" blue="1.0" />
245         <bounds x="0" y="0.1" width="1" height="1" />
246      </text>
247      <text string="57" state="57">
248         <color red="1.0" green="1.0" blue="1.0" />
249         <bounds x="0" y="0.1" width="1" height="1" />
250      </text>
251      <text string="58" state="58">
252         <color red="1.0" green="1.0" blue="1.0" />
253         <bounds x="0" y="0.1" width="1" height="1" />
254      </text>
255      <text string="59" state="59">
256         <color red="1.0" green="1.0" blue="1.0" />
257         <bounds x="0" y="0.1" width="1" height="1" />
258      </text>
259      <text string="60" state="60">
260         <color red="1.0" green="1.0" blue="1.0" />
261         <bounds x="0" y="0.1" width="1" height="1" />
262      </text>
263      <text string="61" state="61">
264         <color red="1.0" green="1.0" blue="1.0" />
265         <bounds x="0" y="0.1" width="1" height="1" />
266      </text>
267      <text string="62" state="62">
268         <color red="1.0" green="1.0" blue="1.0" />
269         <bounds x="0" y="0.1" width="1" height="1" />
270      </text>
271      <text string="63" state="63">
272         <color red="1.0" green="1.0" blue="1.0" />
273         <bounds x="0" y="0.1" width="1" height="1" />
274      </text>
275      <text string="64" state="64">
276         <color red="1.0" green="1.0" blue="1.0" />
277         <bounds x="0" y="0.1" width="1" height="1" />
278      </text>
279      <text string="65" state="65">
280         <color red="1.0" green="1.0" blue="1.0" />
281         <bounds x="0" y="0.1" width="1" height="1" />
282      </text>
283      <text string="66" state="66">
284         <color red="1.0" green="1.0" blue="1.0" />
285         <bounds x="0" y="0.1" width="1" height="1" />
286      </text>
287      <text string="67" state="67">
288         <color red="1.0" green="1.0" blue="1.0" />
289         <bounds x="0" y="0.1" width="1" height="1" />
290      </text>
291      <text string="68" state="68">
292         <color red="1.0" green="1.0" blue="1.0" />
293         <bounds x="0" y="0.1" width="1" height="1" />
294      </text>
295      <text string="69" state="69">
296         <color red="1.0" green="1.0" blue="1.0" />
297         <bounds x="0" y="0.1" width="1" height="1" />
298      </text>
299      <text string="70" state="70">
300         <color red="1.0" green="1.0" blue="1.0" />
301         <bounds x="0" y="0.1" width="1" height="1" />
302      </text>
303      <text string="71" state="71">
304         <color red="1.0" green="1.0" blue="1.0" />
305         <bounds x="0" y="0.1" width="1" height="1" />
306      </text>
307      <text string="72" state="72">
308         <color red="1.0" green="1.0" blue="1.0" />
309         <bounds x="0" y="0.1" width="1" height="1" />
310      </text>
311      <text string="73" state="73">
312         <color red="1.0" green="1.0" blue="1.0" />
313         <bounds x="0" y="0.1" width="1" height="1" />
314      </text>
315      <text string="74" state="74">
316         <color red="1.0" green="1.0" blue="1.0" />
317         <bounds x="0" y="0.1" width="1" height="1" />
318      </text>
319      <text string="75" state="75">
320         <color red="1.0" green="1.0" blue="1.0" />
321         <bounds x="0" y="0.1" width="1" height="1" />
322      </text>
323      <text string="76" state="76">
324         <color red="1.0" green="1.0" blue="1.0" />
325         <bounds x="0" y="0.1" width="1" height="1" />
326      </text>
327      <text string="77" state="77">
328         <color red="1.0" green="1.0" blue="1.0" />
329         <bounds x="0" y="0.1" width="1" height="1" />
330      </text>
331      <text string="78" state="78">
332         <color red="1.0" green="1.0" blue="1.0" />
333         <bounds x="0" y="0.1" width="1" height="1" />
334      </text>
335      <text string="79" state="79">
336         <color red="1.0" green="1.0" blue="1.0" />
337         <bounds x="0" y="0.1" width="1" height="1" />
338      </text>
339      <text string="80" state="80">
340         <color red="1.0" green="1.0" blue="1.0" />
341         <bounds x="0" y="0.1" width="1" height="1" />
342      </text>
343      <text string="81" state="81">
344         <color red="1.0" green="1.0" blue="1.0" />
345         <bounds x="0" y="0.1" width="1" height="1" />
346      </text>
347      <text string="82" state="82">
348         <color red="1.0" green="1.0" blue="1.0" />
349         <bounds x="0" y="0.1" width="1" height="1" />
350      </text>
351      <text string="83" state="83">
352         <color red="1.0" green="1.0" blue="1.0" />
353         <bounds x="0" y="0.1" width="1" height="1" />
354      </text>
355      <text string="84" state="84">
356         <color red="1.0" green="1.0" blue="1.0" />
357         <bounds x="0" y="0.1" width="1" height="1" />
358      </text>
359      <text string="85" state="85">
360         <color red="1.0" green="1.0" blue="1.0" />
361         <bounds x="0" y="0.1" width="1" height="1" />
362      </text>
363      <text string="86" state="86">
364         <color red="1.0" green="1.0" blue="1.0" />
365         <bounds x="0" y="0.1" width="1" height="1" />
366      </text>
367      <text string="87" state="87">
368         <color red="1.0" green="1.0" blue="1.0" />
369         <bounds x="0" y="0.1" width="1" height="1" />
370      </text>
371      <text string="88" state="88">
372         <color red="1.0" green="1.0" blue="1.0" />
373         <bounds x="0" y="0.1" width="1" height="1" />
374      </text>
375      <text string="89" state="89">
376         <color red="1.0" green="1.0" blue="1.0" />
377         <bounds x="0" y="0.1" width="1" height="1" />
378      </text>
379      <text string="90" state="90">
380         <color red="1.0" green="1.0" blue="1.0" />
381         <bounds x="0" y="0.1" width="1" height="1" />
382      </text>
383      <text string="91" state="91">
384         <color red="1.0" green="1.0" blue="1.0" />
385         <bounds x="0" y="0.1" width="1" height="1" />
386      </text>
387      <text string="92" state="92">
388         <color red="1.0" green="1.0" blue="1.0" />
389         <bounds x="0" y="0.1" width="1" height="1" />
390      </text>
391      <text string="93" state="93">
392         <color red="1.0" green="1.0" blue="1.0" />
393         <bounds x="0" y="0.1" width="1" height="1" />
394      </text>
395      <text string="94" state="94">
396         <color red="1.0" green="1.0" blue="1.0" />
397         <bounds x="0" y="0.1" width="1" height="1" />
398      </text>
399      <text string="95" state="95">
400         <color red="1.0" green="1.0" blue="1.0" />
401         <bounds x="0" y="0.1" width="1" height="1" />
402      </text>
403   </element>
40424   <element name="vfd0">
405   <led14segsc>
406         <color red="0" green="0.6" blue="1.0" />
407   </led14segsc>
25     <led14segsc>
26           <color red="0" green="0.6" blue="1.0" />
27     </led14segsc>
40828  </element>
40929  <element name="digit" defstate="10">
41030    <led7seg>
r14982r14983
20351655    </backdrop>
20361656 
20371657    <backdrop name="digit0" element="digit" state="0">
2038      <bounds x="180" y="64" width="18" height="34"/>
1658      <bounds x="180" y="64" width="9" height="19"/>
20391659    </backdrop>
20401660    <backdrop name="digit1" element="digit" state="0">
2041      <bounds x="200" y="64" width="18" height="34"/>
1661      <bounds x="190" y="64" width="9" height="19"/>
20421662    </backdrop>
20431663    <backdrop name="digit2" element="digit" state="0">
2044      <bounds x="220" y="64" width="18" height="34"/>
1664      <bounds x="200" y="64" width="9" height="19"/>
20451665    </backdrop>
20461666    <backdrop name="digit3" element="digit" state="0">
2047      <bounds x="240" y="64" width="18" height="34"/>
1667      <bounds x="210" y="64" width="9" height="19"/>
20481668    </backdrop>
20491669    <backdrop name="digit4" element="digit" state="0">
2050      <bounds x="260" y="64" width="18" height="34"/>
1670      <bounds x="220" y="64" width="9" height="19"/>
20511671    </backdrop>
20521672    <backdrop name="digit5" element="digit" state="0">
2053      <bounds x="280" y="64" width="18" height="34"/>
1673      <bounds x="230" y="64" width="9" height="19"/>
20541674    </backdrop>
20551675    <backdrop name="digit6" element="digit" state="0">
2056      <bounds x="300" y="64" width="18" height="34"/>
1676      <bounds x="240" y="64" width="9" height="19"/>
20571677    </backdrop>
20581678    <backdrop name="digit7" element="digit" state="0">
2059      <bounds x="320" y="64" width="18" height="34"/>
1679      <bounds x="250" y="64" width="9" height="19"/>
20601680    </backdrop>
1681   
20611682    <backdrop name="digit8" element="digit" state="0">
2062      <bounds x="340" y="64" width="18" height="34"/>
1683      <bounds x="180" y="84" width="9" height="19"/>
20631684    </backdrop>
20641685    <backdrop name="digit9" element="digit" state="0">
2065      <bounds x="360" y="64" width="18" height="34"/>
1686      <bounds x="190" y="84" width="9" height="19"/>
20661687    </backdrop>
20671688    <backdrop name="digit10" element="digit" state="0">
2068      <bounds x="380" y="64" width="18" height="34"/>
1689      <bounds x="200" y="84" width="9" height="19"/>
20691690    </backdrop>
20701691    <backdrop name="digit11" element="digit" state="0">
2071      <bounds x="400" y="64" width="18" height="34"/>
1692      <bounds x="210" y="84" width="9" height="19"/>
20721693    </backdrop>
1694    <backdrop name="digit12" element="digit" state="0">
1695      <bounds x="220" y="84" width="9" height="19"/>
1696    </backdrop>
1697    <backdrop name="digit13" element="digit" state="0">
1698      <bounds x="230" y="84" width="9" height="19"/>
1699    </backdrop>
1700    <backdrop name="digit14" element="digit" state="0">
1701      <bounds x="240" y="84" width="9" height="19"/>
1702    </backdrop>
1703    <backdrop name="digit15" element="digit" state="0">
1704      <bounds x="250" y="84" width="9" height="19"/>
1705    </backdrop>
20731706 
2074     
2075     
1707    <backdrop name="digit16" element="digit" state="0">
1708      <bounds x="180" y="104" width="9" height="19"/>
1709    </backdrop>
1710    <backdrop name="digit17" element="digit" state="0">
1711      <bounds x="190" y="104" width="9" height="19"/>
1712    </backdrop>
1713    <backdrop name="digit18" element="digit" state="0">
1714      <bounds x="200" y="104" width="9" height="19"/>
1715    </backdrop>
1716    <backdrop name="digit19" element="digit" state="0">
1717      <bounds x="210" y="104" width="9" height="19"/>
1718    </backdrop>
1719    <backdrop name="digit20" element="digit" state="0">
1720      <bounds x="220" y="104" width="9" height="19"/>
1721    </backdrop>
1722    <backdrop name="digit21" element="digit" state="0">
1723      <bounds x="230" y="104" width="9" height="19"/>
1724    </backdrop>
1725    <backdrop name="digit22" element="digit" state="0">
1726      <bounds x="240" y="104" width="9" height="19"/>
1727    </backdrop>
1728    <backdrop name="digit23" element="digit" state="0">
1729      <bounds x="250" y="104" width="9" height="19"/>
1730    </backdrop>
1731 
1732    <backdrop name="digit24" element="digit" state="0">
1733      <bounds x="180" y="124" width="9" height="19"/>
1734    </backdrop>
1735    <backdrop name="digit25" element="digit" state="0">
1736      <bounds x="190" y="124" width="9" height="19"/>
1737    </backdrop>
1738    <backdrop name="digit26" element="digit" state="0">
1739      <bounds x="200" y="124" width="9" height="19"/>
1740    </backdrop>
1741    <backdrop name="digit27" element="digit" state="0">
1742      <bounds x="210" y="124" width="9" height="19"/>
1743    </backdrop>
1744    <backdrop name="digit28" element="digit" state="0">
1745      <bounds x="220" y="124" width="9" height="19"/>
1746    </backdrop>
1747    <backdrop name="digit29" element="digit" state="0">
1748      <bounds x="230" y="124" width="9" height="19"/>
1749    </backdrop>
1750    <backdrop name="digit30" element="digit" state="0">
1751      <bounds x="240" y="124" width="9" height="19"/>
1752    </backdrop>
1753    <backdrop name="digit31" element="digit" state="0">
1754      <bounds x="250" y="124" width="9" height="19"/>
1755    </backdrop>
1756 
1757 
20761758  </view>
20771759   <view name="VFD Display Output Only">
20781760      <backdrop name="vfd0" element="vfd0" state="0">
src/mame/drivers/meyc8080.c
r14982r14983
6363#include "meybjack.lh"
6464
6565
66class wldarrow_state : public driver_device
66class meyc8080_state : public driver_device
6767{
6868public:
69   wldarrow_state(const machine_config &mconfig, device_type type, const char *tag)
69   meyc8080_state(const machine_config &mconfig, device_type type, const char *tag)
7070      : driver_device(mconfig, type, tag) ,
7171      m_videoram_0(*this, "vram0"),
7272      m_videoram_1(*this, "vram1"),
73      m_videoram_2(*this, "vram2"){ }
73      m_videoram_2(*this, "vram2")
74   { }
7475
7576   required_shared_ptr<UINT8> m_videoram_0;
7677   required_shared_ptr<UINT8> m_videoram_1;
7778   required_shared_ptr<UINT8> m_videoram_2;
79
7880   DECLARE_WRITE8_MEMBER(lights_1_w);
7981   DECLARE_WRITE8_MEMBER(lights_2_w);
8082   DECLARE_WRITE8_MEMBER(counters_w);
r14982r14983
101103}
102104
103105
104static SCREEN_UPDATE_RGB32( wldarrow )
106static SCREEN_UPDATE_RGB32( meyc8080 )
105107{
106   wldarrow_state *state = screen.machine().driver_data<wldarrow_state>();
108   meyc8080_state *state = screen.machine().driver_data<meyc8080_state>();
107109   pen_t pens[NUM_PENS];
108110   offs_t offs;
109111
r14982r14983
153155 *
154156 *************************************/
155157
156WRITE8_MEMBER(wldarrow_state::lights_1_w)
158WRITE8_MEMBER(meyc8080_state::lights_1_w)
157159{
158160/* Wild Arrow lamps
159161
r14982r14983
199201}
200202
201203
202WRITE8_MEMBER(wldarrow_state::lights_2_w)
204WRITE8_MEMBER(meyc8080_state::lights_2_w)
203205{
204206/* Wild Arrow unknown pulse...
205207
r14982r14983
248250}
249251
250252
251WRITE8_MEMBER(wldarrow_state::counters_w)
253WRITE8_MEMBER(meyc8080_state::counters_w)
252254{
253255/* Wild Arrow & Draw Poker counters
254256
r14982r14983
284286 *
285287 *************************************/
286288
287static WRITE8_DEVICE_HANDLER( wldarrow_dac_1_w )
289static WRITE8_DEVICE_HANDLER( meyc8080_dac_1_w )
288290{
289291   dac_data_w(device, 0x00);
290292}
291293
292294
293static WRITE8_DEVICE_HANDLER( wldarrow_dac_2_w )
295static WRITE8_DEVICE_HANDLER( meyc8080_dac_2_w )
294296{
295297   dac_data_w(device, 0x55);
296298}
297299
298300
299static WRITE8_DEVICE_HANDLER( wldarrow_dac_3_w )
301static WRITE8_DEVICE_HANDLER( meyc8080_dac_3_w )
300302{
301303   dac_data_w(device, 0xaa);
302304}
303305
304306
305static WRITE8_DEVICE_HANDLER( wldarrow_dac_4_w )
307static WRITE8_DEVICE_HANDLER( meyc8080_dac_4_w )
306308{
307309   dac_data_w(device, 0xff);
308310}
r14982r14983
315317 *
316318 *************************************/
317319
318static ADDRESS_MAP_START( wldarrow_map, AS_PROGRAM, 8, wldarrow_state )
320static ADDRESS_MAP_START( meyc8080_map, AS_PROGRAM, 8, meyc8080_state )
319321   AM_RANGE(0x0000, 0x37ff) AM_ROM
320322   AM_RANGE(0x3800, 0x3800) AM_READ_PORT("IN0")
321323   AM_RANGE(0x4000, 0x5fff) AM_RAM AM_SHARE("vram0")
r14982r14983
323325   AM_RANGE(0x8000, 0x9fff) AM_RAM AM_SHARE("vram2")
324326//   AM_RANGE(0xa000, 0xa0ff) AM_RAM      // unknown... filled with 00's at boot time or when entering the service mode.
325327   AM_RANGE(0xcd00, 0xcdff) AM_RAM AM_SHARE("nvram")
326   AM_RANGE(0xf000, 0xf000) AM_READ_PORT("BITSW") AM_DEVWRITE_LEGACY("dac", wldarrow_dac_1_w)
328   AM_RANGE(0xf000, 0xf000) AM_READ_PORT("BSW") AM_DEVWRITE_LEGACY("dac", meyc8080_dac_1_w)
327329   AM_RANGE(0xf004, 0xf004) AM_READ_PORT("IN1") AM_WRITE(lights_1_w)
328330   AM_RANGE(0xf006, 0xf006) AM_READ_PORT("IN2") AM_WRITE(lights_2_w)
329331   AM_RANGE(0xf008, 0xf008) AM_WRITE(counters_w)
330   AM_RANGE(0xf00f, 0xf00f) AM_DEVWRITE_LEGACY("dac", wldarrow_dac_2_w)
331   AM_RANGE(0xf0f0, 0xf0f0) AM_DEVWRITE_LEGACY("dac", wldarrow_dac_3_w)
332   AM_RANGE(0xf0ff, 0xf0ff) AM_DEVWRITE_LEGACY("dac", wldarrow_dac_4_w)
332   AM_RANGE(0xf00f, 0xf00f) AM_DEVWRITE_LEGACY("dac", meyc8080_dac_2_w)
333   AM_RANGE(0xf0f0, 0xf0f0) AM_DEVWRITE_LEGACY("dac", meyc8080_dac_3_w)
334   AM_RANGE(0xf0ff, 0xf0ff) AM_DEVWRITE_LEGACY("dac", meyc8080_dac_4_w)
333335ADDRESS_MAP_END
334336
335337
r14982r14983
353355   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
354356   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
355357
356   PORT_START("BITSW")
357   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BITSWITCH:1")
358   PORT_START("BSW")
359   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BSW:1")
358360   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
359361   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
360   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BITSWITCH:2")
362   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BSW:2")
361363   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
362364   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
363   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BITSWITCH:3")
365   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BSW:3")
364366   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
365367   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
366   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BITSWITCH:4")
368   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BSW:4")
367369   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
368370   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
369   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) )   PORT_DIPLOCATION("BITSWITCH:5")
371   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) )   PORT_DIPLOCATION("BSW:5")
370372   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
371373   PORT_DIPSETTING(    0x10, DEF_STR( 1C_5C ) )
372   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BITSWITCH:6")
374   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BSW:6")
373375   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
374376   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
375   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BITSWITCH:7")
377   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BSW:7")
376378   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
377379   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
378   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BITSWITCH:8")
380   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BSW:8")
379381   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
380382   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
381383
r14982r14983
414416   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
415417   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
416418
417   PORT_START("BITSW")
418   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BITSWITCH:1")
419   PORT_START("BSW")
420   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BSW:1")
419421   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
420422   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
421   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BITSWITCH:2")
423   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BSW:2")
422424   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
423425   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
424   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BITSWITCH:3")
426   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BSW:3")
425427   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
426428   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
427   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BITSWITCH:4")
429   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BSW:4")
428430   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
429431   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
430   PORT_DIPNAME( 0x10, 0x00, "Bit Switch 5" )      PORT_DIPLOCATION("BITSWITCH:5")
432   PORT_DIPNAME( 0x10, 0x00, "Bit Switch 5" )      PORT_DIPLOCATION("BSW:5")
431433   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
432434   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
433   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BITSWITCH:6")
435   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BSW:6")
434436   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
435437   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
436   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BITSWITCH:7")
438   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BSW:7")
437439   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
438440   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
439   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BITSWITCH:8")
441   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BSW:8")
440442   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
441443   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
442444
r14982r14983
475477   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
476478   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
477479
478   PORT_START("BITSW")
479   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BITSWITCH:1")
480   PORT_START("BSW")
481   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BSW:1")
480482   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
481483   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
482   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BITSWITCH:2")
484   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BSW:2")
483485   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
484486   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
485   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BITSWITCH:3")
487   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BSW:3")
486488   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
487489   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
488   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BITSWITCH:4")
490   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BSW:4")
489491   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
490492   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
491   PORT_DIPNAME( 0x10, 0x00, "Bit Switch 5" )      PORT_DIPLOCATION("BITSWITCH:5")
493   PORT_DIPNAME( 0x10, 0x00, "Bit Switch 5" )      PORT_DIPLOCATION("BSW:5")
492494   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
493495   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
494   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BITSWITCH:6")
496   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BSW:6")
495497   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
496498   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
497   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BITSWITCH:7")
499   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BSW:7")
498500   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
499501   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
500   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BITSWITCH:8")
502   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BSW:8")
501503   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
502504   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
503505
r14982r14983
525527INPUT_PORTS_END
526528
527529
528static INPUT_PORTS_START( unkmeyco )
530static INPUT_PORTS_START( casbjack )
529531   PORT_START("IN0")
530532   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK )
531533   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1)
r14982r14983
536538   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
537539   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
538540
539   PORT_START("BITSW")
540   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BITSWITCH:1")
541   PORT_START("BSW")
542   PORT_DIPNAME( 0x01, 0x00, "Bit Switch 1" )      PORT_DIPLOCATION("BSW:1")
541543   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
542544   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
543   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BITSWITCH:2")
545   PORT_DIPNAME( 0x02, 0x00, "Bit Switch 2" )      PORT_DIPLOCATION("BSW:2")
544546   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
545547   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
546   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BITSWITCH:3")
548   PORT_DIPNAME( 0x04, 0x00, "Bit Switch 3" )      PORT_DIPLOCATION("BSW:3")
547549   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
548550   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
549   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BITSWITCH:4")
551   PORT_DIPNAME( 0x08, 0x00, "Bit Switch 4" )      PORT_DIPLOCATION("BSW:4")
550552   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
551553   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
552   PORT_DIPNAME( 0x10, 0x00, "Bit Switch 5" )      PORT_DIPLOCATION("BITSWITCH:5")
554   PORT_DIPNAME( 0x10, 0x00, "Bit Switch 5" )      PORT_DIPLOCATION("BSW:5")
553555   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
554556   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
555   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BITSWITCH:6")
557   PORT_DIPNAME( 0x20, 0x00, "Bit Switch 6" )      PORT_DIPLOCATION("BSW:6")
556558   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
557559   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
558   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BITSWITCH:7")
560   PORT_DIPNAME( 0x40, 0x00, "Bit Switch 7" )      PORT_DIPLOCATION("BSW:7")
559561   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
560562   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
561   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BITSWITCH:8")
563   PORT_DIPNAME( 0x80, 0x00, "Bit Switch 8" )      PORT_DIPLOCATION("BSW:8")
562564   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
563565   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
564566
r14982r14983
593595 *
594596 *************************************/
595597
596static MACHINE_CONFIG_START( wldarrow, wldarrow_state )
598static MACHINE_CONFIG_START( meyc8080, meyc8080_state )
597599
598600   /* basic machine hardware */
599601   MCFG_CPU_ADD("maincpu", I8080, XTAL_20MHz / 10) // divider guessed
600   MCFG_CPU_PROGRAM_MAP(wldarrow_map)
602   MCFG_CPU_PROGRAM_MAP(meyc8080_map)
601603
602604   MCFG_NVRAM_ADD_0FILL("nvram")
603605
r14982r14983
607609   MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1)
608610   MCFG_SCREEN_REFRESH_RATE(60)
609611   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
610   MCFG_SCREEN_UPDATE_STATIC(wldarrow)
612   MCFG_SCREEN_UPDATE_STATIC(meyc8080)
611613
612614   /* audio hardware */
613615   MCFG_SPEAKER_STANDARD_MONO("mono")
r14982r14983
730732   ROM_LOAD( "jk6_02-10.k3", 0x2800, 0x0800, CRC(72aee07f) SHA1(a6d6086f3a6181d5111d05ae779c3f7b363c7f14) )
731733ROM_END
732734
733ROM_START( unkmeyco )
735ROM_START( casbjack )
734736   ROM_REGION( 0x10000, "maincpu", ROMREGION_INVERT )
735737   ROM_LOAD( "k8", 0x0000, 0x0800, CRC(c6d8a2f7) SHA1(1fcd3ad72a29f832ffaf37edcb74e84e21909496) )
736738   ROM_LOAD( "k7", 0x0800, 0x0800, CRC(6e30e5ae) SHA1(980096adefce4d4d97607b22f56f3acf246986ed) )
r14982r14983
748750 *
749751 *************************************/
750752
751/*     YEAR  NAME       PARENT    MACHINE   INPUT      INIT  ROT    COMPANY              FULLNAME                                        FLAGS                                      LAYOUT  */
752GAMEL( 1982, wldarrow,  0,        wldarrow, wldarrow,  0,    ROT0, "Meyco Games, Inc.", "Wild Arrow (Standard V4.8)",                    GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_wldarrow  )
753GAMEL( 1984, mdrawpkr,  0,        wldarrow, mdrawpkr,  0,    ROT0, "Meyco Games, Inc.", "Draw Poker - Joker's Wild (Standard)",          GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_mdrawpkr  ) // year not shown, but it is in mdrawpkra
754GAMEL( 1984, mdrawpkra, mdrawpkr, wldarrow, mdrawpkra, 0,    ROT0, "Meyco Games, Inc.", "Draw Poker - Joker's Wild (02-11)",             GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_mdrawpkr  )
755GAMEL( 1983, unkmeyco,  0,        wldarrow, unkmeyco,  0,    ROT0, "Meyco Games, Inc.", "unknown Meyco blackjack game (Standard 00-05)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_meybjack  )
753/*     YEAR  NAME       PARENT    MACHINE   INPUT      INIT  ROT    COMPANY              FULLNAME                                    FLAGS                                      LAYOUT  */
754GAMEL( 1982, wldarrow,  0,        meyc8080, wldarrow,  0,    ROT0, "Meyco Games, Inc.", "Wild Arrow (color, Standard V4.8)",         GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_wldarrow  ) // B&W version not dumped yet
755GAMEL( 1984, mdrawpkr,  0,        meyc8080, mdrawpkr,  0,    ROT0, "Meyco Games, Inc.", "Draw Poker - Joker's Wild (Standard)",      GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_mdrawpkr  ) // year not shown, but it is in mdrawpkra
756GAMEL( 1984, mdrawpkra, mdrawpkr, meyc8080, mdrawpkra, 0,    ROT0, "Meyco Games, Inc.", "Draw Poker - Joker's Wild (02-11)",         GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_mdrawpkr  )
757GAMEL( 1983, casbjack,  0,        meyc8080, casbjack,  0,    ROT0, "Meyco Games, Inc.", "Casino Black Jack (color, Standard 00-05)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_meybjack  ) // B&W version not dumped yet
src/mame/drivers/amaticmg.c
r14982r14983
737737
738738
739739ROM_START( am_mg24 )
740   ROM_REGION( 0x40000, "maincpu", 0 )   /* encrypted program ROM...*/
740   ROM_REGION( 0x40000, "maincpu", ROMREGION_ERASE00 )
741
742   ROM_REGION( 0x40000, "mainprg", 0 )   /* encrypted program ROM...*/
741743   ROM_LOAD( "mgi_vger_3.9-i-8201.i6.bin", 0x00000, 0x40000, CRC(9ce159f7) SHA1(101c277d579a69cb03f879288b2cecf838cf1741) )
742744
743745   ROM_REGION( 0x180000, "gfx1", 0 )
r14982r14983
751753ROM_END
752754
753755ROM_START( am_mg3 )
754   ROM_REGION( 0x40000, "maincpu", 0 )   /* encrypted program ROM...*/
756   ROM_REGION( 0x40000, "maincpu", ROMREGION_ERASE00 )
757
758   ROM_REGION( 0x40000, "mainprg", 0 )   /* encrypted program ROM...*/
755759   ROM_LOAD( "mg_iii_vger_3.5-i-8205.bin", 0x00000, 0x40000, CRC(21d64029) SHA1(d5c3fde02833a96dd7a43481a489bfc4a5c9609d) )
756760
757761   ROM_REGION( 0x180000, "gfx1", 0 )
r14982r14983
768772*       Driver Initialization       *
769773************************************/
770774
775static void encf(UINT8 ciphertext, int address, UINT8& plaintext, int& newaddress)
776{
777   int aux = address & 0xfff;
778   aux = aux ^ (aux>>6);
779   aux = ((aux<<6) | (aux>>6)) & 0xfff;
780   UINT8 aux2 = BITSWAP8(aux, 9,10,4,1,6,0,7,3);
781   aux2 ^= aux2>>4;
782   aux2 = (aux2<<4) | (aux2>>4);
783   ciphertext ^= ciphertext<<4;
784   plaintext = (ciphertext<<4) | (ciphertext>>4);
785   plaintext ^= aux2;
786   newaddress = (address & ~0xfff) | aux;
787}
788
771789static DRIVER_INIT( amaticmg )
772790{
773791
774792}
775793
794static DRIVER_INIT( amaticmg3 )
795{
796   const int key1 = 0x426;
797   const int key2 = 0x55;
798   UINT8 plaintext;
799   int newaddress;
800   
801   UINT8 *src = machine.root_device().memregion("mainprg")->base();
802   UINT8 *dest = machine.root_device().memregion("maincpu")->base();
803   int len = machine.root_device().memregion("mainprg")->bytes();
804   
805   for (int i = 0; i < len; i++)
806   {
807      encf(src[i], i, plaintext, newaddress);
808      dest[newaddress^key1] = plaintext^key2;
809   }
810}
776811
812
777813/************************************
778814*           Game Drivers            *
779815************************************/
780816
781817/*    YEAR  NAME      PARENT  MACHINE   INPUT     INIT      ROT    COMPANY                FULLNAME                     FLAGS  */
782818GAME( 1996, am_uslot, 0,      amaticmg, amaticmg, amaticmg, ROT0, "Amatic Trading GmbH", "Amatic Unknown Slots Game",  GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_UNEMULATED_PROTECTION | GAME_NO_SOUND | GAME_NOT_WORKING )
783GAME( 2000, am_mg24,  0,      amaticmg3, amaticmg, amaticmg, ROT0, "Amatic Trading GmbH", "Multi Game I (V.Ger 2.4)",   GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_UNEMULATED_PROTECTION | GAME_NO_SOUND | GAME_NOT_WORKING )
784GAME( 2000, am_mg3,   0,      amaticmg3, amaticmg, amaticmg, ROT0, "Amatic Trading GmbH", "Multi Game III (V.Ger 3.5)", GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_UNEMULATED_PROTECTION | GAME_NO_SOUND | GAME_NOT_WORKING )
819GAME( 2000, am_mg24,  0,      amaticmg3, amaticmg, amaticmg3, ROT0, "Amatic Trading GmbH", "Multi Game I (V.Ger 2.4)",   GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_UNEMULATED_PROTECTION | GAME_NO_SOUND | GAME_NOT_WORKING )
820GAME( 2000, am_mg3,   0,      amaticmg3, amaticmg, amaticmg3, ROT0, "Amatic Trading GmbH", "Multi Game III (V.Ger 3.5)", GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_UNEMULATED_PROTECTION | GAME_NO_SOUND | GAME_NOT_WORKING )
src/mame/drivers/meyc8088.c
r0r14983
1/*
2
3Meyco 8088 based hardware
4
5significant chips: i8088 CPU, two i8155, ???
6
7*/
8
9#include "emu.h"
10#include "cpu/i86/i86.h"
11#include "machine/i8155.h"
12#include "sound/dac.h"
13
14class meyc8088_state : public driver_device
15{
16public:
17   meyc8088_state(const machine_config &mconfig, device_type type, const char *tag)
18      : driver_device(mconfig, type, tag) ,
19      m_vram(*this, "vram")
20   { }
21
22   required_shared_ptr<UINT8> m_vram;
23};
24
25
26/***************************************************************************
27
28  Video
29
30***************************************************************************/
31
32static SCREEN_UPDATE_IND16( meyc8088 )
33{
34   meyc8088_state *state = screen.machine().driver_data<meyc8088_state>();
35
36   for (int y = 0; y < 512; y++)
37   {
38      for (int x = 0; x < 64; x++)
39      {
40         UINT8 data = state->m_vram[y*64+x];
41         for (int i = 0; i < 8; i++)
42         {
43            bitmap.pix16(y, x << 3 | i) = (data << i & 0x80) ? 1 : 0;
44         }
45
46      }
47   }
48
49   return 0;
50}
51
52
53/***************************************************************************
54
55  I/O
56
57***************************************************************************/
58
59static ADDRESS_MAP_START( meyc8088_map, AS_PROGRAM, 8, meyc8088_state )
60   AM_RANGE(0x00000, 0x003ff) AM_RAM
61   AM_RANGE(0x00400, 0x007ff) AM_RAM
62   AM_RANGE(0x70000, 0x77fff) AM_RAM AM_SHARE("vram")
63//   AM_RANGE(0xb0000, 0xb0000) AM_NOP
64   AM_RANGE(0xb0800, 0xb0807) AM_DEVREADWRITE("i8155_0", i8155_device, io_r, io_w)
65//   AM_RANGE(0xb1000, 0xb1000) AM_NOP
66   AM_RANGE(0xb1800, 0xb1807) AM_DEVREADWRITE("i8155_1", i8155_device, io_r, io_w)
67//   AM_RANGE(0xb2000, 0xb2000) AM_NOP
68//   AM_RANGE(0xb3000, 0xb3000) AM_NOP
69//   AM_RANGE(0xb3800, 0xb3800) AM_NOP
70//   AM_RANGE(0xb4000, 0xb4000) AM_NOP
71//   AM_RANGE(0xb5000, 0xb5000) AM_NOP
72   AM_RANGE(0xfa000, 0xfffff) AM_ROM
73ADDRESS_MAP_END
74
75
76static WRITE8_DEVICE_HANDLER(meyc8088_i8155_a_w)
77{
78   logerror("i8155 Port A: %02X\n", data);
79}
80
81static WRITE8_DEVICE_HANDLER(meyc8088_i8155_b_w)
82{
83   logerror("i8155 Port B: %02X\n", data);
84}
85
86static WRITE8_DEVICE_HANDLER(meyc8088_i8155_c_w)
87{
88   logerror("i8155 Port C: %02X\n", data);
89}
90
91static WRITE_LINE_DEVICE_HANDLER(meyc8088_i8155_0_timer_out)
92{
93   //logerror("Timer 0 out %d\n", state);
94}
95
96static WRITE_LINE_DEVICE_HANDLER(meyc8088_i8155_1_timer_out)
97{
98   //logerror("Timer 1 out %d\n", state);
99}
100
101static const i8155_interface i8155_intf[2] =
102{
103   {
104      // all ports set to output
105      DEVCB_NULL,
106      DEVCB_HANDLER(meyc8088_i8155_a_w),
107      DEVCB_NULL,
108      DEVCB_HANDLER(meyc8088_i8155_b_w),
109      DEVCB_NULL,
110      DEVCB_HANDLER(meyc8088_i8155_c_w),
111      DEVCB_LINE(meyc8088_i8155_0_timer_out)
112   },
113   {
114      // all ports set to input
115      DEVCB_INPUT_PORT("IN0"),
116      DEVCB_NULL,
117      DEVCB_INPUT_PORT("IN1"),
118      DEVCB_NULL,
119      DEVCB_INPUT_PORT("IN2"),
120      DEVCB_NULL,
121      DEVCB_LINE(meyc8088_i8155_1_timer_out)
122   }
123};
124
125
126/***************************************************************************
127
128  Inputs
129
130***************************************************************************/
131
132static INPUT_PORTS_START( gldarrow )
133   PORT_START("IN0")
134   PORT_DIPNAME( 0x01, 0x01, "IN0 1" )
135   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
136   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
137   PORT_DIPNAME( 0x02, 0x02, "IN0 2" )
138   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
139   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
140   PORT_DIPNAME( 0x04, 0x04, "IN0 3" )
141   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
142   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
143   PORT_DIPNAME( 0x08, 0x08, "IN0 4" )
144   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
145   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
146   PORT_DIPNAME( 0x10, 0x10, "IN0 5" )
147   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
148   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
149   PORT_DIPNAME( 0x20, 0x20, "IN0 6" )
150   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
151   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
152   PORT_DIPNAME( 0x40, 0x40, "IN0 7" )
153   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
154   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
155   PORT_DIPNAME( 0x80, 0x80, "IN0 8" )
156   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
157   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
158
159   PORT_START("IN1")
160   PORT_DIPNAME( 0x01, 0x01, "IN1 1" )
161   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
162   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
163   PORT_DIPNAME( 0x02, 0x02, "IN1 2" )
164   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
165   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
166   PORT_DIPNAME( 0x04, 0x04, "IN1 3" )
167   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
168   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
169   PORT_DIPNAME( 0x08, 0x08, "IN1 4" )
170   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
171   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
172   PORT_DIPNAME( 0x10, 0x10, "IN1 5" )
173   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
174   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
175   PORT_DIPNAME( 0x20, 0x20, "IN1 6" )
176   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
177   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
178   PORT_DIPNAME( 0x40, 0x40, "IN1 7" )
179   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
180   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
181   PORT_DIPNAME( 0x80, 0x80, "IN1 8" )
182   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
183   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
184
185   PORT_START("IN2")
186   PORT_DIPNAME( 0x01, 0x01, "IN2 1" )
187   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
188   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
189   PORT_DIPNAME( 0x02, 0x02, "IN2 2" )
190   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
191   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
192   PORT_DIPNAME( 0x04, 0x04, "IN2 3" )
193   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
194   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
195   PORT_DIPNAME( 0x08, 0x08, "IN2 4" )
196   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
197   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
198   PORT_DIPNAME( 0x10, 0x10, "IN2 5" )
199   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
200   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
201   PORT_DIPNAME( 0x20, 0x20, "IN2 6" )
202   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
203   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
204   PORT_DIPNAME( 0x40, 0x40, "IN2 7" )
205   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
206   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
207   PORT_DIPNAME( 0x80, 0x80, "IN2 8" )
208   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
209   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
210INPUT_PORTS_END
211
212
213/***************************************************************************
214
215  Machine Config
216
217***************************************************************************/
218
219static MACHINE_CONFIG_START( meyc8088, meyc8088_state )
220
221   /* basic machine hardware */
222   MCFG_CPU_ADD("maincpu", I8088, 5000000)
223   MCFG_CPU_PROGRAM_MAP(meyc8088_map)
224
225   MCFG_I8155_ADD("i8155_0", 5000000, i8155_intf[0])
226   MCFG_I8155_ADD("i8155_1", 5000000, i8155_intf[1])
227
228   /* video hardware */
229   MCFG_SCREEN_ADD("screen", RASTER)
230   MCFG_SCREEN_REFRESH_RATE(60)
231   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
232   MCFG_SCREEN_SIZE(512,512)
233   MCFG_SCREEN_VISIBLE_AREA(0, 512-1, 0, 512-1)
234   MCFG_SCREEN_UPDATE_STATIC(meyc8088)
235
236   MCFG_PALETTE_LENGTH(8)
237
238MACHINE_CONFIG_END
239
240
241ROM_START( gldarrow )
242   ROM_REGION( 0x100000, "maincpu", 0 )
243   ROM_LOAD( "3.bin", 0x0fa000, 0x002000, CRC(a4acc6df) SHA1(b25f2cf8154932834100615e2e9c44ef47a15fea) )
244   ROM_LOAD( "2.bin", 0x0fc000, 0x002000, CRC(595e380d) SHA1(6f8e58f646106d33cb651d97ca6a1133f7b05373) )
245   ROM_LOAD( "1.bin", 0x0fe000, 0x002000, CRC(71bd0e39) SHA1(15345f5726cd33ecb1b2da05f2852b6cc3ac7747) )
246ROM_END
247
248
249GAME( 1984, gldarrow, 0,        meyc8088, gldarrow, 0, ROT0,  "Meyco Games, Inc.", "Golden Arrow", GAME_NOT_WORKING | GAME_NO_SOUND )
src/mame/drivers/bfm_sc4h.c
r14982r14983
246246   int i;
247247   int off = offset<<3;
248248 
249   // some games use this as a matrix port (luckb etc.)
249250   for (i=0; i<8; i++)
250251   {
251252      output_set_indexed_value("matrix", off+i, ((data & (1 << i)) != 0));
252253   }
253254 
254 
255   if (offset>=20)
256   {
257      offset-=20;
258      // todo, reorder to what our 7segs expect
259      UINT8 bf7segdata = BITSWAP8(data,7,6,5,4,3,2,1,0);
260      output_set_digit_value(offset, bf7segdata);
261 
262   }
263 
255   // others drive 7-segs with it..  so rendering it there as well in our debug layouts
256   
257   // todo: reorder properly!
258   UINT8 bf7segdata = BITSWAP8(data,7,6,5,4,3,2,1,0);
259   output_set_digit_value(offset, bf7segdata);
264260}
265261 
266262WRITE16_MEMBER(sc4_state::sc4_mem_w)
src/mame/drivers/bfm_sc4.c
r14982r14983
2264822648   // 95008423.bin          sc4goldw   Golden Winner (Bellfruit) (Scorpion 4)
2264922649   // Champion Chips (Bellfruit)
2265022650   ROM_LOAD( "95008558.bin", 0x0000, 0x100000, CRC(6c032de9) SHA1(3aed801f8b6f2d62fffa03054afd8ff1c3ff3ac3) )
22651   // Clever Clogs (Mazooma)
22652   ROM_LOAD( "95008361.bin", 0x0000, 0x0ff54f, CRC(d1cc7b58) SHA1(32328e0e56bbf65e91e32de8802edce38f0abc65) )
2265322651   // Costa Del Dosh (Bellfruit)
2265422652   ROM_LOAD( "95008420.bin", 0x0000, 0x100000, CRC(cce5f09a) SHA1(8b1f30eb1c48a3e3c6c403f28e97918ddac51033) )
2265522653   // Deal Or No Deal Red Hot (Bellfruit)
r14982r14983
2275422752GAME( 200?, sc4pstato   ,sc4pstat,   sc4, sc4, sc4, ROT0, "QPS","Paystation (V042) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
2275522753GAME( 200?, sc4pstatq   ,sc4pstat,   sc4, sc4, sc4, ROT0, "QPS","Paystation (V042) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
2275622754
22755const stepper_interface* sc4cvani_reel_configs[6] =
22756{
22757   &starpoint_interface_48step,
22758   &starpoint_interface_48step,
22759   &starpoint_interface_48step,
22760   0,
22761   &starpoint_interface_200step_reel,
22762   0,
22763};
2275722764
22765static DRIVER_INIT( sc4cvani )
22766{
22767   sc4_state *state = machine.driver_data<sc4_state>();
22768   DRIVER_INIT_CALL( sc4 );
22769   state->m_reel_setup = sc4cvani_reel_configs;
22770}
22771
2275822772// PR2052 CASHLVANIA         VANIASND           CASH'!'VANIA
22759GAME( 200?, sc4cvani   ,0,         sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22760GAME( 200?, sc4cvania   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
22761GAME( 200?, sc4cvanib   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )
22762GAME( 200?, sc4cvanic   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
22763GAME( 200?, sc4cvanid   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )
22764GAME( 200?, sc4cvanie   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL )
22765GAME( 200?, sc4cvanif   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
22766GAME( 200?, sc4cvanig   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )
22767GAME( 200?, sc4cvanih   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL )
22768GAME( 200?, sc4cvanii   ,sc4cvani,   sc4, sc4, sc4, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
22773GAME( 200?, sc4cvani   ,0,         sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22774GAME( 200?, sc4cvania   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
22775GAME( 200?, sc4cvanib   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )
22776GAME( 200?, sc4cvanic   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
22777GAME( 200?, sc4cvanid   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )
22778GAME( 200?, sc4cvanie   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL )
22779GAME( 200?, sc4cvanif   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
22780GAME( 200?, sc4cvanig   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )
22781GAME( 200?, sc4cvanih   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL )
22782GAME( 200?, sc4cvanii   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
2276922783
22784const stepper_interface* sc4cvclb_reel_configs[6] =
22785{
22786   &starpoint_interface_48step,
22787   &starpoint_interface_48step,
22788   &starpoint_interface_48step,
22789   &starpoint_interface_48step,
22790   0,
22791   &starpoint_interface_200step_reel,
22792};
2277022793
22794static DRIVER_INIT( sc4cvclb )
22795{
22796   sc4_state *state = machine.driver_data<sc4_state>();
22797   DRIVER_INIT_CALL( sc4 );
22798   state->m_reel_setup = sc4cvclb_reel_configs;
22799}
22800
2277122801// PRXXXX CLUBCASHLVANIA V1.0         CLUBVANIASND         CLUB  CASH!VANIA
22772GAME( 200?, sc4cvclb   ,0,         sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22773GAME( 200?, sc4cvclba   ,sc4cvclb,   sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
22774GAME( 200?, sc4cvclbc   ,sc4cvclb,   sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )
22775GAME( 200?, sc4cvclbd   ,sc4cvclb,   sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
22802GAME( 200?, sc4cvclb   ,0,         sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22803GAME( 200?, sc4cvclba   ,sc4cvclb,   sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
22804GAME( 200?, sc4cvclbc   ,sc4cvclb,   sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )
22805GAME( 200?, sc4cvclbd   ,sc4cvclb,   sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V1.0) (Qps) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
2277622806// PRXXXX CLUBCASHLVANIA V2.0         CLUBVANIASND         CLUB  CASH!VANIA
22777GAME( 200?, sc4cvclbb   ,sc4cvclb,   sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V2.0) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22778GAME( 200?, sc4cvclbe   ,sc4cvclb,   sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V2.0) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
22807GAME( 200?, sc4cvclbb   ,sc4cvclb,   sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V2.0) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22808GAME( 200?, sc4cvclbe   ,sc4cvclb,   sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V2.0) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
2277922809// PRXXXX CLUBCASHLVANIA 411         CLUBVANIASND         CLUB  CASH!VANIA
22780GAME( 200?, sc4cvclbf   ,sc4cvclb,   sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V411) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22781GAME( 200?, sc4cvclbg   ,sc4cvclb,   sc4, sc4, sc4, ROT0, "QPS","Cashvania Club (V411) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
22810GAME( 200?, sc4cvclbf   ,sc4cvclb,   sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V411) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
22811GAME( 200?, sc4cvclbg   ,sc4cvclb,   sc4, sc4, sc4cvclb, ROT0, "QPS","Cashvania Club (V411) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
2278222812
2278322813// PR6912 SOUTH PARK         PR6912 SOUTH PARK SOUNDS11            SOUTH PARK
2278422814GAME( 200?, sc4spark   ,0,         sc4, sc4, sc4, ROT0, "BFM","South Park (BFM) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
src/mame/drivers/actfancr.c
r14982r14983
6464WRITE8_MEMBER(actfancr_state::actfancr_buffer_spriteram_w)
6565{
6666
67   UINT8 *src = reinterpret_cast<UINT8 *>(machine().memory().shared("spriteram")->ptr());
67   UINT8 *src = reinterpret_cast<UINT8 *>(memshare("spriteram")->ptr());
6868   // copy to a 16-bit region for our sprite draw code too
6969   for (int i=0;i<0x800/2;i++)
7070   {
src/mame/drivers/cps3.c
r14982r14983
5454From late 1996 to 1999 Capcom developed another hardware platform to rival the CPS2 System and called
5555it CP SYSTEM III. Only 6 games were produced. Here's a detailed table of all known releases until now:
5656
57                                                           |--------------- Cart ----------------|  |--------------- CD ---------------|
58Game                                                 Year  Part #     Label      Region  CD  NO CD  Part #      Catalog #    Label        Revision
59---------------------------------------------------  ----  ---------  ---------  ------  --  -----  ----------  -----------  -----------  --------
60Warzard                                              1996  WZD96a00F  CP300000G  JAPAN   X          CAP-WZD000  CAP-WZD-3    CAP-WZD-3    961023
61Warzard                                                    WZD96a00F  CP300000G  JAPAN   X          CAP-WZD000  CAP-WZD-5    CAP-WZD-5    961121
62Red Earth                                                  WZD96aA0F  CP3000B0G  EUROPE  X          CAP-WZD0A0  CAP-WZD-3    CAP-WZD-3    961023
63Red Earth                                                  WZD96aA0F  CP3000B0G  EUROPE  X          CAP-WZD0A0  CAP-WZD-5    CAP-WZD-5    961121
64Red Earth                                                  WZD96aA0F  CP3000H0G  MEXICO* X          CAP-WZD0A0  CAP-WZD-3    CAP-WZD-3    961023
65Red Earth                                                  WZD96aA0F  CP3000H0G  MEXICO* X          CAP-WZD0A0  CAP-WZD-5    CAP-WZD-5    961121
66Red Earth                                                  WZD96aA0F  CP3000U0G  USA*    X          CAP-WZD0A0  CAP-WZD-3    CAP-WZD-3    961023
67Red Earth                                                  WZD96aA0F  CP3000U0G  USA*    X          CAP-WZD0A0  CAP-WZD-5    CAP-WZD-5    961121
57                                                           |--------------- Cart ----------------|  |-------------- CD ---------------|
58Game                                                 Year  Part #     Label      Region  CD  NO CD  Part #      Catalog #   Label        Revision
59---------------------------------------------------  ----  ---------  ---------  ------  --  -----  ----------  ----------  -----------  --------
60Warzard                                              1996  WZD96a00F  CP300000G  JAPAN   X          CAP-WZD000  CAP-WZD-3   CAP-WZD-3    961023
61Warzard                                                    WZD96a00F  CP300000G  JAPAN   X          CAP-WZD000  CAP-WZD-5   CAP-WZD-5    961121
62Red Earth                                                  WZD96aA0F  CP3000B0G  EUROPE  X          CAP-WZD0A0  CAP-WZD-3   CAP-WZD-3    961023
63Red Earth                                                  WZD96aA0F  CP3000B0G  EUROPE  X          CAP-WZD0A0  CAP-WZD-5   CAP-WZD-5    961121
64Red Earth                                                  WZD96aA0F  CP3000H0G  MEXICO* X          CAP-WZD0A0  CAP-WZD-3   CAP-WZD-3    961023
65Red Earth                                                  WZD96aA0F  CP3000H0G  MEXICO* X          CAP-WZD0A0  CAP-WZD-5   CAP-WZD-5    961121
66Red Earth                                                  WZD96aA0F  CP3000U0G  USA*    X          CAP-WZD0A0  CAP-WZD-3   CAP-WZD-3    961023
67Red Earth                                                  WZD96aA0F  CP3000U0G  USA*    X          CAP-WZD0A0  CAP-WZD-5   CAP-WZD-5    961121
6868
69Street Fighter III: New Generation                   1997  SF397200F  CP300000G  JAPAN   X          CAP-SF3000  CAP-SF3-3    CAP-SF3-3    970204
70Street Fighter III: New Generation                         SF397200F  CP300000G  JAPAN   X          CAP-SF3000  ?            ?            970312*
71Street Fighter III: New Generation                         SF397200F  CP300000G  JAPAN   X          CAP-SF3000  ?            ?            970403*
72Street Fighter III: New Generation                         SF3972A0F  CP3000C0G  ASIA        X                                            970204
73Street Fighter III: New Generation                         SF3972A0F  CP3000C0G  ASIA        X                                            970312*
74Street Fighter III: New Generation                         SF3972A0F  CP3000C0G  ASIA        X                                            970403*
75Street Fighter III: New Generation                         SF3972A0F  CP3000H0G  MEXICO  X          CAP-SF30A0  CAP-SF3-3    CAP-SF3-3    970204
76Street Fighter III: New Generation                         SF3972A0F  CP3000H0G  MEXICO  X          CAP-SF30A0  ?            ?            970312*
77Street Fighter III: New Generation                         SF3972A0F  CP3000H0G  MEXICO  X          CAP-SF30A0  ?            ?            970403*
78Street Fighter III: New Generation                         SF3972A0F  CP3000U0G  USA     X          CAP-SF30A0  CAP-SF3-3    CAP-SF3-3    970204
79Street Fighter III: New Generation                         SF3972A0F  CP3000U0G  USA     X          CAP-SF30A0  ?            ?            970312*
80Street Fighter III: New Generation                         SF3972A0F  CP3000U0G  USA     X          CAP-SF30A0  ?            ?            970403*
69Street Fighter III: New Generation                   1997  SF397200F  CP300000G  JAPAN   X          CAP-SF3000  CAP-SF3-3   CAP-SF3-3    970204
70Street Fighter III: New Generation                         SF397200F  CP300000G  JAPAN   X          CAP-SF3000  ?           ?            970312*
71Street Fighter III: New Generation                         SF397200F  CP300000G  JAPAN   X          CAP-SF3000  ?           ?            970403*
72Street Fighter III: New Generation                         SF3972A0F  CP3000C0G  ASIA        X                                           970204
73Street Fighter III: New Generation                         SF3972A0F  CP3000C0G  ASIA        X                                           970312*
74Street Fighter III: New Generation                         SF3972A0F  CP3000C0G  ASIA        X                                           970403*
75Street Fighter III: New Generation                         SF3972A0F  CP3000H0G  MEXICO  X          CAP-SF30A0  CAP-SF3-3   CAP-SF3-3    970204
76Street Fighter III: New Generation                         SF3972A0F  CP3000H0G  MEXICO  X          CAP-SF30A0  ?           ?            970312*
77Street Fighter III: New Generation                         SF3972A0F  CP3000H0G  MEXICO  X          CAP-SF30A0  ?           ?            970403*
78Street Fighter III: New Generation                         SF3972A0F  CP3000U0G  USA     X          CAP-SF30A0  CAP-SF3-3   CAP-SF3-3    970204
79Street Fighter III: New Generation                         SF3972A0F  CP3000U0G  USA     X          CAP-SF30A0  ?           ?            970312*
80Street Fighter III: New Generation                         SF3972A0F  CP3000U0G  USA     X          CAP-SF30A0  ?           ?            970403*
8181
82Street Fighter III 2nd Impact: Giant Attack          1997  3GA97a00F  CP300000G  JAPAN   X          CAP-3GA000  CAP-3GA000   CAP-3GA-1    970930
83Street Fighter III 2nd Impact: Giant Attack                3GA97a00F  CP300000G  JAPAN   X          CAP-3GA000  ?            ?            971016*
84Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000C0G  ASIA        X                                            970930
85Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000C0G  ASIA        X                                            971016*
86Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000U0G  USA     X          CAP-3GA0A0  CAP-3GA000   CAP-3GA-1    970930
87Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000U0G  USA     X          CAP-3GA0A0  ?            ?            971016*
82Street Fighter III 2nd Impact: Giant Attack          1997  3GA97a00F  CP300000G  JAPAN   X          CAP-3GA000  CAP-3GA000  CAP-3GA-1    970930
83Street Fighter III 2nd Impact: Giant Attack                3GA97a00F  CP300000G  JAPAN   X          CAP-3GA000  ?           ?            971016*
84Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000C0G  ASIA        X                                           970930
85Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000C0G  ASIA        X                                           971016*
86Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000U0G  USA     X          CAP-3GA0A0  CAP-3GA000  CAP-3GA-1    970930
87Street Fighter III 2nd Impact: Giant Attack                3GA97aA0F  CP3000U0G  USA     X          CAP-3GA0A0  ?           ?            971016*
8888
89JoJo no Kimyouna Bouken                              1998  JJK98c00F  CP300000G  JAPAN   X          CAP-JJK000  CAP-JJK000   CAP-JJK-140  981202
90JoJo no Kimyouna Bouken                                    JJK98c00F  CP300000G  JAPAN   X          CAP-JJK000  CAP-JJK-2    CAP-JJK-160  990108
91JoJo no Kimyouna Bouken                                    JJK98c00F  CP300000G  JAPAN   X          CAP-JJK000  CAP-JJK-3    CAP-JJK-161  990128
92JoJo's Venture                                             JJK98cA0F  CP3000C0G  ASIA        X                                            981202
93JoJo's Venture                                             JJK98cA0F  CP3000C0G  ASIA        X                                            990108
94JoJo's Venture                                             JJK98cA0F  CP3000C0G  ASIA        X                                            990128
95JoJo's Venture                                             JJK98cA0F  CP3000U0G  USA     X          CAP-JJK0A0  CAP-JJK000   CAP-JJK-140  981202
96JoJo's Venture                                             JJK98cA0F  CP3000U0G  USA     X          CAP-JJK0A0  CAP-JJK-2    CAP-JJK-160  990108
97JoJo's Venture                                             JJK98cA0F  CP3000U0G  USA     X          CAP-JJK0A0  CAP-JJK-3    CAP-JJK-161  990128
89JoJo no Kimyouna Bouken                              1998  JJK98c00F  CP300000G  JAPAN   X          CAP-JJK000  CAP-JJK000  CAP-JJK-140  981202
90JoJo no Kimyouna Bouken                                    JJK98c00F  CP300000G  JAPAN   X          CAP-JJK000  CAP-JJK-2   CAP-JJK-160  990108
91JoJo no Kimyouna Bouken                                    JJK98c00F  CP300000G  JAPAN   X          CAP-JJK000  CAP-JJK-3   CAP-JJK-161  990128
92JoJo's Venture                                             JJK98cA0F  CP3000C0G  ASIA        X                                           981202
93JoJo's Venture                                             JJK98cA0F  CP3000C0G  ASIA        X                                           990108
94JoJo's Venture                                             JJK98cA0F  CP3000C0G  ASIA        X                                           990128
95JoJo's Venture                                             JJK98cA0F  CP3000U0G  USA     X          CAP-JJK0A0  CAP-JJK000  CAP-JJK-140  981202
96JoJo's Venture                                             JJK98cA0F  CP3000U0G  USA     X          CAP-JJK0A0  CAP-JJK-2   CAP-JJK-160  990108
97JoJo's Venture                                             JJK98cA0F  CP3000U0G  USA     X          CAP-JJK0A0  CAP-JJK-3   CAP-JJK-161  990128
9898
99Street Fighter III 3rd Strike: Fight for the Future  1999  33S99400F  CP300000G  JAPAN*  X          CAP-33S000  CAP-33S-1    CAP-33S-1    990512
100Street Fighter III 3rd Strike: Fight for the Future        33S99400F  CP300000G  JAPAN*  X          CAP-33S000  CAP-33S-2    CAP-33S-2    990608
101Street Fighter III 3rd Strike: Fight for the Future        33S99400F  CP300000G  JAPAN       X                                            990512
102Street Fighter III 3rd Strike: Fight for the Future        33S99400F  CP300000G  JAPAN       X                                            990608
103Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000B0G  EUROPE  X          CAP-33S0A0  CAP-33S-1    CAP-33S-1    990512
104Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000B0G  EUROPE  X          CAP-33S0A0  CAP-33S-2    CAP-33S-2    990608
105Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*   X          CAP-33S0A0  CAP-33S-1    CAP-33S-1    990512
106Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*   X          CAP-33S0A0  CAP-33S-2    CAP-33S-2    990608
107Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*       X                                            990512
108Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*       X                                            990608
109Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000H0G  MEXICO* ?          CAP-33S0A0  CAP-33S-1    CAP-33S-1    990512
110Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000H0G  MEXICO* ?          CAP-33S0A0  CAP-33S-2    CAP-33S-2    990608
111Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000U0G  USA     X          CAP-33S0A0  CAP-33S-1    CAP-33S-1    990512
112Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000U0G  USA     X          CAP-33S0A0  CAP-33S-2    CAP-33S-2    990608
99Street Fighter III 3rd Strike: Fight for the Future  1999  33S99400F  CP300000G  JAPAN*  X          CAP-33S000  CAP-33S-1   CAP-33S-1    990512
100Street Fighter III 3rd Strike: Fight for the Future        33S99400F  CP300000G  JAPAN*  X          CAP-33S000  CAP-33S-2   CAP-33S-2    990608
101Street Fighter III 3rd Strike: Fight for the Future        33S99400F  CP300000G  JAPAN       X                                           990512
102Street Fighter III 3rd Strike: Fight for the Future        33S99400F  CP300000G  JAPAN       X                                           990608
103Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000B0G  EUROPE  X          CAP-33S0A0  CAP-33S-1   CAP-33S-1    990512
104Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000B0G  EUROPE  X          CAP-33S0A0  CAP-33S-2   CAP-33S-2    990608
105Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*   X          CAP-33S0A0  CAP-33S-1   CAP-33S-1    990512
106Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*   X          CAP-33S0A0  CAP-33S-2   CAP-33S-2    990608
107Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*       X                                           990512
108Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000C0G  ASIA*       X                                           990608
109Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000H0G  MEXICO* ?          CAP-33S0A0  CAP-33S-1   CAP-33S-1    990512
110Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000H0G  MEXICO* ?          CAP-33S0A0  CAP-33S-2   CAP-33S-2    990608
111Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000U0G  USA     X          CAP-33S0A0  CAP-33S-1   CAP-33S-1    990512
112Street Fighter III 3rd Strike: Fight for the Future        33S994A0F  CP3000U0G  USA     X          CAP-33S0A0  CAP-33S-2   CAP-33S-2    990608
113113
114JoJo no Kimyouna Bouken: Miraie no Isan              1999  JJM99900F  CP300000G  JAPAN   X          CAP-JJM000  CAP-JJM-0    CAP-JJM-110  990913
115JoJo no Kimyouna Bouken: Miraie no Isan                    JJM99900F  CP300000G  JAPAN   X          CAP-JJM000  CAP-JJM-120  CAP-JJM-120  990927
116JoJo no Kimyouna Bouken: Miraie no Isan                    JJM99900F  CP300000G  JAPAN       X                                            990913
117JoJo no Kimyouna Bouken: Miraie no Isan                    JJM99900F  CP300000G  JAPAN       X                                            990927
118JoJo's Bizarre Adventure                                   JJM999A0F  CP3000B0G  EUROPE      X                                            990913
119JoJo's Bizarre Adventure                                   JJM999A0F  CP3000B0G  EUROPE      X                                            990927
114JoJo no Kimyouna Bouken: Miraie no Isan              1999  JJM99900F  CP300000G  JAPAN   X          CAP-JJM000  CAP-JJM-0   CAP-JJM-110  990913
115JoJo no Kimyouna Bouken: Miraie no Isan                    JJM99900F  CP300000G  JAPAN   X          CAP-JJM000  CAP-JJM-1   CAP-JJM-120  990927
116JoJo no Kimyouna Bouken: Miraie no Isan                    JJM99900F  CP300000G  JAPAN       X                                           990913
117JoJo no Kimyouna Bouken: Miraie no Isan                    JJM99900F  CP300000G  JAPAN       X                                           990927
118JoJo's Bizarre Adventure                                   JJM999A0F  CP3000B0G  EUROPE      X                                           990913
119JoJo's Bizarre Adventure                                   JJM999A0F  CP3000B0G  EUROPE      X                                           990927
120120
121121* NOT DUMPED but known to exist
122122
r14982r14983
29612961   ROM_REGION( 0x200000, "simm5.7", 0 ) ROM_LOAD( "jojoba-simm5.7", 0x00000, 0x200000, CRC(8c8be520) SHA1(c461f3f76a83592b36b29afb316679a7c8972404) ) \
29622962
29632963#define JOJOBA_990927_CDROM \
2964   DISK_REGION( "cdrom" ) DISK_IMAGE_READONLY( "cap-jjm-120", 0, SHA1(8628d3fa555fbd5f4121082e925c1834b76c5e65) ) \
2964   DISK_REGION( "cdrom" ) DISK_IMAGE_READONLY( "cap-jjm-1", 0, SHA1(8628d3fa555fbd5f4121082e925c1834b76c5e65) ) \
29652965
29662966#define JOJOBA_990913_FLASH \
29672967   ROM_REGION( 0x200000, "simm1.0", 0 ) ROM_LOAD( "jojoba(__990913)-simm1.0", 0x00000, 0x200000, CRC(76976231) SHA1(90adde7e5983ec6a4e02789d5cefe9e85c9c52d5) ) \
src/mame/drivers/segac2.c
r14982r14983
111111static MACHINE_RESET( segac2 )
112112{
113113   segac2_state *state = machine.driver_data<segac2_state>();
114   megadrive_ram = reinterpret_cast<UINT16 *>(machine.memory().shared("nvram")->ptr());
114   megadrive_ram = reinterpret_cast<UINT16 *>(state->memshare("nvram")->ptr());
115115
116116   /* set up interrupts and such */
117117   MACHINE_RESET_CALL(megadriv);
src/emu/rendlay.c
r14982r14983
482482         m_maxstate = 262143;
483483      if (newcomp.m_type == component::CTYPE_DOTMATRIX)
484484         m_maxstate = 255;
485      if (newcomp.m_type == component::CTYPE_SIMPLECOUNTER)
486      {
487         m_maxstate = xml_get_attribute_int_with_subst(machine, *compnode, "maxstate", 999);
488      }
485489   }
486490
487491   // determine the scale/offset for normalization
r14982r14983
632636   else if (strcmp(compnode.name, "dotmatrix") == 0)
633637      m_type = CTYPE_DOTMATRIX;
634638
639   // simplecounter nodes
640   else if (strcmp(compnode.name, "simplecounter") == 0)
641   {
642      m_type = CTYPE_SIMPLECOUNTER;
643      m_digits = xml_get_attribute_int_with_subst(machine, compnode, "digits", 2);
644   }
645
635646   // led7seg nodes
636647   else if (strcmp(compnode.name, "led7seg") == 0)
637648      m_type = CTYPE_LED7SEG;
r14982r14983
729740         draw_dotmatrix(dest, bounds, state);
730741         break;
731742
743      case CTYPE_SIMPLECOUNTER:
744         draw_simplecounter(machine, dest, bounds, state);
745         break;
746
732747      default:
733748         throw emu_fatalerror("Unknown component type requested draw()");
734749   }
r14982r14983
840855   render_font *font = machine.render().font_alloc("default");
841856   float aspect = 1.0f;
842857   INT32 width;
858
859
843860   while (1)
844861   {
845862      width = font->string_width(bounds.height(), aspect, m_string);
r14982r14983
848865      aspect *= 0.9f;
849866   }
850867
868
851869   // get alignment
852870   INT32 curx;
853871   switch (m_textalign)
r14982r14983
914932   machine.render().font_free(font);
915933}
916934
935void layout_element::component::draw_simplecounter(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state)
936{
937   char temp[256];
938   sprintf(temp, "%0*d", m_digits, state);
939   m_string = astring(temp);
940   draw_text(machine, dest, bounds);
941}
917942
943
918944//-------------------------------------------------
919945//  load_bitmap - load a PNG file with artwork for
920946//  a component
src/emu/rendlay.h
r14982r14983
121121         CTYPE_LED14SEGSC,
122122         CTYPE_LED16SEGSC,
123123         CTYPE_DOTMATRIX,
124         CTYPE_SIMPLECOUNTER,
124125         CTYPE_MAX
125126      };
126127
r14982r14983
128129      void draw_rect(bitmap_argb32 &dest, const rectangle &bounds);
129130      void draw_disk(bitmap_argb32 &dest, const rectangle &bounds);
130131      void draw_text(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds);
132      void draw_simplecounter(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state);
131133      void load_bitmap();
132134      void draw_led7seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
133135      void draw_led14seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
r14982r14983
152154      render_bounds      m_bounds;      // bounds of the element
153155      render_color      m_color;      // color of the element
154156      astring            m_string;      // string for text components
157      int               m_digits;      // number of digits for simple counters
155158      int               m_textalign;   // text alignment to box
156159      bitmap_argb32      m_bitmap;      // source bitmap for images
157160      astring            m_dirname;      // directory name of image file (for lazy loading)
src/emu/sound/spu.c
r14982r14983
30903090
30913091void spu_device::dma_read( UINT32 n_address, INT32 n_size )
30923092{
3093   UINT8 *psxram = (UINT8 *)machine().memory().shared("share1")->ptr();
3093   UINT8 *psxram = (UINT8 *)machine().root_device().memshare("share1")->ptr();
30943094
30953095   start_dma(psxram + n_address, false, n_size*4);
30963096}
30973097
30983098void spu_device::dma_write( UINT32 n_address, INT32 n_size )
30993099{
3100   UINT8 *psxram = (UINT8 *)machine().memory().shared("share1")->ptr();
3100   UINT8 *psxram = (UINT8 *)machine().root_device().memshare("share1")->ptr();
31013101
31023102//  printf("SPU DMA write from %x, size %x\n", n_address, n_size);
31033103
src/emu/ioport.c
r14982r14983
48354835{
48364836   astring fulltag;
48374837   device.subtag(fulltag, tag);
4838mame_printf_verbose("ioport '%s' created\n", fulltag.cstr());
48394838   return &portlist.append(fulltag, *global_alloc(input_port_config(device, fulltag)));
48404839}
48414840
src/emu/device.c
r14982r14983
130130      m_tag.cpy((owner->owner() == NULL) ? "" : owner->tag()).cat(":").cat(tag);
131131   else
132132      m_tag.cpy(":");
133   mame_printf_verbose("device '%s' created\n", this->tag());
134133   static_set_clock(*this, clock);
135134}
136135
r14982r14983
171170      m_tag.cpy((owner->owner() == NULL) ? "" : owner->tag()).cat(":").cat(tag);
172171   else
173172      m_tag.cpy(":");
174   mame_printf_verbose("device '%s' created\n", this->tag());
175173   static_set_clock(*this, clock);
176174}
177175
r14982r14983
203201
204202
205203//-------------------------------------------------
206//  memregion - return a pointer to the memory
204//  memshare - return a pointer to the memory share
205//  info for a given share
206//-------------------------------------------------
207
208memory_share *device_t::memshare(const char *_tag) const
209{
210   // safety first
211   if (this == NULL)
212      return NULL;
213
214   // build a fully-qualified name and look it up
215   astring fullpath;
216   return machine().memory().shared(subtag(fullpath, _tag));
217}
218
219
220//-------------------------------------------------
221//  membank - return a pointer to the memory
207222//  bank info for a given bank
208223//-------------------------------------------------
209224
r14982r14983
724739
725740   // if we got a match, add to the fast map
726741   if (curdevice != NULL)
727   {
728742      m_device_map.add(tag, curdevice);
729      mame_printf_verbose("device '%s' adding mapping for '%s' => '%s'\n", this->tag(), tag, fulltag.cstr());
730   }
731743   return curdevice;
732744}
733745
r14982r14983
887899
888900void *device_t::finder_base::find_memory(UINT8 width, size_t &bytes, bool required)
889901{
890   memory_share *share = m_base.machine().memory().shared(m_base, m_tag);
902   // look up the share and return NULL if not found
903   memory_share *share = m_base.memshare(m_tag);
891904   if (share == NULL)
892   {
893      if (required)
894         mame_printf_error("Shared ptr '%s' not found\n", m_tag);
895905      return NULL;
896   }
906   
907   // check the width and warn if not correct
897908   if (width != 0 && share->width() != width)
898909   {
899      if (required)
900         mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width);
910      mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width);
901911      return NULL;
902912   }
913   
914   // return results
903915   bytes = share->bytes();
904916   return share->ptr();
905917}
906918
907919
920//-------------------------------------------------
921//  report_missing - report missing objects and
922//   return true if it's ok
923//-------------------------------------------------
924
925bool device_t::finder_base::report_missing(bool found, const char *objname, bool required)
926{
927   // just pass through in the found case
928   if (found)
929      return true;
930   
931   // otherwise, report
932   if (required)
933      mame_printf_error("Required %s '%s' not found\n", objname, m_tag);
934   else
935      mame_printf_verbose("Optional %s '%s' not found\n", objname, m_tag);
936   return !required;
937}
938
939
908940//**************************************************************************
909941//  LIVE DEVICE INTERFACES
910942//**************************************************************************
src/emu/device.h
r14982r14983
184184   astring &subtag(astring &dest, const char *tag) const;
185185   astring &siblingtag(astring &dest, const char *tag) const { return (this != NULL && m_owner != NULL) ? m_owner->subtag(dest, tag) : dest.cpy(tag); }
186186   memory_region *memregion(const char *tag) const;
187   memory_share *memshare(const char *tag) const;
187188   memory_bank *membank(const char *tag) const;
188189   device_t *subdevice(const char *tag) const;
189190   device_t *siblingdevice(const char *tag) const;
r14982r14983
230231protected:
231232   // internal helper classes (defined below)
232233   class finder_base;
234   template<class _ObjectClass> class object_finder_base;
233235   template<class _DeviceClass, bool _Required> class device_finder;
234236   template<class _DeviceClass> class optional_device;
235237   template<class _DeviceClass> class required_device;
238   template<bool _Required> class memory_region_finder;
239   class optional_memory_region;
240   class required_memory_region;
241   template<bool _Required> class memory_bank_finder;
242   class optional_memory_bank;
243   class required_memory_bank;
236244   template<typename _PointerType, bool _Required> class shared_ptr_finder;
237245   template<typename _PointerType> class optional_shared_ptr;
238246   template<typename _PointerType> class required_shared_ptr;
r14982r14983
337345protected:
338346   // helpers
339347   void *find_memory(UINT8 width, size_t &bytes, bool required);
348   bool report_missing(bool found, const char *objname, bool required);
340349
341350   // internal state
342351   finder_base *m_next;
r14982r14983
345354};
346355
347356
348// ======================> device_finder
357// ======================> object_finder_base
349358
350// device finder template
351template<class _DeviceClass, bool _Required>
352class device_t::device_finder : public device_t::finder_base
359// helper class to find objects of a particular type
360template<class _ObjectClass>
361class device_t::object_finder_base : public device_t::finder_base
353362{
354363public:
355364   // construction/destruction
356   device_finder(device_t &base, const char *tag)
365   object_finder_base(device_t &base, const char *tag)
357366      : finder_base(base, tag),
358        m_target(0) { }
367        m_target(NULL) { }
359368
360369   // operators to make use transparent
361   operator _DeviceClass *() { return m_target; }
362   operator _DeviceClass *() const { return m_target; }
363   _DeviceClass *operator->() { assert(m_target != NULL); return m_target; }
370   operator _ObjectClass *() const { return m_target; }
371   _ObjectClass *operator->() const { assert(m_target != NULL); return m_target; }
364372
365373   // getter for explicit fetching
366   _DeviceClass *target() const { return m_target; }
374   _ObjectClass *target() const { return m_target; }
367375
368376   // setter for setting the object
369   void set_target(_DeviceClass *target) { m_target = target; }
377   void set_target(_ObjectClass *target) { m_target = target; }
370378
379protected:
380   // internal state
381   _ObjectClass *m_target;
382};
383
384
385// ======================> device_finder
386
387// device finder template
388template<class _DeviceClass, bool _Required>
389class device_t::device_finder : public device_t::object_finder_base<_DeviceClass>
390{
391public:
392   // construction/destruction
393   device_finder(device_t &base, const char *tag)
394      : object_finder_base<_DeviceClass>(base, tag) { }
395
371396   // finder
372397   virtual bool findit()
373398   {
374      void mame_printf_warning(const char *format, ...) ATTR_PRINTF(1,2);
375      void mame_printf_error(const char *format, ...) ATTR_PRINTF(1,2);
376      device_t *device = m_base.subdevice(m_tag);
377      if (_Required && device == NULL)
378         mame_printf_error("Unable to find required device '%s'\n", this->m_tag);
379      m_target = dynamic_cast<_DeviceClass *>(device);
380      if (device != NULL && m_target == NULL)
381         mame_printf_warning("Device '%s' found but is of the incorrect type\n", m_tag);
382      return (!_Required || m_target != NULL);
399      device_t *device = this->m_base.subdevice(this->m_tag);
400      this->m_target = dynamic_cast<_DeviceClass *>(device);
401      if (device != NULL && this->m_target == NULL)
402      {
403         void mame_printf_warning(const char *format, ...) ATTR_PRINTF(1,2);
404         mame_printf_warning("Device '%s' found but is of incorrect type\n", this->m_tag);
405      }
406      return this->report_missing(this->m_target != NULL, "device", _Required);
383407   }
384
385protected:
386   // internal state
387   _DeviceClass *m_target;
388408};
389409
390410// optional device finder
r14982r14983
404424};
405425
406426
427// ======================> memregion_finder
428
429// device finder template
430template<bool _Required>
431class device_t::memory_region_finder : public device_t::object_finder_base<memory_region>
432{
433public:
434   // construction/destruction
435   memory_region_finder(device_t &base, const char *tag)
436      : object_finder_base(base, tag) { }
437
438   // finder
439   virtual bool findit()
440   {
441      m_target = m_base.memregion(m_tag);
442      return this->report_missing(m_target != NULL, "memory region", _Required);
443   }
444};
445
446// optional device finder
447class device_t::optional_memory_region : public device_t::memory_region_finder<false>
448{
449public:
450   optional_memory_region(device_t &base, const char *tag) : memory_region_finder<false>(base, tag) { }
451};
452
453// required devices are similar but throw an error if they are not found
454class device_t::required_memory_region : public device_t::memory_region_finder<true>
455{
456public:
457   required_memory_region(device_t &base, const char *tag) : memory_region_finder<true>(base, tag) { }
458};
459
460
461// ======================> memory_bank_finder
462
463// device finder template
464template<bool _Required>
465class device_t::memory_bank_finder : public device_t::object_finder_base<memory_bank>
466{
467public:
468   // construction/destruction
469   memory_bank_finder(device_t &base, const char *tag)
470      : object_finder_base(base, tag) { }
471
472   // finder
473   virtual bool findit()
474   {
475      m_target = m_base.membank(m_tag);
476      return this->report_missing(m_target != NULL, "memory bank", _Required);
477   }
478};
479
480// optional device finder
481class device_t::optional_memory_bank : public device_t::memory_bank_finder<false>
482{
483public:
484   optional_memory_bank(device_t &base, const char *tag) : memory_bank_finder<false>(base, tag) { }
485};
486
487// required devices are similar but throw an error if they are not found
488class device_t::required_memory_bank : public device_t::memory_bank_finder<true>
489{
490public:
491   required_memory_bank(device_t &base, const char *tag) : memory_bank_finder<true>(base, tag) { }
492};
493
494
407495// ======================> shared_ptr_finder
408496
409497// shared pointer finder template
410498template<typename _PointerType, bool _Required>
411class device_t::shared_ptr_finder : public device_t::finder_base
499class device_t::shared_ptr_finder : public device_t::object_finder_base<_PointerType>
412500{
413501public:
414502   // construction/destruction
415503   shared_ptr_finder(device_t &base, const char *tag, UINT8 width = sizeof(_PointerType) * 8)
416      : finder_base(base, tag),
417        m_target(0),
504      : object_finder_base<_PointerType>(base, tag),
418505        m_bytes(0),
419506        m_allocated(false),
420507        m_width(width) { }
421508
422   virtual ~shared_ptr_finder() { if (m_allocated) global_free(m_target); }
509   virtual ~shared_ptr_finder() { if (m_allocated) global_free(this->m_target); }
423510
424511   // operators to make use transparent
425   operator _PointerType *() const { return m_target; }
426   _PointerType operator[](int index) const { return m_target[index]; }
427   _PointerType &operator[](int index) { return m_target[index]; }
428   _PointerType *operator->() { return m_target; }
512   _PointerType operator[](int index) const { return this->m_target[index]; }
513   _PointerType &operator[](int index) { return this->m_target[index]; }
429514
430515   // getter for explicit fetching
431   _PointerType *target() const { return m_target; }
432516   UINT32 bytes() const { return m_bytes; }
433517
434518   // setter for setting the object
435   void set_target(_PointerType *target, size_t bytes) { m_target = target; m_bytes = bytes; }
519   void set_target(_PointerType *target, size_t bytes) { this->m_target = target; m_bytes = bytes; }
436520
437521   // dynamic allocation of a shared pointer
438522   void allocate(UINT32 entries)
439523   {
440524      assert(!m_allocated);
441525      m_allocated = true;
442      m_target = global_alloc_array_clear(_PointerType, entries);
526      this->m_target = global_alloc_array_clear(_PointerType, entries);
443527      m_bytes = entries * sizeof(_PointerType);
444      m_base.save_pointer(m_target, m_tag, entries);
528      this->m_base.save_pointer(this->m_target, this->m_tag, entries);
445529   }
446530
447531   // finder
448   virtual bool findit() { m_target = reinterpret_cast<_PointerType *>(find_memory(m_width, m_bytes, _Required)); return (!_Required || m_target != NULL); }
532   virtual bool findit()
533   {
534      this->m_target = reinterpret_cast<_PointerType *>(this->find_memory(m_width, m_bytes, _Required));
535      return this->report_missing(this->m_target != NULL, "shared pointer", _Required);
536   }
449537
450538protected:
451539   // internal state
452   _PointerType *m_target;
453540   size_t m_bytes;
454541   bool m_allocated;
455542   UINT8 m_width;
src/emu/memory.c
r14982r14983
15611561
15621562
15631563//-------------------------------------------------
1564//  shared - get a pointer to a shared memory
1565//  region by tag
1566//-------------------------------------------------
1567
1568memory_share *memory_manager::shared(const char *tag)
1569{
1570   return shared(machine().root_device(), tag);
1571}
1572
1573memory_share *memory_manager::shared(device_t &device, const char *tag)
1574{
1575   astring fulltag;
1576   return m_sharelist.find(device.subtag(fulltag, tag).cstr());
1577}
1578
1579
1580//-------------------------------------------------
15811564//  dump - dump the internal memory tables to the
15821565//  given file
15831566//-------------------------------------------------
src/emu/memory.h
r14982r14983
816816   address_space *first_space() const { return m_spacelist.first(); }
817817   memory_region *first_region() const { return m_regionlist.first(); }
818818
819   // get a pointer to a shared memory region by tag
820   memory_share *shared(const char *tag);
821   memory_share *shared(device_t &device, const char *tag);
822
823819   // dump the internal memory tables to the given file
824820   void dump(FILE *file);
825821
r14982r14983
835831   memory_bank *first_bank() const { return m_banklist.first(); }
836832   memory_bank *bank(const char *tag) const { return m_bankmap.find(tag); }
837833   memory_region *region(const char *tag) { return m_regionlist.find(tag); }
834   memory_share *shared(const char *tag) { return m_sharelist.find(tag); }
838835   void bank_reattach();
839836
840837   // internal state
src/emu/machine/nvram.c
r14982r14983
187187   // find our shared pointer with the target RAM
188188   if (m_base == NULL)
189189   {
190      memory_share *share = machine().memory().shared(*owner(), tag());
190      memory_share *share = owner()->memshare(tag());
191191      if (share == NULL)
192192         throw emu_fatalerror("NVRAM device '%s' has no corresponding AM_SHARE region", tag());
193193      m_base = share->ptr();
src/emu/machine/i8155.c
r14982r14983
2828//  MACROS / CONSTANTS
2929//**************************************************************************
3030
31#define LOG 1
31#define LOG
3232
3333enum
3434{
src/mess/drivers/psx.c
r14982r14983
662662
663663static void cd_dma_read( psxcd_device *psxcd, UINT32 n_address, INT32 n_size )
664664{
665   UINT8 *psxram = (UINT8 *)psxcd->machine().memory().shared("share1")->ptr();
665   UINT8 *psxram = (UINT8 *)psxcd->machine().root_device().memshare("share1")->ptr();
666666
667667   psxcd->start_dma(psxram + n_address, n_size*4);
668668}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team