Previous 15994 Revisions Next

r6234 Sunday 1st November, 2009 at 02:37:13 UTC by Nathan Woods
Updated to MAME 0.135 core
[ROOT]whatsnew.txt
[docs]messnew.txt
[src/emu]attotime.h
[src/emu/cpu/dsp56k]dsp56ops.c
[src/emu/cpu/tms32010]32010dsm.c
[src/emu/cpu/z180]z180.c
[src/emu/cpu/z80]z80.c
[src/mame]mame.mak mamedriv.c
[src/mame/audio]trackfld.c
[src/mame/drivers]cps2.c cvs.c dday.c ddenlovr.c galaxold.c galdrvr.c goldstar.c hyperspt.c kaneko16.c legionna.c megatech.c metro.c namcofl.c namconb1.c naomi.c pbaction.c pcat_dyn.c* polepos.c quasar.c raiden2.c sbrkout.c seattle.c taitogn.c trackfld.c vroulet.c zn.c
[src/mame/includes]cvs.h legionna.h trackfld.h
[src/mame/machine]cps2crpt.c naomibd.c seicop.c seicop.h slikshot.c
[src/mame/video]legionna.c toaplan2.c
[src/tools]chdman.c jedutil.c ldresample.c ldverify.c regrep.c split.c src2html.c srcclean.c tools.mak unidasm.c

src/mame/audio/trackfld.c
r6233r6234
11#include "driver.h"
22#include "sound/vlm5030.h"
3#include "sound/msm5205.h"
43#include "sound/sn76496.h"
54#include "includes/trackfld.h"
65
r6233r6234
5554{
5655    UINT32 clock = cpu_get_total_cycles(space->cpu) / TIMER_RATE;
5756
58    return (clock & 0x3) | (vlm5030_bsy(devtag_get_device(space->machine, "vlm"))? 0x04 : 0);
57   if (devtag_get_device(space->machine, "vlm"))
58   {
59      return (clock & 0x3) | (vlm5030_bsy(devtag_get_device(space->machine, "vlm"))? 0x04 : 0);
60   }
61   else
62   {
63      return (clock & 0x3);
64   }
5965}
6066
6167WRITE8_DEVICE_HANDLER( hyperspt_sound_w )
src/mame/machine/naomibd.c
r6233r6234
10251025         v->memory = (UINT8 *)memory_region(device->machine, config->regiontag);
10261026         v->gdromchd = get_disk_handle(device->machine, config->gdromregiontag);
10271027         v->picdata = (UINT8 *)memory_region(device->machine, config->picregiontag);
1028         load_rom_gdrom(device->machine, v);
1028         if (v->memory != NULL && v->gdromchd != NULL && v->picdata != NULL)
1029            load_rom_gdrom(device->machine, v);
10291030         break;
10301031
10311032      default:
src/mame/machine/slikshot.c
r6233r6234
539539
540540VIDEO_START( slikshot )
541541{
542   VIDEO_START_CALL( itech8 );
543
542544   z80_ctrl = 0;
543545   z80_port_val = 0;
544546   z80_clear_to_send = 0;
src/mame/machine/cps2crpt.c
r6233r6234
804804   { "dstlku",   { 0x1e80ebf0,0x10227119 }, 0x100000 },   // 0838 0000 6160  btst    #0,$6160
805805   { "dstlkur1", { 0x1e80ebf0,0x10227119 }, 0x100000 },   // 0838 0000 6160  btst    #0,$6160
806806   { "dstlka",   { 0x205d8398,0x06221971 }, 0x100000 },   // 0838 0000 6160  btst    #0,$6160
807   { "dstlkh",   { 0x22463efe,0x011169aa }, 0x100000 },   // 0838 0000 6160  btst    #0,$6160
807808   { "vampj",    { 0xefcb0804,0x026819ae }, 0x100000 },   // 0838 0000 6160  btst    #0,$6160
808809   { "vampja",   { 0xefcb0804,0x026819ae }, 0x100000 },   // 0838 0000 6160  btst    #0,$6160
809810   { "vampjr1",  { 0xefcb0804,0x026819ae }, 0x100000 },   // 0838 0000 6160  btst    #0,$6160
src/mame/machine/seicop.c
r6233r6234
4444  to do:
4545  clean it up, consolidate code, make it work!
4646
47  Protection information
48
49ALL games using COPX-D/D2 upload a series of command tables, using the following upload pattern.
50This happens ONCE at startup.
51
52Each table is 8 words long, and the table upload offsets aren't always in sequential order, as
53you can see from this example (cupsocs) it uploads in the following order
54
5500 - 07, 08 - 0f, 10 - 17, 18 - 1f, 28 - 2f, 60 - 67, 80 - 87, 88 - 8f
5690 - 97, 98 - 9f, 20 - 27, 30 - 37, 38 - 3f, 40 - 47, 48 - 4f, 68 - 6f
57c0 - c7, a0 - a7, a8 - af, b0 - b7, b8 - bf, c8 - cf, d0 - d7, d8 - df
58e0 - e7, e8 - ef, 50 - 57, 58 - 5f, 78 - 7f, f0 - f7
59
60table data is never overwritten, and in this case no data is uploaded
61in the 70-77 or f8 - ff region.
62
63It is assumed that the data written before each part of the table is associated
64with that table.
65
66000620:  write data 0205 at offset 003c <- 'trigger' associated with this table
67000624:  write data 0006 at offset 0038 <- 'unknown1 (4-bit)'
68000628:  write data ffeb at offset 003a <- 'unknown2'
69
70000632:  write data 0000 at offset 0034 <- 'table offset'
71000638:  write data 0188 at offset 0032 <- '12-bit data' for this offset
72000632:  write data 0001 at offset 0034
73000638:  write data 0282 at offset 0032
74000632:  write data 0002 at offset 0034
75000638:  write data 0082 at offset 0032
76000632:  write data 0003 at offset 0034
77000638:  write data 0b8e at offset 0032
78000632:  write data 0004 at offset 0034
79000638:  write data 098e at offset 0032
80000632:  write data 0005 at offset 0034
81000638:  write data 0000 at offset 0032
82000632:  write data 0006 at offset 0034
83000638:  write data 0000 at offset 0032
84000632:  write data 0007 at offset 0034
85000638:  write data 0000 at offset 0032
86--------------------------------------------
87000620:  write data 0905 at offset 003c
88000624:  write data 0006 at offset 0038
89000628:  write data fbfb at offset 003a
90
91000632:  write data 0008 at offset 0034
92000638:  write data 0194 at offset 0032
93000632:  write data 0009 at offset 0034
94000638:  write data 0288 at offset 0032
95000632:  write data 000a at offset 0034
96000638:  write data 0088 at offset 0032
97000632:  write data 000b at offset 0034
98000638:  write data 0000 at offset 0032
99000632:  write data 000c at offset 0034
100000638:  write data 0000 at offset 0032
101000632:  write data 000d at offset 0034
102000638:  write data 0000 at offset 0032
103000632:  write data 000e at offset 0034
104000638:  write data 0000 at offset 0032
105000632:  write data 000f at offset 0034
106000638:  write data 0000 at offset 0032
107--------------------------------------------
108000620:  write data 138e at offset 003c
109000624:  write data 0005 at offset 0038
110000628:  write data bf7f at offset 003a
111
112000632:  write data 0010 at offset 0034
113000638:  write data 0984 at offset 0032
114000632:  write data 0011 at offset 0034
115000638:  write data 0aa4 at offset 0032
116000632:  write data 0012 at offset 0034
117000638:  write data 0d82 at offset 0032
118000632:  write data 0013 at offset 0034
119000638:  write data 0aa2 at offset 0032
120000632:  write data 0014 at offset 0034
121000638:  write data 039b at offset 0032
122000632:  write data 0015 at offset 0034
123000638:  write data 0b9a at offset 0032
124000632:  write data 0016 at offset 0034
125000638:  write data 0b9a at offset 0032
126000632:  write data 0017 at offset 0034
127000638:  write data 0a9a at offset 0032
128--------------------------------------------
129000620:  write data 1905 at offset 003c
130000624:  write data 0006 at offset 0038
131000628:  write data fbfb at offset 003a
132
133000632:  write data 0018 at offset 0034
134000638:  write data 0994 at offset 0032
135000632:  write data 0019 at offset 0034
136000638:  write data 0a88 at offset 0032
137000632:  write data 001a at offset 0034
138000638:  write data 0088 at offset 0032
139000632:  write data 001b at offset 0034
140000638:  write data 0000 at offset 0032
141000632:  write data 001c at offset 0034
142000638:  write data 0000 at offset 0032
143000632:  write data 001d at offset 0034
144000638:  write data 0000 at offset 0032
145000632:  write data 001e at offset 0034
146000638:  write data 0000 at offset 0032
147000632:  write data 001f at offset 0034
148000638:  write data 0000 at offset 0032
149--------------------------------------------
150000620:  write data 2a05 at offset 003c
151000624:  write data 0006 at offset 0038
152000628:  write data ebeb at offset 003a
153
154000632:  write data 0028 at offset 0034
155000638:  write data 09af at offset 0032
156000632:  write data 0029 at offset 0034
157000638:  write data 0a82 at offset 0032
158000632:  write data 002a at offset 0034
159000638:  write data 0082 at offset 0032
160000632:  write data 002b at offset 0034
161000638:  write data 0a8f at offset 0032
162000632:  write data 002c at offset 0034
163000638:  write data 018e at offset 0032
164000632:  write data 002d at offset 0034
165000638:  write data 0000 at offset 0032
166000632:  write data 002e at offset 0034
167000638:  write data 0000 at offset 0032
168000632:  write data 002f at offset 0034
169000638:  write data 0000 at offset 0032
170--------------------------------------------
171000620:  write data 6200 at offset 003c
172000624:  write data 0008 at offset 0038
173000628:  write data f3e7 at offset 003a
174
175000632:  write data 0060 at offset 0034
176000638:  write data 03a0 at offset 0032
177000632:  write data 0061 at offset 0034
178000638:  write data 03a6 at offset 0032
179000632:  write data 0062 at offset 0034
180000638:  write data 0380 at offset 0032
181000632:  write data 0063 at offset 0034
182000638:  write data 0aa0 at offset 0032
183000632:  write data 0064 at offset 0034
184000638:  write data 02a6 at offset 0032
185000632:  write data 0065 at offset 0034
186000638:  write data 0000 at offset 0032
187000632:  write data 0066 at offset 0034
188000638:  write data 0000 at offset 0032
189000632:  write data 0067 at offset 0034
190000638:  write data 0000 at offset 0032
191--------------------------------------------
192000620:  write data 8100 at offset 003c
193000624:  write data 0007 at offset 0038
194000628:  write data fdfb at offset 003a
195
196000632:  write data 0080 at offset 0034
197000638:  write data 0b9a at offset 0032
198000632:  write data 0081 at offset 0034
199000638:  write data 0b88 at offset 0032
200000632:  write data 0082 at offset 0034
201000638:  write data 0888 at offset 0032
202000632:  write data 0083 at offset 0034
203000638:  write data 0000 at offset 0032
204000632:  write data 0084 at offset 0034
205000638:  write data 0000 at offset 0032
206000632:  write data 0085 at offset 0034
207000638:  write data 0000 at offset 0032
208000632:  write data 0086 at offset 0034
209000638:  write data 0000 at offset 0032
210000632:  write data 0087 at offset 0034
211000638:  write data 0000 at offset 0032
212--------------------------------------------
213000620:  write data 8900 at offset 003c
214000624:  write data 0007 at offset 0038
215000628:  write data fdfb at offset 003a
216
217000632:  write data 0088 at offset 0034
218000638:  write data 0b9a at offset 0032
219000632:  write data 0089 at offset 0034
220000638:  write data 0b8a at offset 0032
221000632:  write data 008a at offset 0034
222000638:  write data 088a at offset 0032
223000632:  write data 008b at offset 0034
224000638:  write data 0000 at offset 0032
225000632:  write data 008c at offset 0034
226000638:  write data 0000 at offset 0032
227000632:  write data 008d at offset 0034
228000638:  write data 0000 at offset 0032
229000632:  write data 008e at offset 0034
230000638:  write data 0000 at offset 0032
231000632:  write data 008f at offset 0034
232000638:  write data 0000 at offset 0032
233--------------------------------------------
234000620:  write data 9180 at offset 003c
235000624:  write data 0007 at offset 0038
236000628:  write data f8f7 at offset 003a
237
238000632:  write data 0090 at offset 0034
239000638:  write data 0b80 at offset 0032
240000632:  write data 0091 at offset 0034
241000638:  write data 0b94 at offset 0032
242000632:  write data 0092 at offset 0034
243000638:  write data 0b94 at offset 0032
244000632:  write data 0093 at offset 0034
245000638:  write data 0894 at offset 0032
246000632:  write data 0094 at offset 0034
247000638:  write data 0000 at offset 0032
248000632:  write data 0095 at offset 0034
249000638:  write data 0000 at offset 0032
250000632:  write data 0096 at offset 0034
251000638:  write data 0000 at offset 0032
252000632:  write data 0097 at offset 0034
253000638:  write data 0000 at offset 0032
254--------------------------------------------
255000620:  write data 9980 at offset 003c
256000624:  write data 0007 at offset 0038
257000628:  write data f8f7 at offset 003a
258
259000632:  write data 0098 at offset 0034
260000638:  write data 0b80 at offset 0032
261000632:  write data 0099 at offset 0034
262000638:  write data 0b94 at offset 0032
263000632:  write data 009a at offset 0034
264000638:  write data 0b94 at offset 0032
265000632:  write data 009b at offset 0034
266000638:  write data 0896 at offset 0032
267000632:  write data 009c at offset 0034
268000638:  write data 0000 at offset 0032
269000632:  write data 009d at offset 0034
270000638:  write data 0000 at offset 0032
271000632:  write data 009e at offset 0034
272000638:  write data 0000 at offset 0032
273000632:  write data 009f at offset 0034
274000638:  write data 0000 at offset 0032
275--------------------------------------------
276000620:  write data 2288 at offset 003c
277000624:  write data 0005 at offset 0038
278000628:  write data f5df at offset 003a
279
280000632:  write data 0020 at offset 0034
281000638:  write data 0f8a at offset 0032
282000632:  write data 0021 at offset 0034
283000638:  write data 0b8a at offset 0032
284000632:  write data 0022 at offset 0034
285000638:  write data 0388 at offset 0032
286000632:  write data 0023 at offset 0034
287000638:  write data 0b9a at offset 0032
288000632:  write data 0024 at offset 0034
289000638:  write data 0b9a at offset 0032
290000632:  write data 0025 at offset 0034
291000638:  write data 0a9a at offset 0032
292000632:  write data 0026 at offset 0034
293000638:  write data 0000 at offset 0032
294000632:  write data 0027 at offset 0034
295000638:  write data 0000 at offset 0032
296--------------------------------------------
297000620:  write data 338e at offset 003c
298000624:  write data 0005 at offset 0038
299000628:  write data bf7f at offset 003a
300
301000632:  write data 0030 at offset 0034
302000638:  write data 0984 at offset 0032
303000632:  write data 0031 at offset 0034
304000638:  write data 0aa4 at offset 0032
305000632:  write data 0032 at offset 0034
306000638:  write data 0d82 at offset 0032
307000632:  write data 0033 at offset 0034
308000638:  write data 0aa2 at offset 0032
309000632:  write data 0034 at offset 0034
310000638:  write data 039c at offset 0032
311000632:  write data 0035 at offset 0034
312000638:  write data 0b9c at offset 0032
313000632:  write data 0036 at offset 0034
314000638:  write data 0b9c at offset 0032
315000632:  write data 0037 at offset 0034
316000638:  write data 0a9a at offset 0032
317--------------------------------------------
318000620:  write data 3bb0 at offset 003c
319000624:  write data 0004 at offset 0038
320000628:  write data 007f at offset 003a
321
322000632:  write data 0038 at offset 0034
323000638:  write data 0f9c at offset 0032
324000632:  write data 0039 at offset 0034
325000638:  write data 0b9c at offset 0032
326000632:  write data 003a at offset 0034
327000638:  write data 0b9c at offset 0032
328000632:  write data 003b at offset 0034
329000638:  write data 0b9c at offset 0032
330000632:  write data 003c at offset 0034
331000638:  write data 0b9c at offset 0032
332000632:  write data 003d at offset 0034
333000638:  write data 0b9c at offset 0032
334000632:  write data 003e at offset 0034
335000638:  write data 0b9c at offset 0032
336000632:  write data 003f at offset 0034
337000638:  write data 099c at offset 0032
338--------------------------------------------
339000620:  write data 42c2 at offset 003c
340000624:  write data 0005 at offset 0038
341000628:  write data fcdd at offset 003a
342
343000632:  write data 0040 at offset 0034
344000638:  write data 0f9a at offset 0032
345000632:  write data 0041 at offset 0034
346000638:  write data 0b9a at offset 0032
347000632:  write data 0042 at offset 0034
348000638:  write data 0b9c at offset 0032
349000632:  write data 0043 at offset 0034
350000638:  write data 0b9c at offset 0032
351000632:  write data 0044 at offset 0034
352000638:  write data 0b9c at offset 0032
353000632:  write data 0045 at offset 0034
354000638:  write data 029c at offset 0032
355000632:  write data 0046 at offset 0034
356000638:  write data 0000 at offset 0032
357000632:  write data 0047 at offset 0034
358000638:  write data 0000 at offset 0032
359--------------------------------------------
360000620:  write data 4aa0 at offset 003c
361000624:  write data 0005 at offset 0038
362000628:  write data fcdd at offset 003a
363
364000632:  write data 0048 at offset 0034
365000638:  write data 0f9a at offset 0032
366000632:  write data 0049 at offset 0034
367000638:  write data 0b9a at offset 0032
368000632:  write data 004a at offset 0034
369000638:  write data 0b9c at offset 0032
370000632:  write data 004b at offset 0034
371000638:  write data 0b9c at offset 0032
372000632:  write data 004c at offset 0034
373000638:  write data 0b9c at offset 0032
374000632:  write data 004d at offset 0034
375000638:  write data 099b at offset 0032
376000632:  write data 004e at offset 0034
377000638:  write data 0000 at offset 0032
378000632:  write data 004f at offset 0034
379000638:  write data 0000 at offset 0032
380--------------------------------------------
381000620:  write data 6880 at offset 003c
382000624:  write data 000a at offset 0038
383000628:  write data fff3 at offset 003a
384
385000632:  write data 0068 at offset 0034
386000638:  write data 0b80 at offset 0032
387000632:  write data 0069 at offset 0034
388000638:  write data 0ba0 at offset 0032
389000632:  write data 006a at offset 0034
390000638:  write data 0000 at offset 0032
391000632:  write data 006b at offset 0034
392000638:  write data 0000 at offset 0032
393000632:  write data 006c at offset 0034
394000638:  write data 0000 at offset 0032
395000632:  write data 006d at offset 0034
396000638:  write data 0000 at offset 0032
397000632:  write data 006e at offset 0034
398000638:  write data 0000 at offset 0032
399000632:  write data 006f at offset 0034
400000638:  write data 0000 at offset 0032
401--------------------------------------------
402000620:  write data c480 at offset 003c
403000624:  write data 000a at offset 0038
404000628:  write data ff00 at offset 003a
405
406000632:  write data 00c0 at offset 0034
407000638:  write data 0080 at offset 0032
408000632:  write data 00c1 at offset 0034
409000638:  write data 0882 at offset 0032
410000632:  write data 00c2 at offset 0034
411000638:  write data 0000 at offset 0032
412000632:  write data 00c3 at offset 0034
413000638:  write data 0000 at offset 0032
414000632:  write data 00c4 at offset 0034
415000638:  write data 0000 at offset 0032
416000632:  write data 00c5 at offset 0034
417000638:  write data 0000 at offset 0032
418000632:  write data 00c6 at offset 0034
419000638:  write data 0000 at offset 0032
420000632:  write data 00c7 at offset 0034
421000638:  write data 0000 at offset 0032
422--------------------------------------------
423000620:  write data a180 at offset 003c
424000624:  write data 0000 at offset 0038
425000628:  write data ffff at offset 003a
426
427000632:  write data 00a0 at offset 0034
428000638:  write data 0b80 at offset 0032
429000632:  write data 00a1 at offset 0034
430000638:  write data 0b82 at offset 0032
431000632:  write data 00a2 at offset 0034
432000638:  write data 0b84 at offset 0032
433000632:  write data 00a3 at offset 0034
434000638:  write data 0b86 at offset 0032
435000632:  write data 00a4 at offset 0034
436000638:  write data 0000 at offset 0032
437000632:  write data 00a5 at offset 0034
438000638:  write data 0000 at offset 0032
439000632:  write data 00a6 at offset 0034
440000638:  write data 0000 at offset 0032
441000632:  write data 00a7 at offset 0034
442000638:  write data 0000 at offset 0032
443--------------------------------------------
444000620:  write data a980 at offset 003c
445000624:  write data 000f at offset 0038
446000628:  write data ffff at offset 003a
447
448000632:  write data 00a8 at offset 0034
449000638:  write data 0ba0 at offset 0032
450000632:  write data 00a9 at offset 0034
451000638:  write data 0ba2 at offset 0032
452000632:  write data 00aa at offset 0034
453000638:  write data 0ba4 at offset 0032
454000632:  write data 00ab at offset 0034
455000638:  write data 0ba6 at offset 0032
456000632:  write data 00ac at offset 0034
457000638:  write data 0000 at offset 0032
458000632:  write data 00ad at offset 0034
459000638:  write data 0000 at offset 0032
460000632:  write data 00ae at offset 0034
461000638:  write data 0000 at offset 0032
462000632:  write data 00af at offset 0034
463000638:  write data 0000 at offset 0032
464--------------------------------------------
465000620:  write data b100 at offset 003c
466000624:  write data 0009 at offset 0038
467000628:  write data ffff at offset 003a
468
469000632:  write data 00b0 at offset 0034
470000638:  write data 0b40 at offset 0032
471000632:  write data 00b1 at offset 0034
472000638:  write data 0bc0 at offset 0032
473000632:  write data 00b2 at offset 0034
474000638:  write data 0bc2 at offset 0032
475000632:  write data 00b3 at offset 0034
476000638:  write data 0000 at offset 0032
477000632:  write data 00b4 at offset 0034
478000638:  write data 0000 at offset 0032
479000632:  write data 00b5 at offset 0034
480000638:  write data 0000 at offset 0032
481000632:  write data 00b6 at offset 0034
482000638:  write data 0000 at offset 0032
483000632:  write data 00b7 at offset 0034
484000638:  write data 0000 at offset 0032
485--------------------------------------------
486000620:  write data b900 at offset 003c
487000624:  write data 0006 at offset 0038
488000628:  write data ffff at offset 003a
489
490000632:  write data 00b8 at offset 0034
491000638:  write data 0b60 at offset 0032
492000632:  write data 00b9 at offset 0034
493000638:  write data 0be0 at offset 0032
494000632:  write data 00ba at offset 0034
495000638:  write data 0be2 at offset 0032
496000632:  write data 00bb at offset 0034
497000638:  write data 0000 at offset 0032
498000632:  write data 00bc at offset 0034
499000638:  write data 0000 at offset 0032
500000632:  write data 00bd at offset 0034
501000638:  write data 0000 at offset 0032
502000632:  write data 00be at offset 0034
503000638:  write data 0000 at offset 0032
504000632:  write data 00bf at offset 0034
505000638:  write data 0000 at offset 0032
506--------------------------------------------
507000620:  write data cb8f at offset 003c
508000624:  write data 0005 at offset 0038
509000628:  write data bf7f at offset 003a
510
511000632:  write data 00c8 at offset 0034
512000638:  write data 0984 at offset 0032
513000632:  write data 00c9 at offset 0034
514000638:  write data 0aa4 at offset 0032
515000632:  write data 00ca at offset 0034
516000638:  write data 0d82 at offset 0032
517000632:  write data 00cb at offset 0034
518000638:  write data 0aa2 at offset 0032
519000632:  write data 00cc at offset 0034
520000638:  write data 039b at offset 0032
521000632:  write data 00cd at offset 0034
522000638:  write data 0b9a at offset 0032
523000632:  write data 00ce at offset 0034
524000638:  write data 0b9a at offset 0032
525000632:  write data 00cf at offset 0034
526000638:  write data 0a9f at offset 0032
527--------------------------------------------
528000620:  write data d104 at offset 003c
529000624:  write data 0005 at offset 0038
530000628:  write data fffb at offset 003a
531
532000632:  write data 00d0 at offset 0034
533000638:  write data 0ac2 at offset 0032
534000632:  write data 00d1 at offset 0034
535000638:  write data 09e0 at offset 0032
536000632:  write data 00d2 at offset 0034
537000638:  write data 00a2 at offset 0032
538000632:  write data 00d3 at offset 0034
539000638:  write data 0000 at offset 0032
540000632:  write data 00d4 at offset 0034
541000638:  write data 0000 at offset 0032
542000632:  write data 00d5 at offset 0034
543000638:  write data 0000 at offset 0032
544000632:  write data 00d6 at offset 0034
545000638:  write data 0000 at offset 0032
546000632:  write data 00d7 at offset 0034
547000638:  write data 0000 at offset 0032
548--------------------------------------------
549000620:  write data dde5 at offset 003c
550000624:  write data 0005 at offset 0038
551000628:  write data 7ff7 at offset 003a
552
553000632:  write data 00d8 at offset 0034
554000638:  write data 0f80 at offset 0032
555000632:  write data 00d9 at offset 0034
556000638:  write data 0aa2 at offset 0032
557000632:  write data 00da at offset 0034
558000638:  write data 0984 at offset 0032
559000632:  write data 00db at offset 0034
560000638:  write data 00c2 at offset 0032
561000632:  write data 00dc at offset 0034
562000638:  write data 0000 at offset 0032
563000632:  write data 00dd at offset 0034
564000638:  write data 0000 at offset 0032
565000632:  write data 00de at offset 0034
566000638:  write data 0000 at offset 0032
567000632:  write data 00df at offset 0034
568000638:  write data 0000 at offset 0032
569--------------------------------------------
570000620:  write data e38e at offset 003c
571000624:  write data 0005 at offset 0038
572000628:  write data b07f at offset 003a
573
574000632:  write data 00e0 at offset 0034
575000638:  write data 0984 at offset 0032
576000632:  write data 00e1 at offset 0034
577000638:  write data 0ac4 at offset 0032
578000632:  write data 00e2 at offset 0034
579000638:  write data 0d82 at offset 0032
580000632:  write data 00e3 at offset 0034
581000638:  write data 0ac2 at offset 0032
582000632:  write data 00e4 at offset 0034
583000638:  write data 039b at offset 0032
584000632:  write data 00e5 at offset 0034
585000638:  write data 0b9a at offset 0032
586000632:  write data 00e6 at offset 0034
587000638:  write data 0b9a at offset 0032
588000632:  write data 00e7 at offset 0034
589000638:  write data 0a9a at offset 0032
590--------------------------------------------
591000620:  write data eb8e at offset 003c
592000624:  write data 0005 at offset 0038
593000628:  write data b07f at offset 003a
594
595000632:  write data 00e8 at offset 0034
596000638:  write data 0984 at offset 0032
597000632:  write data 00e9 at offset 0034
598000638:  write data 0ac4 at offset 0032
599000632:  write data 00ea at offset 0034
600000638:  write data 0d82 at offset 0032
601000632:  write data 00eb at offset 0034
602000638:  write data 0ac2 at offset 0032
603000632:  write data 00ec at offset 0034
604000638:  write data 039b at offset 0032
605000632:  write data 00ed at offset 0034
606000638:  write data 0b9a at offset 0032
607000632:  write data 00ee at offset 0034
608000638:  write data 0b9a at offset 0032
609000632:  write data 00ef at offset 0034
610000638:  write data 0a9f at offset 0032
611--------------------------------------------
612000620:  write data 5105 at offset 003c
613000624:  write data 0005 at offset 0038
614000628:  write data fefb at offset 003a
615
616000632:  write data 0050 at offset 0034
617000638:  write data 0a80 at offset 0032
618000632:  write data 0051 at offset 0034
619000638:  write data 0984 at offset 0032
620000632:  write data 0052 at offset 0034
621000638:  write data 0082 at offset 0032
622000632:  write data 0053 at offset 0034
623000638:  write data 0000 at offset 0032
624000632:  write data 0054 at offset 0034
625000638:  write data 0000 at offset 0032
626000632:  write data 0055 at offset 0034
627000638:  write data 0000 at offset 0032
628000632:  write data 0056 at offset 0034
629000638:  write data 0000 at offset 0032
630000632:  write data 0057 at offset 0034
631000638:  write data 0000 at offset 0032
632--------------------------------------------
633000620:  write data 5905 at offset 003c
634000624:  write data 0005 at offset 0038
635000628:  write data fffb at offset 003a
636
637000632:  write data 0058 at offset 0034
638000638:  write data 09c8 at offset 0032
639000632:  write data 0059 at offset 0034
640000638:  write data 0a84 at offset 0032
641000632:  write data 005a at offset 0034
642000638:  write data 00a2 at offset 0032
643000632:  write data 005b at offset 0034
644000638:  write data 0000 at offset 0032
645000632:  write data 005c at offset 0034
646000638:  write data 0000 at offset 0032
647000632:  write data 005d at offset 0034
648000638:  write data 0000 at offset 0032
649000632:  write data 005e at offset 0034
650000638:  write data 0000 at offset 0032
651000632:  write data 005f at offset 0034
652000638:  write data 0000 at offset 0032
653--------------------------------------------
654000620:  write data 7905 at offset 003c
655000624:  write data 0006 at offset 0038
656000628:  write data fffb at offset 003a
657
658000632:  write data 0078 at offset 0034
659000638:  write data 01a2 at offset 0032
660000632:  write data 0079 at offset 0034
661000638:  write data 02c2 at offset 0032
662000632:  write data 007a at offset 0034
663000638:  write data 00a2 at offset 0032
664000632:  write data 007b at offset 0034
665000638:  write data 0000 at offset 0032
666000632:  write data 007c at offset 0034
667000638:  write data 0000 at offset 0032
668000632:  write data 007d at offset 0034
669000638:  write data 0000 at offset 0032
670000632:  write data 007e at offset 0034
671000638:  write data 0000 at offset 0032
672000632:  write data 007f at offset 0034
673000638:  write data 0000 at offset 0032
674--------------------------------------------
675000620:  write data f105 at offset 003c
676000624:  write data 0005 at offset 0038
677000628:  write data fefb at offset 003a
678
679000632:  write data 00f0 at offset 0034
680000638:  write data 0a88 at offset 0032
681000632:  write data 00f1 at offset 0034
682000638:  write data 0994 at offset 0032
683000632:  write data 00f2 at offset 0034
684000638:  write data 0088 at offset 0032
685000632:  write data 00f3 at offset 0034
686000638:  write data 0000 at offset 0032
687000632:  write data 00f4 at offset 0034
688000638:  write data 0000 at offset 0032
689000632:  write data 00f5 at offset 0034
690000638:  write data 0000 at offset 0032
691000632:  write data 00f6 at offset 0034
692000638:  write data 0000 at offset 0032
693000632:  write data 00f7 at offset 0034
694000638:  write data 0000 at offset 0032
695
696These uploads appear to form the basis of one part of the protection; command lists.
697
698The games upload these tables
699
700cupsoc, cupsoca, cupsocs, cupsocs2, olysoc92
701t    u1  u2     trg    tbl
70200 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
70301 | 6 | fbfb | 0905 | 194 288 088
70402 | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a a9a
70503 | 6 | fbfb | 1905 | 994 a88 088
70604 | 5 | f5df | 2288 | f8a b8a 388 b9a b9a a9a
70705 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
70806 | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
70907 | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
71008 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
71109 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
7120a | 5 | fefb | 5105 | a80 984 082
7130b | 5 | fffb | 5905 | 9c8 a84 0a2
7140c | 8 | f3e7 | 6200 | 3a0 3a6 380 aa0 2a6
7150d | a | fff3 | 6880 | b80 ba0
7160e | 0 | 0000 | 0000 |
7170f | 6 | fffb | 7905 | 1a2 2c2 0a2
71810 | 7 | fdfb | 8100 | b9a b88 888
71911 | 7 | fdfb | 8900 | b9a b8a 88a
72012 | 7 | f8f7 | 9180 | b80 b94 b94 894
72113 | 7 | f8f7 | 9980 | b80 b94 b94 896
72214 | 0 | ffff | a180 | b80 b82 b84 b86
72315 | f | ffff | a980 | ba0 ba2 ba4 ba6
72416 | 9 | ffff | b100 | b40 bc0 bc2
72517 | 6 | ffff | b900 | b60 be0 be2
72618 | a | ff00 | c480 | 080 882
72719 | 5 | bf7f | cb8f | 984 aa4 d82 aa2 39b b9a b9a a9f
7281a | 5 | fffb | d104 | ac2 9e0 0a2
7291b | 5 | 7ff7 | dde5 | f80 aa2 984 0c2
7301c | 5 | b07f | e38e | 984 ac4 d82 ac2 39b b9a b9a a9a
7311d | 5 | b07f | eb8e | 984 ac4 d82 ac2 39b b9a b9a a9f
7321e | 5 | fefb | f105 | a88 994 088
7331f | 0 | 0000 | 0000 |
734
735heatbrl, heatbrl2, heatbrlo, heatbrlu
736t    u1  u2     trg    tbl
73700 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
73801 | 6 | fbfb | 0905 | 194 288 088
73902 | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a b9a
74003 | 6 | fbfb | 1905 | 994 a88 088
74104 | 5 | f5df | 2288 | f8a b8a 388 b9c b9a a9a
74205 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
74306 | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
74407 | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
74508 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
74609 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
7470a | 0 | 0000 | 0000 |
7480b | 0 | 0000 | 0000 |
7490c | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
7500d | a | fff3 | 6880 | b80 ba0
7510e | 0 | 0000 | 0000 |
7520f | 0 | 0000 | 0000 |
75310 | 7 | fdfb | 8100 | b9a b88 888
75411 | 7 | fdfb | 8900 | b9a b8a 88a
75512 | 7 | f8f7 | 9180 | b80 b94 b94 894
75613 | 7 | f8f7 | 9980 | b80 b96 b96 896
75714 | 0 | ffff | a100 | b80 b82 b84 b86
75815 | f | ffff | a900 | ba0 ba2 ba4 ba6
75916 | 9 | ffff | b080 | b40 bc0 bc2
76017 | 6 | ffff | b880 | b60 be0 be2
76118 | a | ff00 | c480 | 080 882
76219 | 0 | 0000 | 0000 |
7631a | 0 | 0000 | 0000 |
7641b | 0 | 0000 | 0000 |
7651c | 0 | 0000 | 0000 |
7661d | 0 | 0000 | 0000 |
7671e | 0 | 0000 | 0000 |
7681f | 0 | 0000 | 0000 |
769
770legionna, legionnau (commands are the same as heatbrl, triggers are different)
771t    u1  u2     trg    tbl
77200 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
77301 | 6 | fbfb | 0905 | 194 288 088
77402 | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a b9a
77503 | 6 | fbfb | 1905 | 994 a88 088
77604 | 5 | f5df | 2288 | f8a b8a 388 b9c b9a a9a
77705 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
77806 | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
77907 | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
78008 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
78109 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
7820a | 0 | 0000 | 0000 |
7830b | 0 | 0000 | 0000 |
7840c | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
7850d | a | fff3 | 6880 | b80 ba0
7860e | 0 | 0000 | 0000 |
7870f | 0 | 0000 | 0000 |
78810 | 7 | fdfb | 8100 | b9a b88 888
78911 | 7 | fdfb | 8900 | b9a b8a 88a
79012 | 7 | f8f7 | 9180 | b80 b94 b94 894
79113 | 7 | f8f7 | 9980 | b80 b96 b96 896
79214 | 0 | ffff | a180 | b80 b82 b84 b86
79315 | f | ffff | a980 | ba0 ba2 ba4 ba6
79416 | 9 | ffff | b100 | b40 bc0 bc2
79517 | 6 | ffff | b900 | b60 be0 be2
79618 | a | ff00 | c480 | 080 882
79719 | 0 | 0000 | 0000 |
7981a | 0 | 0000 | 0000 |
7991b | 0 | 0000 | 0000 |
8001c | 0 | 0000 | 0000 |
8011d | 0 | 0000 | 0000 |
8021e | 0 | 0000 | 0000 |
8031f | 0 | 0000 | 0000 |
804
805godzilla, denjinmk
806(denjinmk doesn't actually make use of the table, it never writes to the execute trigger)
807t    u1  u2     trg    tbl
80800 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
80901 | 6 | fbfb | 0905 | 194 288 088
81002 | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a a9a
81103 | 6 | fbfb | 1905 | 994 a88 088
81204 | 5 | f5df | 2288 | f8a b8a 388 b9a b9a a9a
81305 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
81406 | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
81507 | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
81608 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
81709 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
8180a | 0 | 0000 | 0000 |
8190b | 0 | 0000 | 0000 |
8200c | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
8210d | a | fff3 | 6880 | b80 ba0
8220e | 0 | 0000 | 0000 |
8230f | 0 | 0000 | 0000 |
82410 | 7 | fdfb | 8100 | b9a b88 888
82511 | 7 | fdfb | 8900 | b9a b8a 88a
82612 | 7 | f8f7 | 9180 | b80 b94 b94 894
82713 | 7 | f8f7 | 9980 | b80 b94 b94 896
82814 | 0 | ffff | a180 | b80 b82 b84 b86
82915 | f | ffff | a980 | ba0 ba2 ba4 ba6
83016 | 9 | ffff | b100 | b40 bc0 bc2
83117 | 6 | ffff | b900 | b60 be0 be2
83218 | a | ff00 | c480 | 080 882
83319 | 0 | 0000 | 0000 |
8341a | 0 | 0000 | 0000 |
8351b | 0 | 0000 | 0000 |
8361c | 0 | 0000 | 0000 |
8371d | 0 | 0000 | 0000 |
8381e | 0 | 0000 | 0000 |
8391f | 0 | 0000 | 0000 |
840
841grainbow
842t    u1  u2     trg    tbl
84300 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
84401 | 6 | fbfb | 0905 | 194 288 088
84502 | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a a9a
84603 | 6 | fbfb | 1905 | 994 a88 088
84704 | 5 | f5df | 2288 | f8a b8a 388 b9a b9a a9a
84805 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
84906 | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
85007 | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
85108 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
85209 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
8530a | 5 | fefb | 5105 | a80 984 082
8540b | 5 | fffb | 5905 | 9c8 a84 0a2
8550c | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
8560d | a | fff3 | 6980 | b80 ba0
8570e | 0 | 0000 | 0000 |
8580f | 6 | fffb | 7905 | 1a2 2c2 0a2
85910 | 7 | fdfb | 8100 | b9a b88 888
86011 | 7 | fdfb | 8900 | b9a b8a 88a
86112 | 7 | f8f7 | 9180 | b80 b94 b94 894
86213 | 7 | f8f7 | 9980 | b80 b94 b94 896
86314 | 0 | 02ff | a180 | b80 b82 b84 b86
86415 | f | 02ff | a980 | ba0 ba2 ba4 ba6
86516 | 9 | ffff | b100 | b40 bc0 bc2
86617 | 6 | ffff | b900 | b60 be0 be2
86718 | a | ff00 | c480 | 080 882
86819 | 5 | bf7f | cb8f | 984 aa4 d82 aa2 39b b9a b9a a9f
8691a | 5 | fffb | d104 | ac2 9e0 0a2
8701b | 5 | 7ff7 | dde5 | f80 aa2 984 0c2
8711c | 5 | b07f | e38e | 984 ac4 d82 ac2 39b b9a b9a a9a
8721d | 5 | b07f | eb8e | 984 ac4 d82 ac2 39b b9a b9a a9f
8731e | 5 | fefb | f105 | a88 994 088
8741f | 0 | 0000 | 0000 |
875
876raiden2, raiden2a, raiden2b, raiden2c, raiden2d, raiden2e, raiden2f
877t    u1  u2     trg    tbl
87800 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
87901 | 6 | fbfb | 0905 | 194 288 088
88002 | 5 | bf7f | 130e | 984 aa4 d82 aa2 39b b9a b9a a9a
88103 | 6 | fbfb | 1905 | 994 a88 088
88204 | 5 | f5df | 2208 | f8a b8a 388 b9a b9a a9a
88305 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
88406 | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
88507 | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
88608 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
88709 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
8880a | 6 | fff7 | 5205 | 180 2e0 3a0 0a0 3a0
8890b | 6 | fff7 | 5a05 | 180 2e0 3a0 0a0 3a0
8900c | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
8910d | 0 | 0000 | 0000 |
8920e | 0 | 0000 | 0000 |
8930f | 0 | 0000 | 0000 |
89410 | 7 | fdfb | 8100 | b9a b88 888
89511 | 7 | fdfb | 8900 | b9a b8a 88a
89612 | 7 | fefb | 9100 | b80 b94 894
89713 | 7 | fefb | 9900 | b80 b94 896
89814 | 0 | 00ff | a100 | b80 b82 b84 b86
89915 | f | 00ff | a900 | ba0 ba2 ba4 ba6
90016 | 9 | ffff | b100 | b40 bc0 bc2
90117 | 6 | ffff | b900 | b60 be0 be2
90218 | 0 | 0000 | 0000 |
90319 | 0 | 0000 | 0000 |
9041a | 0 | 0000 | 0000 |
9051b | 0 | 0000 | 0000 |
9061c | 0 | 0000 | 0000 |
9071d | 0 | 0000 | 0000 |
9081e | 6 | fff7 | f205 | 182 2e0 3c0 0c0 3c0
9091f | 0 | 0000 | 0000 |
910
911raidndx, raidndxj, raidndxm, raidndxt
912(the same as raiden2, but adds an extra command with trigger 7e05)
913t    u1  u2     trg    tbl
91400 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
91501 | 6 | fbfb | 0905 | 194 288 088
91602 | 5 | bf7f | 130e | 984 aa4 d82 aa2 39b b9a b9a a9a
91703 | 6 | fbfb | 1905 | 994 a88 088
91804 | 5 | f5df | 2208 | f8a b8a 388 b9a b9a a9a
91905 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
92006 | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
92107 | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
92208 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
92309 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
9240a | 6 | fff7 | 5205 | 180 2e0 3a0 0a0 3a0
9250b | 6 | fff7 | 5a05 | 180 2e0 3a0 0a0 3a0
9260c | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
9270d | 0 | 0000 | 0000 |
9280e | 0 | 0000 | 0000 |
9290f | 6 | fffb | 7e05 | 180 282 080 180 282
93010 | 7 | fdfb | 8100 | b9a b88 888
93111 | 7 | fdfb | 8900 | b9a b8a 88a
93212 | 7 | fefb | 9100 | b80 b94 894
93313 | 7 | fefb | 9900 | b80 b94 896
93414 | 0 | 00ff | a100 | b80 b82 b84 b86
93515 | f | 00ff | a900 | ba0 ba2 ba4 ba6
93616 | 9 | ffff | b100 | b40 bc0 bc2
93717 | 6 | ffff | b900 | b60 be0 be2
93818 | 0 | 0000 | 0000 |
93919 | 0 | 0000 | 0000 |
9401a | 0 | 0000 | 0000 |
9411b | 0 | 0000 | 0000 |
9421c | 0 | 0000 | 0000 |
9431d | 0 | 0000 | 0000 |
9441e | 6 | fff7 | f205 | 182 2e0 3c0 0c0 3c0
9451f | 0 | 0000 | 0000 |
946
947
948zeroteam, zeroteama, zeroteamb, zeroteamc, zeroteams, xsedae
949t    u1  u2     trg    tbl
95000 | 6 | ffeb | 0205 | 188 282 082 b8e 98e
95101 | 6 | fbfb | 0905 | 194 288 088
95202 | 5 | bf7f | 130e | 984 aa4 d82 aa2 39b b9a b9a a9a
95303 | 6 | fbfb | 1905 | 994 a88 088
95404 | 5 | f5df | 2208 | f8a b8a 388 b9a b9a a9a
95505 | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
95606 | 5 | bf7f | 330e | 984 aa4 d82 aa2 39c b9c b9c a9a
95707 | 4 | 007f | 3b30 | f9c b9c b9c b9c b9c b9c b9c 99c
95808 | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
95909 | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
9600a | 6 | fffb | 5105 | 180 2e0 0a0
9610b | 6 | ffdb | 5a85 | 180 2e0 0a0 182 2e0 0c0 3c0
9620c | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
9630d | a | fff3 | 6980 | b80 ba0
9640e | 8 | fdfd | 7100 | b80 a80 b80
9650f | 0 | 0000 | 0000 |
96610 | 7 | fdfb | 8100 | b9a b88 888
96711 | 7 | fdfb | 8900 | b9a b8a 88a
96812 | 7 | f8f7 | 9100 | b80 b94 b94 894
96913 | 7 | f8f7 | 9900 | b80 b94 b94 896
97014 | 0 | ffff | a100 | b80 b82 b84 b86
97115 | f | ffff | a900 | ba0 ba2 ba4 ba6
97216 | 9 | ffff | b100 | b40 bc0 bc2
97317 | 6 | ffff | b900 | b60 be0 be2
97418 | a | ff00 | 7c80 | 080 882
97519 | 0 | 0000 | 0000 |
9761a | 0 | 0000 | 0000 |
9771b | 0 | 0000 | 0000 |
9781c | 5 | 06fb | e105 | a88 994 088
9791d | 5 | 05f7 | ede5 | f88 a84 986 08a
9801e | 4 | 00ff | f790 | f80 b84 b84 b84 b84 b84 b84 b84
9811f | 6 | 00ff | fc84 | 182 280
982
983as you can see, there are a lot of command 'command lists' between the games.
984(todo, comment ones which seem to have a known function)
985
986executing these seems to cause various operations to occur, be it memory transfer, collision checking, or movement checking.
987
988each 12-bit entry in the tables is probably some kind of 'opcode' which runs and processes data placed in registers / memory.
989
990If we rearrange these tables a bit, so that we can see which are common between games we get the following, take note of
991the ones with slight changes, these could be important to figuring out how this works!
992
993
994Game       |u1 |u2    | trig | macrolist
995
996Table 00 - Same on All games
997(grainbow) | 6 | ffeb | 0205 | 188 282 082 b8e 98e
998(cupsoc)   | 6 | ffeb | 0205 | 188 282 082 b8e 98e
999(legionna) | 6 | ffeb | 0205 | 188 282 082 b8e 98e
1000(godzilla) | 6 | ffeb | 0205 | 188 282 082 b8e 98e
1001(heatbrl)  | 6 | ffeb | 0205 | 188 282 082 b8e 98e
1002(zeroteam) | 6 | ffeb | 0205 | 188 282 082 b8e 98e
1003(raiden2)  | 6 | ffeb | 0205 | 188 282 082 b8e 98e
1004(raidndx)  | 6 | ffeb | 0205 | 188 282 082 b8e 98e
1005
1006Table 01 - Same on All games
1007(grainbow) | 6 | fbfb | 0905 | 194 288 088
1008(cupsoc)   | 6 | fbfb | 0905 | 194 288 088
1009(legionna) | 6 | fbfb | 0905 | 194 288 088
1010(godzilla) | 6 | fbfb | 0905 | 194 288 088
1011(heatbrl)  | 6 | fbfb | 0905 | 194 288 088
1012(zeroteam) | 6 | fbfb | 0905 | 194 288 088
1013(raiden2)  | 6 | fbfb | 0905 | 194 288 088
1014(raidndx)  | 6 | fbfb | 0905 | 194 288 088
1015
1016Table 02 - grainbow and heatbrl have different last entry.  triggers differ on v30 hw
1017(grainbow) | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a b9a
1018(cupsoc)   | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a a9a
1019(legionna) | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a a9a
1020(godzilla) | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a a9a
1021(heatbrl)  | 5 | bf7f | 138e | 984 aa4 d82 aa2 39b b9a b9a b9a
1022(zeroteam) | 5 | bf7f | 130e | 984 aa4 d82 aa2 39b b9a b9a a9a
1023(raiden2)  | 5 | bf7f | 130e | 984 aa4 d82 aa2 39b b9a b9a a9a
1024(raidndx)  | 5 | bf7f | 130e | 984 aa4 d82 aa2 39b b9a b9a a9a
1025
1026Table 03 - Same on All games
1027(grainbow) | 6 | fbfb | 1905 | 994 a88 088
1028(cupsoc)   | 6 | fbfb | 1905 | 994 a88 088
1029(legionna) | 6 | fbfb | 1905 | 994 a88 088
1030(godzilla) | 6 | fbfb | 1905 | 994 a88 088
1031(heatbrl)  | 6 | fbfb | 1905 | 994 a88 088
1032(zeroteam) | 6 | fbfb | 1905 | 994 a88 088
1033(raiden2)  | 6 | fbfb | 1905 | 994 a88 088
1034(raidndx)  | 6 | fbfb | 1905 | 994 a88 088
1035
1036Table 04 - grainbow and heatbrl have a b9c in the 4th slot, triggers differ on v30 hw
1037(grainbow) | 5 | f5df | 2288 | f8a b8a 388 b9c b9a a9a
1038(cupsoc)   | 5 | f5df | 2288 | f8a b8a 388 b9a b9a a9a
1039(legionna) | 5 | f5df | 2288 | f8a b8a 388 b9a b9a a9a
1040(godzilla) | 5 | f5df | 2288 | f8a b8a 388 b9a b9a a9a
1041(heatbrl)  | 5 | f5df | 2288 | f8a b8a 388 b9c b9a a9a
1042(zeroteam) | 5 | f5df | 2208 | f8a b8a 388 b9a b9a a9a
1043(raiden2)  | 5 | f5df | 2208 | f8a b8a 388 b9a b9a a9a
1044(raidndx)  | 5 | f5df | 2208 | f8a b8a 388 b9a b9a a9a
1045
1046Table 05 - Same on All games
1047(grainbow) | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1048(cupsoc)   | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1049(legionna) | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1050(godzilla) | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1051(heatbrl)  | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1052(zeroteam) | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1053(raiden2)  | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1054(raidndx)  | 6 | ebeb | 2a05 | 9af a82 082 a8f 18e
1055
1056Table 06 - different trigger on zeroteam (330e)
1057(grainbow) | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
1058(cupsoc)   | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
1059(legionna) | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
1060(godzilla) | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
1061(heatbrl)  | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
1062(zeroteam) | 5 | bf7f | 330e | 984 aa4 d82 aa2 39c b9c b9c a9a
1063(raiden2)  | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
1064(raidndx)  | 5 | bf7f | 338e | 984 aa4 d82 aa2 39c b9c b9c a9a
1065
1066Table 07 - different trigger on zeroteam (3b30)
1067(grainbow) | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
1068(cupsoc)   | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
1069(legionna) | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
1070(godzilla) | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
1071(heatbrl)  | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
1072(zeroteam) | 4 | 007f | 3b30 | f9c b9c b9c b9c b9c b9c b9c 99c
1073(raiden2)  | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
1074(raidndx)  | 4 | 007f | 3bb0 | f9c b9c b9c b9c b9c b9c b9c 99c
1075
1076Table 08 - Same on All games
1077(grainbow) | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1078(cupsoc)   | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1079(legionna) | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1080(godzilla) | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1081(heatbrl)  | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1082(zeroteam) | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1083(raiden2)  | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1084(raidndx)  | 5 | fcdd | 42c2 | f9a b9a b9c b9c b9c 29c
1085
1086Table 09 - Same on All games
1087(grainbow) | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1088(cupsoc)   | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1089(legionna) | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1090(godzilla) | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1091(heatbrl)  | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1092(zeroteam) | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1093(raiden2)  | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1094(raidndx)  | 5 | fcdd | 4aa0 | f9a b9a b9c b9c b9c 99b
1095
1096Table 0a - Game specific
1097(grainbow) | 5 | fefb | 5105 | a80 984 082
1098(cupsoc)   | 5 | fefb | 5105 | a80 984 082
1099(legionna) | 0 | 0000 | 0000 |
1100(godzilla) | 0 | 0000 | 0000 |
1101(heatbrl)  | 0 | 0000 | 0000 |
1102(zeroteam) | 6 | fffb | 5105 | 180 2e0 0a0
1103(raiden2)  | 6 | fff7 | 5205 | 180 2e0 3a0 0a0 3a0
1104(raidndx)  | 6 | fff7 | 5205 | 180 2e0 3a0 0a0 3a0
1105
1106Table 0b - Game specific
1107(grainbow) | 5 | fffb | 5905 | 9c8 a84 0a2
1108(cupsoc)   | 5 | fffb | 5905 | 9c8 a84 0a2
1109(legionna) | 0 | 0000 | 0000 |
1110(godzilla) | 0 | 0000 | 0000 |
1111(heatbrl)  | 0 | 0000 | 0000 |
1112(zeroteam) | 6 | ffdb | 5a85 | 180 2e0 0a0 182 2e0 0c0 3c0
1113(raiden2)  | 6 | fff7 | 5a05 | 180 2e0 3a0 0a0 3a0
1114(raidndx)  | 6 | fff7 | 5a05 | 180 2e0 3a0 0a0 3a0
1115
1116Table 0c - cupsoc has various modifications
1117notice how *80 is replaced by *a0 and *9a is replaced with *a6, maybe it has the same function, but on different registers?
1118(grainbow) | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
1119(cupsoc)   | 8 | f3e7 | 6200 | 3a0 3a6 380 aa0 2a6
1120(legionna) | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
1121(godzilla) | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
1122(heatbrl)  | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
1123(zeroteam) | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
1124(raiden2)  | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
1125(raidndx)  | 8 | f3e7 | 6200 | 380 39a 380 a80 29a
1126
1127Table 0d - Zero team uses different trigger, doesn't exist on raiden2/dx
1128(grainbow) | a | fff3 | 6980 | b80 ba0
1129(cupsoc)   | a | fff3 | 6880 | b80 ba0
1130(legionna) | a | fff3 | 6880 | b80 ba0
1131(godzilla) | a | fff3 | 6880 | b80 ba0
1132(heatbrl)  | a | fff3 | 6880 | b80 ba0
1133(zeroteam) | a | fff3 | 6980 | b80 ba0
1134(raiden2)  | 0 | 0000 | 0000 |
1135(raidndx)  | 0 | 0000 | 0000 |
1136
1137Table 0e - Zero Team only
1138(grainbow) | 0 | 0000 | 0000 |
1139(cupsoc)   | 0 | 0000 | 0000 |
1140(legionna) | 0 | 0000 | 0000 |
1141(godzilla) | 0 | 0000 | 0000 |
1142(heatbrl)  | 0 | 0000 | 0000 |
1143(zeroteam) | 8 | fdfd | 7100 | b80 a80 b80
1144(raiden2)  | 0 | 0000 | 0000 |
1145(raidndx)  | 0 | 0000 | 0000 |
1146
1147Table 0f - Same on grainbow/cupsoc, different on raidndx (added compared to raiden2)
1148(grainbow) | 6 | fffb | 7905 | 1a2 2c2 0a2
1149(cupsoc)   | 6 | fffb | 7905 | 1a2 2c2 0a2
1150(legionna) | 0 | 0000 | 0000 |
1151(godzilla) | 0 | 0000 | 0000 |
1152(heatbrl)  | 0 | 0000 | 0000 |
1153(zeroteam) | 0 | 0000 | 0000 |
1154(raiden2)  | 0 | 0000 | 0000 |
1155(raidndx)  | 6 | fffb | 7e05 | 180 282 080 180 282
1156
1157Table 10 - Same on all games
1158(grainbow) | 7 | fdfb | 8100 | b9a b88 888
1159(cupsoc)   | 7 | fdfb | 8100 | b9a b88 888
1160(legionna) | 7 | fdfb | 8100 | b9a b88 888
1161(godzilla) | 7 | fdfb | 8100 | b9a b88 888
1162(heatbrl)  | 7 | fdfb | 8100 | b9a b88 888
1163(zeroteam) | 7 | fdfb | 8100 | b9a b88 888
1164(raiden2)  | 7 | fdfb | 8100 | b9a b88 888
1165(raidndx)  | 7 | fdfb | 8100 | b9a b88 888
1166
1167Table 11 - Same on all games
1168(grainbow) | 7 | fdfb | 8900 | b9a b8a 88a
1169(cupsoc)   | 7 | fdfb | 8900 | b9a b8a 88a
1170(legionna) | 7 | fdfb | 8900 | b9a b8a 88a
1171(godzilla) | 7 | fdfb | 8900 | b9a b8a 88a
1172(heatbrl)  | 7 | fdfb | 8900 | b9a b8a 88a
1173(zeroteam) | 7 | fdfb | 8900 | b9a b8a 88a
1174(raiden2)  | 7 | fdfb | 8900 | b9a b8a 88a
1175(raidndx)  | 7 | fdfb | 8900 | b9a b8a 88a
1176
1177Table 12 - Raiden2/DX differ from others (list and trigger)
1178(grainbow) | 7 | f8f7 | 9180 | b80 b94 b94 894
1179(cupsoc)   | 7 | f8f7 | 9180 | b80 b94 b94 894
1180(legionna) | 7 | f8f7 | 9180 | b80 b94 b94 894
1181(godzilla) | 7 | f8f7 | 9180 | b80 b94 b94 894
1182(heatbrl)  | 7 | f8f7 | 9180 | b80 b94 b94 894
1183(zeroteam) | 7 | f8f7 | 9100 | b80 b94 b94 894
1184(raiden2)  | 7 | fefb | 9100 | b80 b94 894
1185(raidndx)  | 7 | fefb | 9100 | b80 b94 894
1186
1187Table 13 - Raiden2/DX differ from others , slight changes on legionna and hearbrl too
1188           (*94 replaced with *96, to operate on a different register?)
1189(grainbow) | 7 | f8f7 | 9980 | b80 b94 b94 896
1190(cupsoc)   | 7 | f8f7 | 9980 | b80 b94 b94 896
1191(legionna) | 7 | f8f7 | 9980 | b80 b96 b96 896
1192(godzilla) | 7 | f8f7 | 9980 | b80 b94 b94 896
1193(heatbrl)  | 7 | f8f7 | 9980 | b80 b96 b96 896
1194(zeroteam) | 7 | f8f7 | 9900 | b80 b94 b94 896
1195(raiden2)  | 7 | fefb | 9900 | b80 b94 896
1196(raidndx)  | 7 | fefb | 9900 | b80 b94 896
1197
1198Table 14 - Trigger differs on heatbrl + v30 games, unknown param differs on grainbow + v30 games
1199(grainbow) | 0 | 02ff | a180 | b80 b82 b84 b86
1200(cupsoc)   | 0 | ffff | a180 | b80 b82 b84 b86
1201(legionna) | 0 | ffff | a180 | b80 b82 b84 b86
1202(godzilla) | 0 | ffff | a180 | b80 b82 b84 b86
1203(heatbrl)  | 0 | ffff | a100 | b80 b82 b84 b86
1204(zeroteam) | 0 | ffff | a100 | b80 b82 b84 b86
1205(raiden2)  | 0 | 00ff | a100 | b80 b82 b84 b86
1206(raidndx)  | 0 | 00ff | a100 | b80 b82 b84 b86
1207
1208Table 15 - Trigger differs on heatbrl + v30 games, unknown param differs on grainbow + v30 games
1209(grainbow) | f | 02ff | a980 | ba0 ba2 ba4 ba6
1210(cupsoc)   | f | ffff | a980 | ba0 ba2 ba4 ba6
1211(legionna) | f | ffff | a980 | ba0 ba2 ba4 ba6
1212(godzilla) | f | ffff | a980 | ba0 ba2 ba4 ba6
1213(heatbrl)  | f | ffff | a900 | ba0 ba2 ba4 ba6
1214(zeroteam) | f | ffff | a900 | ba0 ba2 ba4 ba6
1215(raiden2)  | f | 00ff | a900 | ba0 ba2 ba4 ba6
1216(raidndx)  | f | 00ff | a900 | ba0 ba2 ba4 ba6
1217
1218Table 16 - Trigger differs on heatbrl
1219(grainbow) | 9 | ffff | b100 | b40 bc0 bc2
1220(cupsoc)   | 9 | ffff | b100 | b40 bc0 bc2
1221(legionna) | 9 | ffff | b100 | b40 bc0 bc2
1222(godzilla) | 9 | ffff | b100 | b40 bc0 bc2
1223(heatbrl)  | 9 | ffff | b080 | b40 bc0 bc2
1224(zeroteam) | 9 | ffff | b100 | b40 bc0 bc2
1225(raiden2)  | 9 | ffff | b100 | b40 bc0 bc2
1226(raidndx)  | 9 | ffff | b100 | b40 bc0 bc2
1227
1228Table 17 - Trigger differs on heatbrl
1229(grainbow) | 6 | ffff | b900 | b60 be0 be2
1230(cupsoc)   | 6 | ffff | b900 | b60 be0 be2
1231(legionna) | 6 | ffff | b900 | b60 be0 be2
1232(godzilla) | 6 | ffff | b900 | b60 be0 be2
1233(heatbrl)  | 6 | ffff | b880 | b60 be0 be2
1234(zeroteam) | 6 | ffff | b900 | b60 be0 be2
1235(raiden2)  | 6 | ffff | b900 | b60 be0 be2
1236(raidndx)  | 6 | ffff | b900 | b60 be0 be2
1237
1238Table 18 - Same for all 68k games, zero team has different trigger, not on Raiden2/DX
1239(grainbow) | a | ff00 | c480 | 080 882
1240(cupsoc)   | a | ff00 | c480 | 080 882
1241(legionna) | a | ff00 | c480 | 080 882
1242(godzilla) | a | ff00 | c480 | 080 882
1243(heatbrl)  | a | ff00 | c480 | 080 882
1244(zeroteam) | a | ff00 | 7c80 | 080 882
1245(raiden2)  | 0 | 0000 | 0000 |
1246(raidndx)  | 0 | 0000 | 0000 |
1247
1248Table 19 - grainbow / cupsoc only
1249(grainbow) | 5 | bf7f | cb8f | 984 aa4 d82 aa2 39b b9a b9a a9f
1250(cupsoc)   | 5 | bf7f | cb8f | 984 aa4 d82 aa2 39b b9a b9a a9f
1251(legionna) | 0 | 0000 | 0000 |
1252(godzilla) | 0 | 0000 | 0000 |
1253(heatbrl)  | 0 | 0000 | 0000 |
1254(zeroteam) | 0 | 0000 | 0000 |
1255(raiden2)  | 0 | 0000 | 0000 |
1256(raidndx)  | 0 | 0000 | 0000 |
1257
1258Table 1a - grainbow / cupsoc only
1259(grainbow) | 5 | fffb | d104 | ac2 9e0 0a2
1260(cupsoc)   | 5 | fffb | d104 | ac2 9e0 0a2
1261(legionna) | 0 | 0000 | 0000 |
1262(godzilla) | 0 | 0000 | 0000 |
1263(heatbrl)  | 0 | 0000 | 0000 |
1264(zeroteam) | 0 | 0000 | 0000 |
1265(raiden2)  | 0 | 0000 | 0000 |
1266(raidndx)  | 0 | 0000 | 0000 |
1267
1268Table 1b - grainbow / cupsoc only
1269(grainbow) | 5 | 7ff7 | dde5 | f80 aa2 984 0c2
1270(cupsoc)   | 5 | 7ff7 | dde5 | f80 aa2 984 0c2
1271(legionna) | 0 | 0000 | 0000 |
1272(godzilla) | 0 | 0000 | 0000 |
1273(heatbrl)  | 0 | 0000 | 0000 |
1274(zeroteam) | 0 | 0000 | 0000 |
1275(raiden2)  | 0 | 0000 | 0000 |
1276(raidndx)  | 0 | 0000 | 0000 |
1277
1278Table 1c - grainbow / cupsoc are the same, different on zero team
1279(grainbow) | 5 | b07f | e38e | 984 ac4 d82 ac2 39b b9a b9a a9a
1280(cupsoc)   | 5 | b07f | e38e | 984 ac4 d82 ac2 39b b9a b9a a9a
1281(legionna) | 0 | 0000 | 0000 |
1282(godzilla) | 0 | 0000 | 0000 |
1283(heatbrl)  | 0 | 0000 | 0000 |
1284(zeroteam) | 5 | 06fb | e105 | a88 994 088
1285(raiden2)  | 0 | 0000 | 0000 |
1286(raidndx)  | 0 | 0000 | 0000 |
1287
1288Table 1d - grainbow / cupsoc are the same, different on zero team
1289(grainbow) | 5 | b07f | eb8e | 984 ac4 d82 ac2 39b b9a b9a a9f
1290(cupsoc)   | 5 | b07f | eb8e | 984 ac4 d82 ac2 39b b9a b9a a9f
1291(legionna) | 0 | 0000 | 0000 |
1292(godzilla) | 0 | 0000 | 0000 |
1293(heatbrl)  | 0 | 0000 | 0000 |
1294(zeroteam) | 5 | 05f7 | ede5 | f88 a84 986 08a
1295(raiden2)  | 0 | 0000 | 0000 |
1296(raidndx)  | 0 | 0000 | 0000 |
1297
1298Table 1e - grainbow / cupsoc are the same, different on zero team, different on raiden2/dx
1299(grainbow) | 5 | fefb | f105 | a88 994 088
1300(cupsoc)   | 5 | fefb | f105 | a88 994 088
1301(legionna) | 0 | 0000 | 0000 |
1302(godzilla) | 0 | 0000 | 0000 |
1303(heatbrl)  | 0 | 0000 | 0000 |
1304(zeroteam) | 4 | 00ff | f790 | f80 b84 b84 b84 b84 b84 b84 b84
1305(raiden2)  | 6 | fff7 | f205 | 182 2e0 3c0 0c0 3c0
1306(raidndx)  | 6 | fff7 | f205 | 182 2e0 3c0 0c0 3c0
1307
1308Table 1f - zeroteam specific
1309(grainbow) | 0 | 0000 | 0000 |
1310(cupsoc)   | 0 | 0000 | 0000 |
1311(legionna) | 0 | 0000 | 0000 |
1312(godzilla) | 0 | 0000 | 0000 |
1313(heatbrl)  | 0 | 0000 | 0000 |
1314(zeroteam) | 6 | 00ff | fc84 | 182 280
1315(raiden2)  | 0 | 0000 | 0000 |
1316(raidndx)  | 0 | 0000 | 0000 |
1317
1318
1319
1320typically the games write data for use with the commands at MCUBASE+0xa0 - 0xaf  and MCUBASE+0xc0 - 0xcf before triggering
1321the operation by writing to MCUBASE+0x100 (or MCUBASE+0x102) with the trigger value.  I believe the commands can change
1322both COP registers and system memory.
1323
1324(MCUBASE typically being 0x100400 in the 68k games, and 0x400 in the v30 games)
1325
1326Seibu Cup Soccer sometimes attempts to use a trigger value which wasn't defined in the table, I don't know what should
1327happen in that case!
1328
1329----
1330
1331Protection Part 2: BCD Maths
1332
1333some additional registers serve as a math box type device, converting numbers + other functions.  Godzilla seems to use
1334this for a protection check, other games (Denjin Makai, Raiden 2) use it for scoring:
1335
1336----
1337
1338Protection Part 3: Private Buffer DMA + RAM Clear
1339(todo, expand on this)
1340
1341address ranges can be specified which allows DMA Fill / Clear operations to be performed, as well as transfering
1342tilemap+palette data to private buffers for rendering.  If you don't use these nothing gets updated on the real
1343hardware!.  These don't currently make much sense because the hardware specifies ranges which aren't mapped, or
1344contain nothing.  It's possible the original hardware has mirroring which this function relies on.
1345
1346the DMA to private buffer operations are currently ignored due to
1347if ((cop_clearfill_lasttrigger==0x14) || (cop_clearfill_lasttrigger==0x15)) return;
1348
1349----
1350
1351Other Protections?
1352
1353Denjin Makai seems to rely on a byteswapped mirror to write the palette.
1354Various other ports go through the COP area, and get mapped to inputs / sounds / video registers, this adds to
1355the confusion and makes it less clear what is / isn't protection related
1356Raiden 2 / Zero Team banking doesn't make much sense, a bank address has been found through testing on real
1357hardware, but the game never writes directly to it.
1358
471359 */
48
491360#include "driver.h"
501361#include "audio/seibu.h"
511362#include "includes/legionna.h"
r6233r6234
751386
761387static void copd2_set_tableoffset(running_machine *machine, UINT16 data)
771388{
78   logerror("mcu_offs %04x\n", data);
1389   //logerror("mcu_offs %04x\n", data);
791390   copd2_offs = data;
801391   if (copd2_offs>0xff)
811392   {
r6233r6234
851396   copd2_table_2[copd2_offs/8] = cop_438;
861397   copd2_table_3[copd2_offs/8] = cop_43a;
871398   copd2_table_4[copd2_offs/8] = cop_43c;
1399#if 0
881400
89/* Uncommented until actively worked on
901401    {
911402        FILE *fp;
921403        char filename[256];
r6233r6234
1201431            fclose(fp);
1211432        }
1221433    }
123*/
1241434
1435   {
1436      int i;
1437
1438      printf("start\n");
1439
1440      for (i=0;i<0x20;i++)
1441      {
1442         int ii;
1443         printf("%02x | %01x | %04x | %04x | ", i, copd2_table_2[i], copd2_table_3[i], copd2_table_4[i]);
1444
1445
1446         for (ii=0;ii<0x8;ii++)
1447         {
1448            printf("%03x ", copd2_table[i*8 + ii]);
1449
1450         }
1451         printf("\n");
1452      }
1453
1454   }
1455#endif
1456
1251457}
1261458
1271459static void copd2_set_tabledata(running_machine *machine, UINT16 data)
1281460{
1291461   copd2_table[copd2_offs] = data;
130   logerror("mcu_data %04x\n", data);
131
132/* Uncommented until actively worked on
1462   //logerror("mcu_data %04x\n", data);
1463#if 0
1331464    {
1341465        FILE *fp;
1351466        char filename[256];
r6233r6234
1411472            fclose(fp);
1421473        }
1431474    }
144*/
1475#endif
1451476}
1461477
1471478
r6233r6234
14112742{
14122743   COMBINE_DATA(&cop_mcu_ram[offset]);
14132744
2745   seibu_cop_log("%06x: Legionna write data %04x at offset %04x\n", cpu_get_pc(space->cpu), data, offset*2);
2746
14142747   switch (offset)
14152748   {
14162749      default:
r6233r6234
16372970  SD Gundam Rainbow Trout
16382971**********************************************************************************************/
16392972
1640READ16_HANDLER( sdgndmrb_mcu_r )
2973READ16_HANDLER( grainbow_mcu_r )
16412974{
16422975   switch (offset)
16432976   {
r6233r6234
16733006}
16743007
16753008
1676WRITE16_HANDLER( sdgndmrb_mcu_w )
3009WRITE16_HANDLER( grainbow_mcu_w )
16773010{
16783011   COMBINE_DATA(&cop_mcu_ram[offset]);
16793012
r6233r6234
17703103            ---- --x- Midground Layer
17713104            ---- ---x Background Layer
17723105            */
1773         sdgndmrb_pri_n = cop_mcu_ram[offset] & 0xf;
3106         grainbow_pri_n = cop_mcu_ram[offset] & 0xf;
17743107         break;
17753108      }
17763109
r6233r6234
18873220{
18883221   COMBINE_DATA(&cop_mcu_ram[offset]);
18893222
3223   seibu_cop_log("%06x: Legionna write data %04x at offset %04x\n", cpu_get_pc(space->cpu), data, offset*2);
3224
3225
18903226   switch (offset)
18913227   {
18923228      default:
r6233r6234
19683304{
19693305   COMBINE_DATA(&cop_mcu_ram[offset]);
19703306
3307   seibu_cop_log("%06x: raiden2 write data %04x at offset %04x\n", cpu_get_pc(space->cpu), data, offset*2);
3308
19713309   switch (offset)
19723310   {
19733311      default:
src/mame/machine/seicop.h
r6233r6234
1111WRITE16_HANDLER( godzilla_mcu_w );
1212READ16_HANDLER( denjinmk_mcu_r );
1313WRITE16_HANDLER( denjinmk_mcu_w );
14READ16_HANDLER( sdgndmrb_mcu_r );
15WRITE16_HANDLER( sdgndmrb_mcu_w );
14READ16_HANDLER( grainbow_mcu_r );
15WRITE16_HANDLER( grainbow_mcu_w );
1616READ16_HANDLER( legionna_mcu_r );
1717WRITE16_HANDLER( legionna_mcu_w );
1818
src/mame/mamedriv.c
r6233r6234
249249   /* "Scramble hardware" (and variations) games */
250250   DRIVER( scramble )   /* GX387 (c) 1981 Konami */
251251   DRIVER( scrambles )   /* GX387 (c) 1981 Stern */
252   DRIVER( scramblebf )/* bootleg */
252253   DRIVER( scramblb )   /* bootleg */
253254   DRIVER( scramb2 )   /* bootleg */
254255   DRIVER( explorer )   /* bootleg */
r6233r6234
696697   DRIVER( polepos2 )   /* (c) 1983 */
697698   DRIVER( polepos2a )   /* 136014   (c) 1983 + Atari license */
698699   DRIVER( polepos2b )   /* bootleg */
700   DRIVER( polepos2bi )/* bootleg */
699701   /* no custom I/O in the following, HD63701 (or compatible) microcontroller instead */
700702   DRIVER( pacland )   /* (c) 1984 */
701703   DRIVER( pacland2 )   /* (c) 1984 */
r6233r6234
26882690   DRIVER( dstlku )   /* 18/08/1994 (c) 1994 (US) */
26892691   DRIVER( dstlkur1 )   /* 05/07/1994 (c) 1994 (US) */
26902692   DRIVER( dstlka )   /* 05/07/1994 (c) 1994 (Asia) */
2693   DRIVER( dstlkh )   /* 18/08/1994 (c) 1994 (Hispanic) */
26912694   DRIVER( vampj )      /* 05/07/1994 (c) 1994 (Japan) */
26922695   DRIVER( vampja )   /* 05/07/1994 (c) 1994 (Japan) */
26932696   DRIVER( vampjr1 )   /* 30/06/1994 (c) 1994 (Japan) */
r6233r6234
43724375   DRIVER( pstone )   /* 1999.02 Power Stone */
43734376   DRIVER( crzytaxi )   /* 1999.02 Crazy Taxi */
43744377   DRIVER( zombrvn )   /* 1999.02 Zombie Revenge */
4375                  /* 1999.03 Airline Pilots */
4378   DRIVER( airlbios )   /* 1999.03 Airline Pilots */
4379   DRIVER( alpiltdx )
43764380   DRIVER( ggram2 )   /* 1999.04 Giant Gram Zen Nippon Pro-wres 2 */
43774381                  /* 1999.05 Taisen Puzzle Kurutto Stone */
43784382                  /* 1999.06 Ringout 4x4 */
r6233r6234
50915095   DRIVER( pbaction2 )   /* (c) 1985 Tehkan */
50925096   DRIVER( pbaction3 )   /* (c) 1985 Tehkan */
50935097   DRIVER( pbaction4 )   /* (c) 1985 Tehkan */
5098   DRIVER( pbaction5 )   /* (c) 1985 Tehkan */
50945099                  /* 6009 Tank Busters */
50955100   DRIVER( ponttehk )   /* 6011 - (c) 1985 Tehkan */
50965101   DRIVER( lvpoker )   /* ???? - (c) 1985 Tehkan */
r6233r6234
51825187   DRIVER( tp84a )      /* GX388 (c) 1984 */
51835188   DRIVER( tp84b )      /* GX388 (c) 1984 */
51845189   DRIVER( hyperspt )   /* GX330 (c) 1984 + Centuri */
5190   DRIVER( hypersptb ) /* bootleg */
51855191   DRIVER( hpolym84 )   /* GX330 (c) 1984 */
51865192   DRIVER( sbasketb )   /* GX405 (c) 1984 (Version I, Encrypted) */
51875193   DRIVER( sbasketh )   /* GX405 (c) 1984 (Version H, Unprotected) */
r6233r6234
56855691   DRIVER( firetrk )   /* 030926           1978/06 [6808] */
56865692   DRIVER( skydiver )   /* 009787           1978/06 [6800] */
56875693   /* Smokey Joe */   /* 030926           1978/07 [6502] */
5688   DRIVER( sbrkout )   /* 033442-033455    1978/09 [6502] */
5694   DRIVER( sbrkout3 )   /* 033442-033452    1978/09 [6502] */
5695   DRIVER( sbrkout )   /* 033453-033455    1978/09 [6502] */
56895696   DRIVER( atarifb )   /* 033xxx           1978/10 [6502] */
56905697   DRIVER( atarifb1 )   /* 033xxx           1978/10 [6502] */
56915698   DRIVER( orbit )      /* 033689-033702    1978/11 [6800] */
r6233r6234
71327139   DRIVER( heatbrlu )   /* (c) 1992 Tad (US) */
71337140   DRIVER( godzilla )   /* (c) 1993 Banpresto */
71347141   DRIVER( denjinmk )   /* (c) 199? Banpresto */
7135   DRIVER( sdgndmrb )   /* (c) 1993 Banpresto */
7142   DRIVER( grainbow )   /* (c) 1993 Banpresto */
71367143   DRIVER( cupsoc )   /* (c) 1992 Seibu */
71377144   DRIVER( cupsoca )   /* (c) 1992 Seibu */
71387145   DRIVER( cupsocs )   /* (c) 1992 Seibu */
r6233r6234
74817488   DRIVER( explbrkr )   /* (c) 1992 Kaneko */
74827489   DRIVER( bakubrkr )   /* (c) 1992 Kaneko */
74837490   DRIVER( shogwarr )   /* (c) 1992 Kaneko */
7484   DRIVER( shogwarre )   /* (c) 1992 Kaneko */
7491   DRIVER( shogwarru )   /* (c) 1992 Kaneko */
74857492   DRIVER( fjbuster )   /* (c) 1992 Kaneko */
74867493   DRIVER( brapboys )   /* (c) 1992 Kaneko */
74877494   DRIVER( brapboysj )   /* (c) 1992 Kaneko */
r6233r6234
80518058   DRIVER( ddenlovb )   /* bootleg */
80528059   DRIVER( hanakanz )   /* "507" 1996 Dynax */
80538060   DRIVER( akamaru )   /* "501" 1996 Dynax */
8061   DRIVER( sryudens )   /* "502" 1996 Dynax / Face */
80548062   DRIVER( mjflove )   /*       1996 Dynax */
80558063   DRIVER( hkagerou )   /* "510" Hana Kagerou 1996 Nakanihon */
80568064   DRIVER( realbrk )   /* "600" Billiard Academy Real Break 1998 (Europe)*/
r6233r6234
80618069   DRIVER( mjreach1 )   /* "526" Mahjong Reach Ippatsu 1998 Nihon System/Dynax */
80628070   DRIVER( cafebrk )   /* "528" Mahjong Cafe Break (C) 1999 Nakanihon / Dynax */
80638071   DRIVER( jongtei )   /* "532" Mahjong Jong-Tei (C) 1999 Dynax */
8072   DRIVER( daimyojn )   /* 2002 Dynax / Techno-Top */
80648073
80658074   DRIVER( pkgnsh )   /* "505" Pachinko Gindama Shoubu 1998 (Japan) */
80668075   DRIVER( pkgnshdx )   /* "522" Pachinko Gindama Shoubu DX 1998 (Japan) */
r6233r6234
83048313
83058314   /* Dynamo games */
83068315   DRIVER( skeetsht )   /* (c) 1991 */
8316   DRIVER( toursol )
83078317
83088318   /* Taiyo games */
83098319   DRIVER( dynamski )   /* (c) 1984 Taiyo */
r6233r6234
93049314   DRIVER( lucky74a )   /* (c) 1988 Wing Co. Ltd */
93059315   DRIVER( lucky8 )   /* (c) 1989 Wing Co. Ltd */
93069316   DRIVER( lucky8a )   /* (c) 1989 Wing Co. Ltd */
9317   DRIVER( lucky8b )   /* (c) 1989 Wing Co. Ltd */
93079318   DRIVER( luckgrln )   /* (c) 1991 Wing Co. Ltd */
93089319
93099320   DRIVER( skill98 )   /* (c) 1998 Amcoe */
src/mame/includes/cvs.h
r6233r6234
1818extern UINT8 *cvs_s2636_0_ram;
1919extern UINT8 *cvs_s2636_1_ram;
2020extern UINT8 *cvs_s2636_2_ram;
21extern UINT8 *cvs_fo_state;
2122
2223MACHINE_START( cvs );
2324
src/mame/includes/trackfld.h
r6233r6234
44
55***************************************************************************/
66
7#include "sound/msm5205.h"
8
79/*----------- defined in audio/trackfld.c -----------*/
810
911WRITE8_HANDLER( konami_sh_irqtrigger_w );
r6233r6234
1517WRITE8_HANDLER( konami_SN76496_latch_w );
1618WRITE8_DEVICE_HANDLER( konami_SN76496_w );
1719
20/*----------- defined in drivers/trackfld.c -----------*/
21extern const msm5205_interface hyprolyb_msm5205_config;
22extern WRITE8_HANDLER( hyprolyb_adpcm_w );
23ADDRESS_MAP_EXTERN( hyprolyb_adpcm_map, 8 );
1824
1925/*----------- defined in video/trackfld.c -----------*/
2026
src/mame/includes/legionna.h
r6233r6234
11/*----------- defined in video/legionna.c -----------*/
22
33extern UINT16 *legionna_back_data,*legionna_fore_data,*legionna_mid_data,*legionna_scrollram16,*legionna_textram;
4extern UINT8 sdgndmrb_pri_n;
4extern UINT8 grainbow_pri_n;
55extern UINT16 legionna_layer_disable;
66
77void heatbrl_setgfxbank(UINT16 data);
r6233r6234
1616VIDEO_START( denjinmk );
1717VIDEO_UPDATE( legionna );
1818VIDEO_UPDATE( godzilla );
19VIDEO_UPDATE( sdgndmrb );
19VIDEO_UPDATE( grainbow );
src/mame/mame.mak
r6233r6234
15831583   $(DRIVERS)/pangofun.o \
15841584   $(DRIVERS)/pasha2.o \
15851585   $(DRIVERS)/pass.o $(VIDEO)/pass.o \
1586   $(DRIVERS)/pcat_dyn.o \
15861587   $(DRIVERS)/pcat_nit.o \
15871588   $(DRIVERS)/pcxt.o \
15881589   $(DRIVERS)/peplus.o \
r6233r6234
18681869            $(MAMESRC)/machine/snessdd1.c \
18691870            $(MAMESRC)/machine/snes7110.c \
18701871            $(MAMESRC)/machine/snesst10.c
1872$(VIDEO)/model2.o:       $(MAMESRC)/video/model2rd.c
1873$(VIDEO)/model3.o:       $(MAMESRC)/video/m3raster.c
src/mame/video/toaplan2.c
r6233r6234
582582      tilemap_set_scrolldx(tx_tilemap, 0x1d4 +1, 0x2a);
583583   }
584584
585   display_sp[0] = 1;
585586   register_state_save(machine,1);
586587}
587588
r6233r6234
591592   truxton2_create_tilemaps_0(machine);
592593   tilemap_set_scrolldx(tx_tilemap, 0x1d4, 0x2a);
593594   defaultOffsets();
595   display_sp[0] = 1;
596   display_sp[1] = 1;
594597   register_state_save(machine,1);
595598}
596599
r6233r6234
608611
609612   tilemap_set_scrolldx(tx_tilemap, 0x1d4, 0x2a);
610613   defaultOffsets();
614   display_sp[0] = 1;
615   display_sp[1] = 1;
611616   register_state_save(machine,1);
612617}
613618
src/mame/video/legionna.c
r6233r6234
1515/******************************************************************************/
1616
1717static UINT16 back_gfx_bank = 0,fore_gfx_bank = 0,mid_gfx_bank = 0;
18UINT8 sdgndmrb_pri_n;
18UINT8 grainbow_pri_n;
1919
2020void heatbrl_setgfxbank(UINT16 data)
2121{
r6233r6234
405405   return 0;
406406}
407407
408VIDEO_UPDATE( sdgndmrb )
408VIDEO_UPDATE( grainbow )
409409{
410410   /* Setup the tilemaps */
411411   tilemap_set_scrollx( background_layer, 0, legionna_scrollram16[0] );
r6233r6234
419419
420420   bitmap_fill(bitmap,cliprect,get_black_pen(screen->machine));
421421
422   if(!(sdgndmrb_pri_n & 1))
422   if(!(grainbow_pri_n & 1))
423423      tilemap_draw(bitmap,cliprect,background_layer,0,0);
424424   draw_sprites(screen->machine,bitmap,cliprect,2);
425425
426   if(!(sdgndmrb_pri_n & 2))
426   if(!(grainbow_pri_n & 2))
427427      tilemap_draw(bitmap,cliprect,midground_layer,0,0);
428428
429429   draw_sprites(screen->machine,bitmap,cliprect,1);
430430
431   if(!(sdgndmrb_pri_n & 4))
431   if(!(grainbow_pri_n & 4))
432432      tilemap_draw(bitmap,cliprect,foreground_layer,0,0);
433433
434434   draw_sprites(screen->machine,bitmap,cliprect,0);
435435
436436   draw_sprites(screen->machine,bitmap,cliprect,3);
437437
438   if(!(sdgndmrb_pri_n & 8))
438   if(!(grainbow_pri_n & 8))
439439      tilemap_draw(bitmap,cliprect,text_layer,0,0);
440440
441441   return 0;
src/mame/drivers/vroulet.c
r6233r6234
134134   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_4) PORT_NAME("Payout")
135135
136136   PORT_START("IN1")
137   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // button1 duplicate
138   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
139   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 )
140   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON3 )
141   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 )
142   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 )
143   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 )
137   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Red")
138   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Blue")
139   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("2")
140   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("4")
141   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("6")
142   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("10")
143   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("20")
144144   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
145145
146146   PORT_START("IN2")
src/mame/drivers/zn.c
r6233r6234
180180   { "gdarius2", tt01, tt07 }, /* OK */
181181   { "aerofgts", kn01, kn02 }, /* OK */
182182   { "sncwgltd", kn01, kn02 }, /* OK */
183   /* 2009-10 FP: to avoid crash when running BIOS sets alone, I added the entries below.        */
184   /* Now we get "Error B930 - Cannot Find Program Rom". Is this the correct way to handle them? */
185   { "acpsx",    ac01, ac02 },
186   { "atpsx",    tw01, tw02 },
187   { "atluspsx", at01, at02 },
188   { "cpzn1",    cp01, cp02 },
189   { "cpzn2",    cp01, cp02 },
190   { "psarc95",  et01, et02 },
191   { "tps",      mg01, mg02 },
192   { "taitofx1", tt01, tt02 },
193   { "vspsx",    kn01, kn02 },
183194   { NULL, NULL, NULL }
184195};
185196
r6233r6234
27762787
27772788ROM_START( cpzn1 )
27782789   CPZN1_BIOS
2790   ROM_REGION32_LE( 0x80000, "user3", ROMREGION_ERASE00 )
2791   ROM_REGION32_LE( 0x2400000, "user2", ROMREGION_ERASE00 )
27792792   ROM_REGION( 0x50000, "audiocpu", ROMREGION_ERASE00 )
27802793ROM_END
27812794
r6233r6234
30353048
30363049ROM_START( cpzn2 )
30373050   CPZN2_BIOS
3051   ROM_REGION32_LE( 0x80000, "user3", ROMREGION_ERASE00 )
3052   ROM_REGION32_LE( 0x3000000, "user2", ROMREGION_ERASE00 )
30383053   ROM_REGION( 0x50000, "audiocpu", ROMREGION_ERASE00 )
30393054ROM_END
30403055
r6233r6234
34793494
34803495ROM_START( tps )
34813496   TPS_BIOS
3497   ROM_REGION32_LE( 0x02800000, "user2", ROMREGION_ERASE00 )
34823498ROM_END
34833499
34843500/*
r6233r6234
37163732
37173733ROM_START( vspsx )
37183734   KN_BIOS
3735   ROM_REGION32_LE( 0x0280000, "user2", ROMREGION_ERASE00 )
3736   ROM_REGION32_LE( 0x1800000, "user3", ROMREGION_ERASE00 )
37193737ROM_END
37203738
37213739ROM_START( aerofgts )
r6233r6234
37653783
37663784ROM_START( taitofx1 )
37673785   TAITOFX1_BIOS
3786   ROM_REGION32_LE( 0x01000000, "user2", ROMREGION_ERASE00 )
37683787   ROM_REGION( 0x080000, "audiocpu", ROMREGION_ERASE00 )
37693788ROM_END
37703789
r6233r6234
40424061
40434062ROM_START( psarc95 )
40444063   PSARC95_BIOS
4064   ROM_REGION32_LE( 0x1800000, "user2", ROMREGION_ERASE00 )
40454065   ROM_REGION( 0x080000, "audiocpu", ROMREGION_ERASE00 )
4066   ROM_REGION( 0x400000, "ymf", ROMREGION_ERASE00 )
40464067ROM_END
40474068
40484069ROM_START( beastrzr )
r6233r6234
42464267
42474268ROM_START( atpsx )
42484269   TW_BIOS
4270   ROM_REGION32_LE( 0x200000, "user2", ROMREGION_ERASE00 )
42494271ROM_END
42504272
42514273ROM_START( primrag2 )
r6233r6234
42694291
42704292ROM_START( acpsx )
42714293   AC_BIOS
4294   ROM_REGION32_LE( 0x2000000, "user2", ROMREGION_ERASE00 )
42724295ROM_END
42734296
42744297ROM_START( nbajamex )
r6233r6234
43314354
43324355ROM_START( atluspsx )
43334356   ATLUS_BIOS
4357   ROM_REGION32_LE( 0x02000000, "user2", ROMREGION_ERASE00 )
43344358ROM_END
43354359
43364360ROM_START( hvnsgate )
src/mame/drivers/ddenlovr.c
r6233r6234
99Sound: (AY-3-8910) + YM2413 + MSM6295
1010Other: Real Time Clock (Oki MSM6242B or 72421B)
1111
12-----------------------------------------------------------------------------------------------------------------------------
13Year + Game                 Board             CPU     Sound                    Custom                                 Other
14-----------------------------------------------------------------------------------------------------------------------------
1592 Monkey Mole Panic                          2xZ80   AY8910 + YM2413 + M6295  NL-001 1108(x2)   1427(x2)             8251
1693 Animalandia Jr.                            2xZ80   AY8910 + YM2413 + M6295  NL-001 NL-003(x2) NL-004(x2)           8251
1793 Quiz Channel Question  N7311208L1-2        Z80              YM2413 + M6295  NL-002 1108F0405  1427F0071
1893 First Funky Fighter    N7403208L-2         2xZ80   YM2149 + YM2413 + M6295  NL-001 NL-002     NL-005
1994 Mysterious World       D7107058L1-1        Z80     YM2149 + YM2413 + M6295  NL-002 1108F0405  1427F0071 4L02?
2094 Mysterious Universe    D7107058L1-1        Z80     YM2149 + YM2413 + M6295  NL-002 1108F0405  1427F0071
2194 Mysterious Orient      D7107058L1-1        Z80     YM2149 + YM2413 + M6295  NL-002 1108F0405  1427F0071
2294 Quiz 365                                   68000   AY8910 + YM2413 + M6295
2394 Rong Rong (J)          N8010178L1          Z80              YM2413 + M6295  NL-002 1108F0405  1427F0071 4L02F2637
2494 Hana Ginga             D8102048L1          Z80     YM2149 + YM2413 + M6295  NL-002 1108F0405  1427F0071 4L02?
2594 Super Hana Paradise    N8010178L1+N73RSUB  Z80              YM2413 + M6295  NL-002 1108F0406  1427F0071 4L02F2637
2695 Dai Chuuka Ken         D11107218L1         Z80     AY8910 + YM2413 + M6295  70C160F009
2795 Hana Gokou             N83061581L1         Z80     AY8910 + YM2413 + M6295  NL-002 1108?      1427?     4L02?
2895 Nettoh Quiz Champion                       68000   AY8910 + YM2413 + M6295
2995 Don Den Lover (J)      D1120901L8          68000   YMZ284 + YM2413 + M6295  NL-005
3096 Don Den Lover (HK)     D11309208L1         68000   YMZ284 + YM2413 + M6295  NL-005
3196 Panel&Variety Akamaru                      68000   YMZ284 + YM2413 + M6295  NL-005
3296 Fantasic Love          NS5000101+?         Z80     YMZ284 + YM2413 + M6295  NL-005
3396 Hana Kanzashi                              Z80              YM2413 + M6295  70C160F011?
3497 Hana Kagerou                               Z80              YM2413 + M6295  70C160F011
3598 Chuukanejyo            D11107218L1         Z80     AY8910 + YM2413 + M6295  70C160F009
3698 Reach Ippatsu                              Z80              YM2413 + M6295  70C160F011
37-----------------------------------------------------------------------------------------------------------------------------
12------------------------------------------------------------------------------------------------------------------
13Year + Game              Board              CPU   Sound              Custom                                 Other
14------------------------------------------------------------------------------------------------------------------
1592 Monkey Mole Panic                        2xZ80 AY8910 YM2413 M6295 NL-001 1108(x2)   1427(x2)            8251
1693 Animalandia Jr.                          2xZ80 AY8910 YM2413 M6295 NL-001 NL-003(x2) NL-004(x2)          8251
1793 Quiz Channel Question N7311208L1-2       Z80          YM2413 M6295 NL-002 1108F0405  1427F0071
1893 First Funky Fighter   N7403208L-2        2xZ80 YM2149 YM2413 M6295 NL-001 NL-002     NL-005
1994 Mysterious World      D7107058L1-1       Z80   YM2149 YM2413 M6295 NL-002 1108F0405  1427F0071 4L02?
2094 Mysterious Universe   D7107058L1-1       Z80   YM2149 YM2413 M6295 NL-002 1108F0405  1427F0071
2194 Mysterious Orient     D7107058L1-1       Z80   YM2149 YM2413 M6295 NL-002 1108F0405  1427F0071
2294 Quiz 365                                 68000 AY8910 YM2413 M6295
2394 Rong Rong (J)         N8010178L1         Z80          YM2413 M6295 NL-002 1108F0405  1427F0071 4L02F2637
2494 Hana Ginga            D8102048L1         Z80   YM2149 YM2413 M6295 NL-002 1108F0405  1427F0071 4L02?
2594 Super Hana Paradise   N8010178L1+N73RSUB Z80          YM2413 M6295 NL-002 1108F0406  1427F0071 4L02F2637
2695 Dai Chuuka Ken        D11107218L1        Z80   AY8910 YM2413 M6295 70C160F009
2795 Hana Gokou            N83061581L1        Z80   AY8910 YM2413 M6295 NL-002 1108?      1427?     4L02?
2895 Nettoh Quiz Champion                     68000 AY8910 YM2413 M6295
2995 Don Den Lover (J)     D1120901L8         68000 YMZ284 YM2413 M6295 NL-005
3096 Don Den Lover (HK)    D11309208L1        68000 YMZ284 YM2413 M6295 NL-005
3196 Panel&Variety Akamaru                    68000 YMZ284 YM2413 M6295 NL-005
3296 Fantasic Love         NS5000101+?        Z80   YMZ284 YM2413 M6295 NL-005
3396 Hana Kanzashi                            Z80          YM2413 M6295 70C160F011?
3496 Mj Seiryu Densetsu    NM5020403          Z80   YMZ284 YM2413 M6295 70C160F011?
3597 Hana Kagerou                             Z80          YM2413 M6295 70C160F011
3698 Chuukanejyo           D11107218L1        Z80   AY8910 YM2413 M6295 70C160F009
3798 Reach Ippatsu                            Z80          YM2413 M6295 70C160F011
3899 Jong-Tei              NM532-9902         Z80          YM2413 M6295 4L10FXXXX?
3902 Mj Daimyojin          TSM015-0111        Z80          YM2413 M6295 70C160F011
40------------------------------------------------------------------------------------------------------------------
3841
39
4042TODO:
4143
4244- NVRAM, RTC
r6233r6234
8284- ddenlvrj, akamaru: the elapsed time text in the "game information" screen
8385  is all wrong (RTC/interrupts related).
8486
87- sryudens: Transparency problems (Test->Option->Gal, Bonus Game during Demo mode).
88  e.g. in the latter, transparency pen is set to ff instead of 0 (I/O address 2b)
89
90Notes:
91
92- daimyojn: In Test->Option, press "N Ron Ron N" to access more options
93
8594***************************************************************************/
8695
8796#include "driver.h"
r6233r6234
379388      popmessage("warning: pen_size %d arg_size %d",pen_size,arg_size);
380389#endif
381390
391   // sryudens game bug
392   if (pen_size == 16 && arg_size == 16)
393      return src;
394
382395   x = sx;
383396
384397   for (;;)
r6233r6234
32703283   AM_RANGE(0x0380, 0x0380) AM_DEVREADWRITE("oki", okim6295_r, okim6295_w)
32713284ADDRESS_MAP_END
32723285
3286
32733287/***************************************************************************
32743288                          Mahjong Jong-Tei
32753289***************************************************************************/
r6233r6234
33093323ADDRESS_MAP_END
33103324
33113325
3326/***************************************************************************
3327                            Mahjong Seiryu Densetsu
3328***************************************************************************/
33123329
3330static ADDRESS_MAP_START( sryudens_map, ADDRESS_SPACE_PROGRAM, 8 )
3331   AM_RANGE(0x0000, 0x5fff) AM_ROM                        // ROM
3332   AM_RANGE(0x6000, 0x6fff) AM_RAM                        // RAM
3333   AM_RANGE(0x7000, 0x7fff) AM_RAMBANK(2)                  // RAM (Banked)
3334   AM_RANGE(0x8000, 0xffff) AM_ROMBANK(1)                  // ROM (Banked)
3335   AM_RANGE(0xe000, 0xe1ff) AM_WRITE(rongrong_palette_w)
3336ADDRESS_MAP_END
3337
3338static READ8_HANDLER( sryudens_keyb_r )
3339{
3340   UINT8 val = 0x3f;
3341
3342   if      (!(keyb & 0x01))   val = input_port_read(space->machine, offset ? "KEY5" : "KEY0");
3343   else if (!(keyb & 0x02))   val = input_port_read(space->machine, offset ? "KEY6" : "KEY1");
3344   else if (!(keyb & 0x04))   val = input_port_read(space->machine, offset ? "KEY7" : "KEY2");
3345   else if (!(keyb & 0x08))   val = input_port_read(space->machine, offset ? "KEY8" : "KEY3");
3346   else if (!(keyb & 0x10))   val = input_port_read(space->machine, offset ? "KEY9" : "KEY4");
3347
3348   val |= input_port_read(space->machine, offset ? "HOPPER" : "BET");
3349   if (offset)   val &= 0x7f;   // bit 7 = blitter busy
3350   return val;
3351}
3352
3353static WRITE8_HANDLER( sryudens_coincounter_w )
3354{
3355   // bit 0 = coin counter
3356   // bit 1 = out counter
3357   // bit 2
3358   // bit 4
3359   // bit 7 = ? mostly on
3360
3361   coin_counter_w(0, data & 1);
3362
3363   if (data & 0x68)
3364      logerror("%04x: warning, coin counter = %02x\n", cpu_get_pc(space->cpu), data);
3365
3366#ifdef MAME_DEBUG
3367//  popmessage("COIN = %02x",data);
3368#endif
3369}
3370
3371static WRITE8_HANDLER( sryudens_rambank_w )
3372{
3373   UINT8 *rom = memory_region(space->machine, "maincpu");
3374   memory_set_bankptr(space->machine, 2, &rom[0x90000 + 0x1000 * (data & 0x0f)]);
3375//  logerror("%04x: rambank = %02x\n", cpu_get_pc(space->cpu), data);
3376}
3377
3378static ADDRESS_MAP_START( sryudens_portmap, ADDRESS_SPACE_IO, 8 )   ADDRESS_MAP_GLOBAL_MASK(0xff)
3379   AM_RANGE(0x00, 0x00) AM_DEVREADWRITE("oki", okim6295_r, okim6295_w)
3380   AM_RANGE(0x02, 0x03) AM_DEVWRITE("ym", ym2413_w)
3381   AM_RANGE(0x04, 0x05) AM_DEVWRITE("ay", ay8910_address_data_w)
3382   AM_RANGE(0x1c, 0x1c) AM_READNOP AM_WRITE(sryudens_rambank_w)   // ? ack on RTC int
3383   AM_RANGE(0x1e, 0x1e) AM_WRITE(mjflove_rombank_w)
3384   AM_RANGE(0x20, 0x23) AM_WRITE(ddenlovr_palette_base_w)
3385   AM_RANGE(0x24, 0x27) AM_WRITE(ddenlovr_palette_mask_w)
3386   AM_RANGE(0x28, 0x2b) AM_WRITE(ddenlovr_transparency_pen_w)
3387   AM_RANGE(0x2c, 0x2f) AM_WRITE(ddenlovr_transparency_mask_w)
3388   AM_RANGE(0x34, 0x34) AM_WRITE(ddenlovr_bgcolor_w)
3389   AM_RANGE(0x35, 0x35) AM_WRITE(ddenlovr_priority_w)
3390   AM_RANGE(0x36, 0x36) AM_WRITE(ddenlovr_layer_enable_w)
3391   AM_RANGE(0x38, 0x38) AM_READNOP         // ? ack or watchdog
3392   AM_RANGE(0x40, 0x41) AM_WRITE(mjflove_blitter_w)
3393   AM_RANGE(0x43, 0x43) AM_READ(rongrong_gfxrom_r)
3394   AM_RANGE(0x50, 0x50) AM_READ(hanakanz_rand_r)
3395   AM_RANGE(0x70, 0x70) AM_DEVWRITE("oki", quizchq_oki_bank_w)
3396   AM_RANGE(0x80, 0x8f) AM_DEVREADWRITE("rtc", msm6242_r, msm6242_w)   // 6242RTC
3397   AM_RANGE(0x90, 0x90) AM_READ_PORT("DSW1")
3398   AM_RANGE(0x91, 0x91) AM_READ_PORT("DSW2")
3399   AM_RANGE(0x92, 0x92) AM_READ_PORT("DSW4")
3400   AM_RANGE(0x93, 0x93) AM_READ_PORT("DSW3")
3401   AM_RANGE(0x94, 0x94) AM_READ_PORT("DSWTOP")
3402   AM_RANGE(0x98, 0x98) AM_WRITE(sryudens_coincounter_w)
3403   AM_RANGE(0x99, 0x99) AM_WRITE(hanakanz_keyb_w)
3404   AM_RANGE(0x9a, 0x9a) AM_READ_PORT("SYSTEM")
3405   AM_RANGE(0x9b, 0x9c) AM_READ(sryudens_keyb_r)
3406ADDRESS_MAP_END
3407
3408
3409/***************************************************************************
3410                            Mahjong Daimyojin
3411***************************************************************************/
3412
3413static READ8_HANDLER( daimyojn_keyb1_r )
3414{
3415   UINT8 val = 0x3f;
3416
3417   if      (!(keyb & 0x01))   val = input_port_read(space->machine, "KEY0");
3418   else if (!(keyb & 0x02))   val = input_port_read(space->machine, "KEY1");
3419   else if (!(keyb & 0x04))   val = input_port_read(space->machine, "KEY2");
3420   else if (!(keyb & 0x08))   val = input_port_read(space->machine, "KEY3");
3421   else if (!(keyb & 0x10))   val = input_port_read(space->machine, "KEY4");
3422
3423   val |= input_port_read(space->machine, "BET");
3424   return val;
3425}
3426static READ8_HANDLER( daimyojn_keyb2_r )
3427{
3428   UINT8 val = 0x3f;
3429
3430   if      (!(keyb & 0x01))   val = input_port_read(space->machine, "KEY5");
3431   else if (!(keyb & 0x02))   val = input_port_read(space->machine, "KEY6");
3432   else if (!(keyb & 0x04))   val = input_port_read(space->machine, "KEY7");
3433   else if (!(keyb & 0x08))   val = input_port_read(space->machine, "KEY8");
3434   else if (!(keyb & 0x10))   val = input_port_read(space->machine, "KEY9");
3435
3436   val |= input_port_read(space->machine, "HOPPER");
3437   return val;
3438}
3439
3440// 1B18: D4 ED 76 C9 CB
3441// 1B1D: 96 AF 34 8B 89
3442static UINT8 daimyojn_protection_val;
3443
3444static WRITE8_HANDLER( daimyojn_protection_w )
3445{
3446   daimyojn_protection_val = data;
3447}
3448
3449static READ8_HANDLER( daimyojn_protection_r )
3450{
3451   switch (daimyojn_protection_val)
3452   {
3453      case 0xd4:   return 0x96;
3454      case 0xed:   return 0xaf;
3455      case 0x76:   return 0x34;
3456      case 0xc9:   return 0x8b;
3457      case 0xcb:   return 0x89;
3458   }
3459   return 0xff;
3460}
3461
3462static WRITE8_DEVICE_HANDLER( daimyojn_okibank_w )
3463{
3464   okim6295_set_bank_base(device, ((data >> 4) & 0x01) * 0x40000);
3465}
3466
3467static UINT8 daimyojn_palette_sel;
3468static WRITE8_HANDLER( daimyojn_palette_sel_w )
3469{
3470   daimyojn_palette_sel = data;
3471}
3472
3473static WRITE8_HANDLER( daimyojn_blitter_data_palette_w )
3474{
3475   if (daimyojn_palette_sel & 0x01)
3476      hanakanz_palette_w(space, offset, data);
3477   else
3478      hanakanz_blitter_data_w(space, offset, data);
3479}
3480
3481static READ8_HANDLER( daimyojn_year_hack_r )
3482{
3483   // See code at C8D7, 633f holds reg B of the RTC
3484   return offset ? 1 : 0;   // year = 0x10 (BCD)
3485}
3486
3487static ADDRESS_MAP_START( daimyojn_portmap, ADDRESS_SPACE_IO, 8 )   ADDRESS_MAP_GLOBAL_MASK(0xff)
3488   AM_RANGE(0x2c, 0x2c) AM_READ(jongtei_busy_r) AM_DEVWRITE("oki", daimyojn_okibank_w)
3489   AM_RANGE(0x2e, 0x2e) AM_WRITE(daimyojn_palette_sel_w)
3490   AM_RANGE(0x30, 0x30) AM_WRITE(hanakanz_blitter_reg_w)
3491   AM_RANGE(0x31, 0x31) AM_WRITE(jongtei_dsw_keyb_w)
3492   AM_RANGE(0x32, 0x32) AM_READ(hanakanz_dsw_r)
3493   AM_RANGE(0x40, 0x40) AM_WRITE(daimyojn_blitter_data_palette_w)
3494   AM_RANGE(0x42, 0x44) AM_READ(hanakanz_gfxrom_r)
3495   AM_RANGE(0x8a, 0x8b) AM_READ(daimyojn_year_hack_r)   // ?
3496   AM_RANGE(0x80, 0x8f) AM_DEVREADWRITE("rtc", msm6242_r, msm6242_w)   // 6242RTC
3497   AM_RANGE(0xa0, 0xa1) AM_DEVWRITE("ym", ym2413_w)
3498   AM_RANGE(0xa2, 0xa2) AM_DEVREADWRITE("oki", okim6295_r, okim6295_w)
3499   AM_RANGE(0xa8, 0xa8) AM_READ_PORT("SYSTEM")
3500   AM_RANGE(0xaa, 0xaa) AM_READ(daimyojn_keyb1_r)
3501   AM_RANGE(0xac, 0xac) AM_READ(daimyojn_keyb2_r)
3502   AM_RANGE(0xae, 0xae) AM_WRITE(hanakanz_coincounter_w)
3503   AM_RANGE(0xb0, 0xb0) AM_WRITE(mjmyster_rambank_w)
3504   AM_RANGE(0xc0, 0xc0) AM_WRITE(mjflove_rombank_w)
3505   AM_RANGE(0xd0, 0xd0) AM_READ(hanakanz_rand_r)
3506   AM_RANGE(0xe0, 0xe0) AM_READWRITE(daimyojn_protection_r, daimyojn_protection_w)
3507ADDRESS_MAP_END
3508
3509
3510
33133511static INPUT_PORTS_START( ddenlvrj )
33143512   PORT_START("P1")
33153513   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
r6233r6234
46154813   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
46164814   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
46174815   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
4618   PORT_DIPNAME( 0x0c, 0x0c, "Min Credits To Start" )
4816   PORT_DIPNAME( 0x0c, 0x0c, "Min Rate To Play" )
46194817   PORT_DIPSETTING(    0x0c, "1" )
46204818   PORT_DIPSETTING(    0x08, "2" )
46214819   PORT_DIPSETTING(    0x04, "3" )
r6233r6234
48485046   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
48495047   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
48505048   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
4851   PORT_DIPNAME( 0x0c, 0x0c, "Min Credits To Start" )
5049   PORT_DIPNAME( 0x0c, 0x0c, "Min Rate To Play" )
48525050   PORT_DIPSETTING(    0x0c, "1" )
48535051//  PORT_DIPSETTING(    0x08, "2" ) // ? these don't let you start a game
48545052//  PORT_DIPSETTING(    0x04, "3" )
r6233r6234
50815279   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
50825280   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
50835281   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
5084   PORT_DIPNAME( 0x0c, 0x0c, "Min Credits To Start" )
5282   PORT_DIPNAME( 0x0c, 0x0c, "Min Rate To Play" )
50855283   PORT_DIPSETTING(    0x0c, "1" )
50865284//  PORT_DIPSETTING(    0x08, "2" ) // ? these don't let you start a game
50875285//  PORT_DIPSETTING(    0x04, "3" )
r6233r6234
51175315   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
51185316   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
51195317   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
5120   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
5121   PORT_DIPSETTING(    0x40, "149" )
5122   PORT_DIPSETTING(    0x00, "212" )
5318   PORT_DIPNAME( 0x40, 0x40, "DonDen Key" )
5319   PORT_DIPSETTING(    0x40, "Start" )
5320   PORT_DIPSETTING(    0x00, "Flip Flop" )
51235321   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
51245322   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
51255323   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
r6233r6234
53745572   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
53755573   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
53765574   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
5377   PORT_DIPNAME( 0x0c, 0x0c, "Min Credits To Start" )
5575   PORT_DIPNAME( 0x0c, 0x0c, "Min Rate To Play" )
53785576   PORT_DIPSETTING(    0x0c, "1" )
53795577//  PORT_DIPSETTING(    0x08, "2" ) // ? these don't let you start a game
53805578//  PORT_DIPSETTING(    0x04, "3" )
r6233r6234
54515649   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
54525650   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
54535651   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
5454   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
5455   PORT_DIPSETTING(    0x08, "149" )
5456   PORT_DIPSETTING(    0x00, "212" )
5652   PORT_DIPNAME( 0x08, 0x08, "DonDen Key" )
5653   PORT_DIPSETTING(    0x08, "Start" )
5654   PORT_DIPSETTING(    0x00, "Flip Flop" )
54575655   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
54585656   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
54595657   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
r6233r6234
59886186   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
59896187   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
59906188   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
5991   PORT_DIPNAME( 0x0c, 0x0c, "Min Credits To Start" )
6189   PORT_DIPNAME( 0x0c, 0x0c, "Min Rate To Play" )
59926190   PORT_DIPSETTING(    0x0c, "1" )
59936191//  PORT_DIPSETTING(    0x08, "2" ) // ? these don't let you start a game
59946192//  PORT_DIPSETTING(    0x04, "3" )
r6233r6234
60656263   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
60666264   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
60676265   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
6068   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
6069   PORT_DIPSETTING(    0x08, "149" )
6070   PORT_DIPSETTING(    0x00, "212" )
6266   PORT_DIPNAME( 0x08, 0x08, "DonDen Key" )
6267   PORT_DIPSETTING(    0x08, "Start" )
6268   PORT_DIPSETTING(    0x00, "Flip Flop" )
60716269   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
60726270   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
60736271   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
r6233r6234
61696367   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
61706368   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
61716369   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
6172   PORT_DIPNAME( 0x0c, 0x0c, "Min Credits To Start" )
6370   PORT_DIPNAME( 0x0c, 0x0c, "Min Rate To Play" )
61736371   PORT_DIPSETTING(    0x0c, "1" )
61746372//  PORT_DIPSETTING(    0x08, "2" ) // ? these don't let you start a game
61756373//  PORT_DIPSETTING(    0x04, "3" )
r6233r6234
62466444   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
62476445   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
62486446   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
6249   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
6250   PORT_DIPSETTING(    0x08, "149" )
6251   PORT_DIPSETTING(    0x00, "212" )
6447   PORT_DIPNAME( 0x08, 0x08, "DonDen Key" )
6448   PORT_DIPSETTING(    0x08, "Start" )
6449   PORT_DIPSETTING(    0x00, "Flip Flop" )
62526450   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
62536451   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
62546452   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
r6233r6234
66626860   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
66636861INPUT_PORTS_END
66646862
6863static INPUT_PORTS_START( sryudens )
66656864
6865   PORT_START("SYSTEM")
6866   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 )   // medal out
6867   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN  )
6868   PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
6869   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 )   // analyzer
6870   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 )   // data clear
6871   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 )      // note
6872   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
6873   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 )      // note2
6874
6875   PORT_START("KEY0")
6876   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) PORT_PLAYER(2)   // A
6877   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E ) PORT_PLAYER(2)   // E
6878   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_I ) PORT_PLAYER(2)   // I
6879   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_M ) PORT_PLAYER(2)   // M
6880   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) PORT_PLAYER(2)   // Kan
6881   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )   // Start 2
6882
6883   PORT_START("KEY1")
6884   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_B ) PORT_PLAYER(2)   // B
6885   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F ) PORT_PLAYER(2)   // F
6886   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_J ) PORT_PLAYER(2)   // J
6887   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_N ) PORT_PLAYER(2)   // N
6888   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) PORT_PLAYER(2)   // Reach
6889   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_BET ) PORT_PLAYER(2)   // BET
6890
6891   PORT_START("KEY2")
6892   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_C ) PORT_PLAYER(2)   // C
6893   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_G ) PORT_PLAYER(2)   // G
6894   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K ) PORT_PLAYER(2)   // K
6895   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) PORT_PLAYER(2)   // Chi
6896   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) PORT_PLAYER(2)   // Ron
6897   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
6898
6899   PORT_START("KEY3")
6900   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_D ) PORT_PLAYER(2)   // D
6901   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_H ) PORT_PLAYER(2)   // H
6902   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_L ) PORT_PLAYER(2)   // L
6903   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) PORT_PLAYER(2)   // Pon
6904   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
6905   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
6906
6907   PORT_START("KEY4")
6908   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_LAST_CHANCE ) PORT_PLAYER(2)   // "l"
6909   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_SCORE ) PORT_PLAYER(2)   // "t"
6910   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_DOUBLE_UP ) PORT_PLAYER(2)   // "w"
6911   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_PLAYER(2)   // Flip Flop
6912   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_BIG    ) PORT_PLAYER(2)   // "b"
6913   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL ) PORT_PLAYER(2)   // "s"
6914
6915   PORT_START("KEY5")
6916   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A )   // A
6917   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E )   // E
6918   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_I )   // I
6919   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_M )   // M
6920   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_KAN )   // Kan
6921   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )   // Start 1
6922
6923   PORT_START("KEY6")
6924   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_B )   // B
6925   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F )   // F
6926   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_J )   // J
6927   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_N )   // N
6928   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_REACH )   // Reach
6929   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_BET )   // BET
6930
6931   PORT_START("KEY7")
6932   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_C )   // C
6933   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_G )   // G
6934   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K )   // K
6935   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_CHI )   // Chi
6936   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_RON )   // Ron
6937   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
6938
6939   PORT_START("KEY8")
6940   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_D )   // D
6941   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_H )   // H
6942   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_L )   // L
6943   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON )   // Pon
6944   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
6945   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
6946
6947   PORT_START("KEY9")
6948   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_LAST_CHANCE )   // "l"
6949   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_SCORE )   // "t"
6950   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_DOUBLE_UP )   // "w"
6951   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP )   // Flip Flop
6952   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_BIG )   // "b"
6953   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL )   // "s"
6954
6955   PORT_START("DSW1")
6956   PORT_DIPNAME( 0x0f, 0x07, "Pay Out Rate (%)" )
6957   PORT_DIPSETTING(    0x00, "50" )
6958   PORT_DIPSETTING(    0x01, "53" )
6959   PORT_DIPSETTING(    0x02, "56" )
6960   PORT_DIPSETTING(    0x03, "59" )
6961   PORT_DIPSETTING(    0x04, "62" )
6962   PORT_DIPSETTING(    0x05, "65" )
6963   PORT_DIPSETTING(    0x06, "68" )
6964   PORT_DIPSETTING(    0x07, "71" )
6965   PORT_DIPSETTING(    0x08, "75" )
6966   PORT_DIPSETTING(    0x09, "78" )
6967   PORT_DIPSETTING(    0x0a, "81" )
6968   PORT_DIPSETTING(    0x0b, "84" )
6969   PORT_DIPSETTING(    0x0c, "87" )
6970   PORT_DIPSETTING(    0x0d, "90" )
6971   PORT_DIPSETTING(    0x0e, "93" )
6972   PORT_DIPSETTING(    0x0f, "96" )
6973   PORT_DIPNAME( 0x30, 0x30, "Odds Rate" )
6974   PORT_DIPSETTING(    0x30, "1 2 4 8 12 16 24 32" )
6975   PORT_DIPSETTING(    0x00, "1 2 3 5 8 15 30 50" )
6976   PORT_DIPSETTING(    0x20, "2 3 6 8 12 15 30 50" )
6977   PORT_DIPSETTING(    0x10, "1 2 3 5 10 25 50 100" )
6978//  PORT_DIPSETTING(    0xxx, "1 2 3 4 5 6 8 10" )
6979   PORT_DIPNAME( 0xc0, 0xc0, "Max Bet" )
6980   PORT_DIPSETTING(    0xc0, "1" )
6981   PORT_DIPSETTING(    0x80, "5" )
6982   PORT_DIPSETTING(    0x40, "10" )
6983   PORT_DIPSETTING(    0x00, "20" )
6984
6985   PORT_START("DSW2")
6986//  PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
6987//  PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
6988//  PORT_DIPSETTING(    0x01, DEF_STR( 2C_2C ) )
6989//  PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
6990//  PORT_DIPSETTING(    0x00, DEF_STR( 2C_3C ) )
6991   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
6992   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
6993   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
6994   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
6995   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
6996   PORT_DIPNAME( 0x0c, 0x0c, "Min Rate To Play" )
6997   PORT_DIPSETTING(    0x0c, "1" )
6998//  PORT_DIPSETTING(    0x08, "2" ) // ? these don't let you start a game
6999//  PORT_DIPSETTING(    0x04, "3" )
7000//  PORT_DIPSETTING(    0x00, "5" )
7001   PORT_DIPNAME( 0x30, 0x30, "Payout" )
7002   PORT_DIPSETTING(    0x30, "300" )
7003   PORT_DIPSETTING(    0x20, "500" )
7004   PORT_DIPSETTING(    0x10, "700" )
7005   PORT_DIPSETTING(    0x00, "1000" )
7006   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7007   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7008   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7009   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
7010   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
7011   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7012
7013   PORT_START("DSW3")
7014   PORT_DIPNAME( 0x07, 0x07, "YAKUMAN Bonus" )
7015   PORT_DIPSETTING(    0x07, "Cut" )
7016   PORT_DIPSETTING(    0x06, "1 T" )
7017   PORT_DIPSETTING(    0x05, "300" )
7018   PORT_DIPSETTING(    0x04, "500" )
7019   PORT_DIPSETTING(    0x03, "700" )
7020   PORT_DIPSETTING(    0x02, "1000" )
7021//  PORT_DIPSETTING(    0x01, "1000" )
7022//  PORT_DIPSETTING(    0x00, "1000" )
7023   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
7024   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
7025   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7026   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
7027   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
7028   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7029   PORT_DIPNAME( 0x20, 0x20, "DonDen Key" )
7030   PORT_DIPSETTING(    0x20, "Start" )
7031   PORT_DIPSETTING(    0x00, "Flip Flop" )
7032   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7033   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7034   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7035   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
7036   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
7037   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7038
7039   PORT_START("DSW4")
7040   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
7041   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
7042   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7043   PORT_DIPNAME( 0x02, 0x00, "In Game Music" )
7044   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
7045   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7046   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
7047   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
7048   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7049   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
7050   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
7051   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7052   PORT_DIPNAME( 0x10, 0x10, "Undress Girl" )
7053   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
7054   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7055   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
7056   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
7057   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7058   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7059   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7060   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7061   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
7062   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
7063   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7064
7065   PORT_START("DSWTOP")
7066   PORT_DIPNAME( 0x01, 0x01, "Credits Per Note" )
7067   PORT_DIPSETTING(    0x01, "5" )
7068   PORT_DIPSETTING(    0x00, "10" )
7069   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) )
7070   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
7071   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7072   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Unknown ) )
7073   PORT_DIPSETTING(    0x0c, "0" )
7074   PORT_DIPSETTING(    0x00, "1" )
7075   PORT_DIPSETTING(    0x04, "3" )
7076   PORT_DIPSETTING(    0x08, "7" )
7077   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
7078   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
7079   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7080   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
7081   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
7082   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7083   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7084   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7085   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7086   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
7087   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
7088   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7089
7090   PORT_START("BET")
7091   PORT_DIPNAME( 0x40, 0x40, "Bets?" )
7092   PORT_DIPSETTING(    0x40, "0" )
7093   PORT_DIPSETTING(    0x00, "1" )
7094
7095   PORT_START("HOPPER")
7096   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7097   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7098   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7099
7100INPUT_PORTS_END
7101
7102static INPUT_PORTS_START( daimyojn )
7103
7104   PORT_START("SYSTEM")
7105   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE3 )   // medal out
7106   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN  )
7107   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE  ) PORT_NAME(DEF_STR( Test )) PORT_CODE(KEYCODE_F1) PORT_TOGGLE
7108   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 )   // analyzer
7109   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 )   // data clear
7110   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 )      // note
7111   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5)
7112   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 )      // note2
7113
7114   PORT_START("KEY0")
7115   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) PORT_PLAYER(2)   // A
7116   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E ) PORT_PLAYER(2)   // E
7117   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_I ) PORT_PLAYER(2)   // I
7118   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_M ) PORT_PLAYER(2)   // M
7119   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) PORT_PLAYER(2)   // Kan
7120   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )   // Start 2
7121
7122   PORT_START("KEY1")
7123   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_B ) PORT_PLAYER(2)   // B
7124   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F ) PORT_PLAYER(2)   // F
7125   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_J ) PORT_PLAYER(2)   // J
7126   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_N ) PORT_PLAYER(2)   // N
7127   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) PORT_PLAYER(2)   // Reach
7128   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_BET ) PORT_PLAYER(2)   // BET
7129
7130   PORT_START("KEY2")
7131   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_C ) PORT_PLAYER(2)   // C
7132   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_G ) PORT_PLAYER(2)   // G
7133   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K ) PORT_PLAYER(2)   // K
7134   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) PORT_PLAYER(2)   // Chi
7135   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) PORT_PLAYER(2)   // Ron
7136   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
7137
7138   PORT_START("KEY3")
7139   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_D ) PORT_PLAYER(2)   // D
7140   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_H ) PORT_PLAYER(2)   // H
7141   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_L ) PORT_PLAYER(2)   // L
7142   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) PORT_PLAYER(2)   // Pon
7143   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
7144   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
7145
7146   PORT_START("KEY4")
7147   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_LAST_CHANCE ) PORT_PLAYER(2)   // "l"
7148   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_SCORE ) PORT_PLAYER(2)   // "t"
7149   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_DOUBLE_UP ) PORT_PLAYER(2)   // "w"
7150   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_PLAYER(2)   // Flip Flop
7151   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_BIG    ) PORT_PLAYER(2)   // "b"
7152   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL ) PORT_PLAYER(2)   // "s"
7153
7154   PORT_START("KEY5")
7155   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A )   // A
7156   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E )   // E
7157   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_I )   // I
7158   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_M )   // M
7159   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_KAN )   // Kan
7160   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )   // Start 1
7161
7162   PORT_START("KEY6")
7163   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_B )   // B
7164   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F )   // F
7165   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_J )   // J
7166   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_N )   // N
7167   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_REACH )   // Reach
7168   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_BET )   // BET
7169
7170   PORT_START("KEY7")
7171   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_C )   // C
7172   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_G )   // G
7173   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K )   // K
7174   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_CHI )   // Chi
7175   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_RON )   // Ron
7176   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
7177
7178   PORT_START("KEY8")
7179   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_D )   // D
7180   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_H )   // H
7181   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_L )   // L
7182   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON )   // Pon
7183   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
7184   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )   // nothing
7185
7186   PORT_START("KEY9")
7187   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_LAST_CHANCE )   // "l"
7188   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_SCORE       )   // "t"
7189   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_DOUBLE_UP   )   // "w"
7190   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP   )   // Flip Flop
7191   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_BIG         )   // "b"
7192   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_SMALL       )   // "s"
7193
7194   PORT_START("DSW1")
7195   PORT_DIPNAME( 0x0f, 0x07, "Pay Out Rate (%)" )
7196   PORT_DIPSETTING(    0x00, "50" )
7197   PORT_DIPSETTING(    0x01, "53" )
7198   PORT_DIPSETTING(    0x02, "56" )
7199   PORT_DIPSETTING(    0x03, "59" )
7200   PORT_DIPSETTING(    0x04, "62" )
7201   PORT_DIPSETTING(    0x05, "65" )
7202   PORT_DIPSETTING(    0x06, "68" )
7203   PORT_DIPSETTING(    0x07, "71" )
7204   PORT_DIPSETTING(    0x08, "75" )
7205   PORT_DIPSETTING(    0x09, "78" )
7206   PORT_DIPSETTING(    0x0a, "81" )
7207   PORT_DIPSETTING(    0x0b, "84" )
7208   PORT_DIPSETTING(    0x0c, "87" )
7209   PORT_DIPSETTING(    0x0d, "90" )
7210   PORT_DIPSETTING(    0x0e, "93" )
7211   PORT_DIPSETTING(    0x0f, "96" )
7212   PORT_DIPNAME( 0x30, 0x30, "Odds Rate" )
7213   PORT_DIPSETTING(    0x30, "1 2 4 8 12 16 24 32" )
7214//  PORT_DIPSETTING(    0x00, "1 2 3 5 8 15 30 50" )
7215//  PORT_DIPSETTING(    0x10, "1 2 3 5 10 25 50 100" )
7216//  PORT_DIPSETTING(    0x20, "2 3 6 8 12 15 30 50" )
7217//  PORT_DIPSETTING(    0x30, "2 3 6 8 12 15 30 50" )
7218   PORT_DIPNAME( 0xc0, 0xc0, "Max Bet" )
7219   PORT_DIPSETTING(    0xc0, "1" )
7220   PORT_DIPSETTING(    0x80, "5" )
7221   PORT_DIPSETTING(    0x40, "10" )
7222   PORT_DIPSETTING(    0x00, "20" )
7223
7224   PORT_START("DSW2")
7225   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
7226   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
7227   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
7228   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
7229   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
7230   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
7231   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
7232   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7233   PORT_DIPNAME( 0x38, 0x38, "Multiplier" )
7234   PORT_DIPSETTING(    0x38, "1" )
7235   PORT_DIPSETTING(    0x30, "2" )
7236   PORT_DIPSETTING(    0x28, "3" )
7237   PORT_DIPSETTING(    0x20, "4" )
7238   PORT_DIPSETTING(    0x18, "5" )
7239   PORT_DIPSETTING(    0x10, "6" )
7240   PORT_DIPSETTING(    0x08, "7" )
7241   PORT_DIPSETTING(    0x00, "8" )
7242   PORT_DIPNAME( 0xc0, 0xc0, "Payout" )
7243   PORT_DIPSETTING(    0xc0, "300" )
7244   PORT_DIPSETTING(    0x80, "500" )
7245   PORT_DIPSETTING(    0x40, "700" )
7246   PORT_DIPSETTING(    0x00, "1000" )
7247
7248   PORT_START("DSW3")
7249   PORT_DIPNAME( 0x07, 0x07, "YAKUMAN Bonus" )
7250   PORT_DIPSETTING(    0x07, "Cut" )
7251   PORT_DIPSETTING(    0x06, "1 T" )
7252   PORT_DIPSETTING(    0x05, "300" )
7253   PORT_DIPSETTING(    0x04, "500" )
7254   PORT_DIPSETTING(    0x03, "700" )
7255   PORT_DIPSETTING(    0x02, "1000" )
7256//  PORT_DIPSETTING(    0x01, "1000" )
7257//  PORT_DIPSETTING(    0x00, "1000" )
7258   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
7259   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
7260   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7261   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
7262   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
7263   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7264   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
7265   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
7266   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7267   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7268   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7269   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7270   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
7271   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
7272   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7273
7274   PORT_START("DSW4")
7275   PORT_SERVICE( 0x01, IP_ACTIVE_LOW )
7276   PORT_DIPNAME( 0x02, 0x02, "DonDen Key" )
7277   PORT_DIPSETTING(    0x02, "Start" )
7278   PORT_DIPSETTING(    0x00, "Flip Flop" )
7279   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
7280   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
7281   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7282   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
7283   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
7284   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7285   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
7286   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
7287   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7288   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
7289   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
7290   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7291   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7292   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7293   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7294   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
7295   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
7296   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7297
7298   PORT_START("DSW5")
7299   PORT_DIPNAME( 0x01, 0x01, "Credits Per Note" )
7300   PORT_DIPSETTING(    0x01, "5" )
7301   PORT_DIPSETTING(    0x00, "10" )
7302   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) )
7303   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
7304   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7305   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
7306   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
7307   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7308   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
7309   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
7310   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7311   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
7312   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
7313   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7314   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
7315   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
7316   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7317   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7318   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7319   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7320   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
7321   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
7322   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7323
7324   PORT_START("BET")
7325   PORT_DIPNAME( 0x40, 0x40, "Bets?" )
7326   PORT_DIPSETTING(    0x40, "0" )
7327   PORT_DIPSETTING(    0x00, "1" )
7328
7329   PORT_START("HOPPER")
7330   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
7331   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
7332   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
7333
7334INPUT_PORTS_END
7335
7336
66667337/***************************************************************************
66677338                            Don Den Lover Vol.1
66687339***************************************************************************/
r6233r6234
72807951   MDRV_MSM6242_ADD("rtc")
72817952MACHINE_DRIVER_END
72827953
7954/***************************************************************************
7955                            Mahjong Seiryu Densetsu
7956***************************************************************************/
72837957
7958static MACHINE_DRIVER_START( sryudens )
7959
7960   /* basic machine hardware */
7961   MDRV_CPU_ADD("maincpu",Z80, XTAL_16MHz / 2)   // ?
7962   MDRV_CPU_PROGRAM_MAP(sryudens_map)
7963   MDRV_CPU_IO_MAP(sryudens_portmap)
7964   MDRV_CPU_VBLANK_INT("screen", mjchuuka_irq)
7965
7966   /* video hardware */
7967   MDRV_SCREEN_ADD("screen", RASTER)
7968   MDRV_SCREEN_REFRESH_RATE(60.8532)   // VSync 60.8532Hz, HSync 15.2790kHz
7969   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
7970   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
7971   MDRV_SCREEN_SIZE(336, 256)
7972   MDRV_SCREEN_VISIBLE_AREA(0, 336-1, 0+5, 256-12-1)
7973
7974   MDRV_PALETTE_LENGTH(0x100)
7975
7976   MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE)
7977   MDRV_VIDEO_START(mjflove)   // blitter commands in the roms are shuffled around
7978   MDRV_VIDEO_UPDATE(ddenlovr)
7979
7980   /* sound hardware */
7981   MDRV_SPEAKER_STANDARD_MONO("mono")
7982
7983   MDRV_SOUND_ADD("ym", YM2413, XTAL_28_63636MHz / 8)
7984   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
7985
7986   MDRV_SOUND_ADD("ay", AY8910, XTAL_28_63636MHz / 8)
7987   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
7988
7989   MDRV_SOUND_ADD("oki", OKIM6295, XTAL_28_63636MHz / 28)   // ?
7990   MDRV_SOUND_CONFIG(okim6295_interface_pin7high)
7991   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
7992
7993   /* devices */
7994   MDRV_MSM6242_ADD("rtc")
7995MACHINE_DRIVER_END
7996
72847997/***************************************************************************
7998                            Mahjong Daimyojin
7999***************************************************************************/
72858000
8001static MACHINE_DRIVER_START( daimyojn )
8002
8003   /* basic machine hardware */
8004   MDRV_CPU_ADD("maincpu",Z80, XTAL_20MHz / 2)
8005   MDRV_CPU_PROGRAM_MAP(hanakanz_map)
8006   MDRV_CPU_IO_MAP(daimyojn_portmap)
8007   MDRV_CPU_VBLANK_INT("screen", hanakanz_irq)
8008
8009   /* video hardware */
8010   MDRV_SCREEN_ADD("screen", RASTER)
8011   MDRV_SCREEN_REFRESH_RATE(59.7922)   // HSync 15.4248kHz
8012   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
8013   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
8014   MDRV_SCREEN_SIZE(336, 256)
8015   MDRV_SCREEN_VISIBLE_AREA(0, 336-1-1, 1, 256-15-1)
8016
8017   MDRV_PALETTE_LENGTH(0x200)
8018
8019   MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE)
8020   MDRV_VIDEO_START(hanakanz)   // blitter commands in the roms are shuffled around
8021   MDRV_VIDEO_UPDATE(ddenlovr)
8022
8023   /* sound hardware */
8024   MDRV_SPEAKER_STANDARD_MONO("mono")
8025
8026   MDRV_SOUND_ADD("ym", YM2413, XTAL_28_63636MHz / 8)
8027   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
8028
8029   MDRV_SOUND_ADD("oki", OKIM6295, XTAL_28_63636MHz / 28)
8030   MDRV_SOUND_CONFIG(okim6295_interface_pin7high)
8031   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
8032
8033   /* devices */
8034   MDRV_MSM6242_ADD("rtc")
8035MACHINE_DRIVER_END
8036
8037
8038
8039/***************************************************************************
8040
72868041Monkey Mole Panic
72878042Nakanihon/Taito 1992
72888043                      7001A  5563    6242
r6233r6234
88819636   ROM_LOAD( "53201.2a", 0x000000, 0x200000, CRC(c53d840c) SHA1(5a935320f48bdc8f3b9ed105dcdd0c6e33c3c38c) )
88829637ROM_END
88839638
9639/***************************************************************************
88849640
9641Mahjong Seiryu Densetsu
9642Dynax 1996
9643
9644PCB Layout
9645----------
9646
9647NM5020403
9648|---------------------------------|
9649|MB3713     LM358 LM358   50201   |
9650|        YM2413    M6295     BATT |
9651|   DSW5     YMZ284  16MHz  PAL   |
9652|M                  QFP100 TC55257|
9653|A                        50202   |
9654|H                       RTC62421 |
9655|J       28.63636MHz              |
9656|O    PLCC68             TC524258 |
9657|N               QFP208  TC524258 |
9658|G                       TC524258 |
9659|            TC5588  PAL TC524258 |
9660|  DSW1 DSW2 50209  50206  50203  |
9661|  DSW3 DSW4 50210  50207  50204  |
9662|            50211  50208  50205  |
9663|---------------------------------|
9664Notes:
9665      YM2413 - Clock 3.579545MHz [28.63636/8]
9666      YMZ284 - Clock 3.579545MHz [28.63636/8]
9667      PLCC68 - Unknown PLCC68. Clock 1.7897725MHz [28.63636/16]
9668               Possibly FPGA/CPLD/Gate Array or custom Dynax chip etc.
9669      QFP100 - Unknown QFP100. Clock input 16MHz. Looks like TMPZ8400
9670      QFP208 - Unknown QFP208 custom Dynax chip
9671      DSW1-4 - 10-position DIP switches
9672      DSW5   - 4-position DIP switch
9673      VSync  - 60.8532Hz
9674      HSync  - 15.2790kHz
9675
9676***************************************************************************/
9677
9678ROM_START( sryudens )
9679   ROM_REGION( 0x90000+16*0x1000, "maincpu", 0 )   /* Z80 Code */
9680   ROM_LOAD( "50202.5c", 0x00000, 0x80000, CRC(7072d3d9) SHA1(6a6605afd334d5adca0e8eed9758f2a2b37c389e) )
9681   ROM_RELOAD(           0x10000, 0x80000 )
9682
9683   ROM_REGION( 0x480000, "blitter", 0 )   /* blitter data */
9684   ROM_LOAD( "50203.13b", 0x000000, 0x80000, CRC(4da60d60) SHA1(bd34f9471baf8242a32908bb3e2106e10ae3310c) )
9685   ROM_LOAD( "50204.14b", 0x080000, 0x80000, CRC(43d1d705) SHA1(ce7184a6dd04a10b7e0734039ae8c3dcf3819258) )
9686   ROM_LOAD( "50205.15b", 0x100000, 0x80000, CRC(7c727fc0) SHA1(3f7fe11fb5abb4a2a85b38b670ef4597cd42edc7) )
9687   ROM_LOAD( "50206.13d", 0x180000, 0x80000, CRC(c52396dd) SHA1(385dfda305011f4db0b783b861daeff4ee52ea9c) )
9688   ROM_LOAD( "50207.14d", 0x200000, 0x80000, CRC(cb600774) SHA1(321b0ac01e70d17006871ad7f88f98f53536ca8d) )
9689   ROM_LOAD( "50208.15d", 0x280000, 0x80000, CRC(0b30c780) SHA1(b2a263cc14e5a734eb9580451eb21dad980d18f0) )
9690   ROM_LOAD( "50209.13f", 0x300000, 0x80000, CRC(8f34a31c) SHA1(9b56a462f871d935806b6594f07fa1e4214f9186) )
9691   ROM_LOAD( "50210.14f", 0x380000, 0x80000, CRC(2fdd3b49) SHA1(db27d5d9f74f532ab4e9b8ffa81eef2fae2ef6fd) )
9692   ROM_LOAD( "50211.15f", 0x400000, 0x80000, CRC(39ad357a) SHA1(899e369d7396ed40803df7c575199a65b18c046e) )
9693
9694   ROM_REGION( 0x80000, "oki", 0 )   /* Samples */
9695   ROM_LOAD( "50201.1c", 0x00000, 0x80000, CRC(5a8cd45c) SHA1(25ca573b8ba226fb3f2de48c57b5ced6884eaa63) )
9696ROM_END
9697
9698/***************************************************************************
9699
9700Mahjong Daimyojin
9701Dynax/Techno Top Ltd/Techno Planning, 2002
9702
9703PCB Layout
9704----------
9705
9706TSM015-0111
9707|--------------------------------------|
9708|TA7252    VOL     M6295  PST532  BATT |
9709|            LM358 LM358   T0171       |
9710|  DSW5      YM2413            32.768kHz
9711|  62003              20MHz     TC55257|
9712|M                       QFP100  M6242B|
9713|A           DSW1  DSW2                |
9714|H           DSW3  DSW4         P0172  |
9715|J                                     |
9716|O      PLCC68                T0173    |
9717|N               28.63636MHz           |
9718|G        KM424C256           P0174    |
9719|         KM424C256                    |
9720|         KM424C256 TSM100             |
9721|         KM424C256                    |
9722|         KM424C256                    |
9723|         KM424C256                    |
9724|--------------------------------------|
9725Notes:
9726      PLCC68 - Unknown PLCC68. Clock input 10MHz [20/2]. Possibly FPGA/CPLD/Gate Array or custom chip etc.
9727      QFP100 - Unknown QFP100. Clock input 20MHz. Looks like TMPZ8400
9728      TSM100 - Custom QFP208 GFX chip. Details....
9729               T-top SOFT
9730               TSM100
9731               70C160F011
9732               JAPAN 0210EAI
9733               D0002ZCA
9734      YM2413 - Clock 3.579545MHz [28.63636/8]
9735      M6295  - Clock 1.02272MHz [28.63636/28]. pin 7 high
9736      VSync  - 59.7922Hz
9737      HSync  - 15.4248kHz
9738
9739***************************************************************************/
9740
9741ROM_START( daimyojn )
9742   ROM_REGION( 0x90000+16*0x1000, "maincpu", 0 )   /* Z80 Code */
9743   ROM_LOAD( "p0172.6b", 0x00000, 0x80000, CRC(478442bd) SHA1(50efe7e014a55a5e5ac359628438ad2963df181c) )
9744   ROM_RELOAD(           0x10000, 0x80000 )
9745
9746   ROM_REGION( 0x400000, "blitter", 0 )   /* blitter data */
9747   ROM_LOAD( "t0173.7b", 0x000000, 0x200000, CRC(b54c7b02) SHA1(54a750708c91041caa89adb033d8133b409b0706) )
9748   ROM_LOAD( "p0174.8b", 0x200000, 0x200000, CRC(861de43f) SHA1(c5bc279f476902baa46e046800c26bd52255a525) )
9749
9750   ROM_REGION( 0x80000, "oki", 0 )   /* Samples */
9751   ROM_LOAD( "t0171.2b", 0x00000, 0x80000, CRC(464be04c) SHA1(3532ac8d7eaadb2dc33e2c2d9731654176231184) )
9752ROM_END
9753
9754
88859755GAME( 1992, mmpanic,  0,        mmpanic,  mmpanic,  0,        ROT0, "Nakanihon + East Technology (Taito license)", "Monkey Mole Panic (USA)",                                         GAME_NO_COCKTAIL )
88869756GAME( 1993, funkyfig, 0,        funkyfig, funkyfig, 0,        ROT0, "Nakanihon + East Technology (Taito license)", "The First Funky Fighter",                                         GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) // scrolling, priority?
88879757GAME( 1993, quizchq,  0,        quizchq,  quizchq,  0,        ROT0, "Nakanihon",                                   "Quiz Channel Question (Ver 1.00) (Japan)",                        GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
r6233r6234
89079777GAME( 1996, ddenlovr, ddenlvrj, ddenlovr, ddenlovr, 0,        ROT0, "Dynax",                                       "Don Den Lover Vol. 1 (Hong Kong)",                                GAME_NO_COCKTAIL )
89089778GAME( 1996, hanakanz, 0,        hanakanz, hanakanz, 0,        ROT0, "Dynax",                                       "Hana Kanzashi (Japan)",                                           GAME_NO_COCKTAIL )
89099779GAME( 1996, akamaru,  0,        akamaru,  akamaru,  0,        ROT0, "Dynax (Nakanihon licence)",                   "Panel & Variety Akamaru Q Jousyou Dont-R",                        GAME_NO_COCKTAIL )
9780GAME( 1996, sryudens, 0,        sryudens, sryudens, 0,        ROT0, "Dynax / Face",                                "Mahjong Seiryu Densetsu (Japan, NM502)",                          GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS )
89109781GAME( 1996, mjflove,  0,        mjflove,  mjflove,  0,        ROT0, "Nakanihon",                                   "Mahjong Fantasic Love (Japan)",                                   GAME_NO_COCKTAIL )
89119782GAME( 1997, hkagerou, 0,        hkagerou, hkagerou, 0,        ROT0, "Nakanihon + Dynax",                           "Hana Kagerou [BET] (Japan)",                                      GAME_NO_COCKTAIL )
89129783GAME( 1998, mjchuuka, 0,        mjchuuka, mjchuuka, 0,        ROT0, "Dynax",                                       "Mahjong Chuukanejyo (China)",                                     GAME_NO_COCKTAIL )
89139784GAME( 1998, mjreach1, 0,        mjreach1, mjreach1, 0,        ROT0, "Nihon System",                                "Mahjong Reach Ippatsu (Japan)",                                   GAME_NO_COCKTAIL )
89149785GAME( 1999, jongtei,  0,        jongtei,  jongtei,  0,        ROT0, "Dynax",                                       "Mahjong Jong-Tei (Japan, ver. NM532-01)",                         GAME_NO_COCKTAIL )
9786GAME( 2002, daimyojn, 0,        daimyojn, daimyojn, 0,        ROT0, "Dynax / Techno-Top / Techno-Planning",        "Mahjong Daimyojin (Japan, T017-PB-00)",                           GAME_NO_COCKTAIL )
src/mame/drivers/kaneko16.c
r6233r6234
6464- Figure out how MCU resets writeback address (currently hacked)
6565- Find relationship between Key tables and final datablock
6666- Clean up debug code file writes etc. (when above are done only!)
67- Interrupt timing? (some sprites flicker)
68- Sprite buffering (1-2 frames?, or related to above)
67- Interrupt timing? (some sprites flicker) - some sprite flicker exists in youtube videos too, so probably not a bug
68- Sprite buffering (1-2 frames?, or related to above) - some bg objects with sprite parts break up in shogun
6969
7070Dip locations verified from manual for:
7171
r6233r6234
807807                                Shogun Warriors
808808***************************************************************************/
809809
810/* Works for B-Rap Boys - untested with Shogun Warriors */
810static void kaneko16_common_oki_bank_w( running_machine* machine, int bankindex, const char* tag, int bank, size_t fixedsize, size_t bankedsize )
811{
812   UINT32 bankaddr;
813   UINT8* samples = memory_region(machine,tag);
814   size_t length = memory_region_length(machine,tag);
815
816   bankaddr = fixedsize + (bankedsize * bank);
817
818   if (bankaddr <= (length-bankedsize))
819   {
820      memory_set_bankptr(machine, bankindex, samples + bankaddr);
821   }
822}
823
811824static WRITE16_HANDLER( shogwarr_oki_bank_w )
812825{
813826   if (ACCESSING_BITS_0_7)
814827   {
815      okim6295_set_bank_base(devtag_get_device(space->machine, "oki1"), 0x40000 * ((data >> 4) & 0xf));
816      okim6295_set_bank_base(devtag_get_device(space->machine, "oki2"), 0x40000 * (data & 0xf));
828      kaneko16_common_oki_bank_w(space->machine, 10, "oki1", (data >> 4) & 0xf, 0x30000, 0x10000);
829      kaneko16_common_oki_bank_w(space->machine, 11, "oki2", (data & 0xf)     , 0x00000, 0x40000);
817830   }
818831}
819832
833static WRITE16_HANDLER( brapboys_oki_bank_w )
834{
835   if (ACCESSING_BITS_0_7)
836   {
837      kaneko16_common_oki_bank_w(space->machine, 10, "oki1", (data >> 4) & 0xf, 0x30000, 0x10000);
838      kaneko16_common_oki_bank_w(space->machine, 11, "oki2", (data & 0xf)     , 0x20000, 0x20000);
839   }
840}
841
842
820843static ADDRESS_MAP_START( shogwarr, ADDRESS_SPACE_PROGRAM, 16 )
821844   AM_RANGE(0x000000, 0x03ffff) AM_ROM      // ROM
822845   AM_RANGE(0x100000, 0x10ffff) AM_RAM AM_BASE(&kaneko16_mainram)      // Work RAM
r6233r6234
21532176   }
21542177}
21552178
2179static ADDRESS_MAP_START( shogwarr_oki1_map, 0, 8 )
2180   AM_RANGE(0x00000, 0x2ffff) AM_ROM
2181   AM_RANGE(0x30000, 0x3ffff) AM_ROMBANK(10)
2182ADDRESS_MAP_END
2183
2184static ADDRESS_MAP_START( shogwarr_oki2_map, 0, 8 )
2185   AM_RANGE(0x00000, 0x3ffff) AM_ROMBANK(11)
2186ADDRESS_MAP_END
2187
21562188static MACHINE_DRIVER_START( shogwarr )
21572189
21582190   /* basic machine hardware */
r6233r6234
21842216   MDRV_SOUND_ADD("oki1", OKIM6295, XTAL_16MHz/8)
21852217   MDRV_SOUND_CONFIG(okim6295_interface_pin7low)
21862218   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
2219   MDRV_DEVICE_ADDRESS_MAP(0, shogwarr_oki1_map)
21872220
21882221   MDRV_SOUND_ADD("oki2", OKIM6295, XTAL_16MHz/8)
21892222   MDRV_SOUND_CONFIG(okim6295_interface_pin7low)
21902223   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
2224   MDRV_DEVICE_ADDRESS_MAP(0, shogwarr_oki2_map)
21912225MACHINE_DRIVER_END
21922226
2227static ADDRESS_MAP_START( brapboys_oki2_map, 0, 8 )
2228   AM_RANGE(0x00000, 0x1ffff) AM_ROM
2229   AM_RANGE(0x20000, 0x3ffff) AM_ROMBANK(11)
2230ADDRESS_MAP_END
21932231
2232static MACHINE_DRIVER_START( brapboys )
2233   MDRV_IMPORT_FROM(shogwarr)
2234   MDRV_SOUND_MODIFY("oki2")
2235   MDRV_DEVICE_ADDRESS_MAP(0, brapboys_oki2_map)
2236MACHINE_DRIVER_END
2237
21942238/***************************************************************************
21952239
21962240
r6233r6234
33023346ROM_END
33033347
33043348
3349
33053350/***************************************************************************
33063351
3307                                Shogun Warriors
3352Shogun Warriors (Europe Rev.xx)(Kaneko 1992)
33083353
3309Shogun Warriors, Kaneko 1992
3354Dumped from an original Kaneko PCB. Board No. Z01DK-002 / Serial FB92E01342. + Top board "Z05DP FOR Z01DK"
33103355
3311   fb010.u65           fb040.u33
3312   fb011.u66
3313   rb012.u67
3314   rb013.u68
3356Two Program roms are equal to the Japanese version. See Below:
33153357
3316                         fb001.u43
3317     68000-12            fb000.u42  m6295
3318    51257     fb030.u61  fb002.u44  m6295
3319    51257     fb031.u62  fb003.u45
3358fb000e.u43  = fb001e.u43  Shogun Warriors               <Note: Different label compared to Mame.
3359fb001e.u101 = fb000e.u42  Shogun Warriors               <Note: Different label/position compared to Mame.
3360fb030e.u61  = fb030j.u61  Fujiyama Buster(Japan)        <Note: Same as the Japanese version in Mame.
3361fb031e.u62 NO MATCH
3362fb040e.u33  = fb040j.u33  Fujiyama Buster (Japan)       <Note: Same as the Japanese version in Mame.
33203363
33213364
3322                fb021a.u3
3323                fb021b.u4
3324                fb022a.u5
3325   fb023.u7     fb022b.u6
3326   fb020a.u1    fb020b.u2
3365The rom positions are equal to the Japanese version in Mame (Same Hardware revision).
3366The "e" suffix on the roms of "Shogun Warriors" that is previously
3367in Mame indicates that it is an European Version too, so this must be
3368an earlier or later European revision.
33273369
3370Some hardware(custom chip) differences compared with the info in the Mame source:
33283371
3372Fujiyama Buster(Japan)                      Shogun Warriors (Europe) (My Dump)
33293373
3330---------------------------------------------------------------------------
3331                                Game code
3332---------------------------------------------------------------------------
3374KANEKO JAPAN 9152EV 175101 (160 Pin PQFP) = KANEKO JAPAN 9202EV 175071 (160 Pin PQFP)
3375KANEKO JAPAN 9203 T (44 PIN PQFP)         = KANEKO JAPAN 9204 T (44 PIN PQFP)
33333376
3334102e04-7    <- !b80004-7
3335102e18.w    -> $800000
3336102e1c.w    -> $800002 , $800006
3337102e1a.w    -> $800004
3338102e20.w    -> $800008
3339
3340ROUTINES:
3341
33426622    print ($600000)
3343
33443377***************************************************************************/
33453378
3346
3347// the 'green garbage' on the VS logo shown in the video ( http://www.youtube.com/watch?v=lz4gY9d7uxw ) doesn't happen on the real PCB,
3348// it appears to be an encoding artifact on the videos uploaded by this poster
3349
33503379ROM_START( shogwarr )
33513380    ROM_REGION( 0x040000, "maincpu", 0 )         /* 68000 Code */
3352   ROM_LOAD16_BYTE( "fb030a.u61", 0x000000, 0x020000, CRC(a04106c6) SHA1(95ab084f2e709be7cec2964cb09bcf5a8d3aacdf) )
3353   ROM_LOAD16_BYTE( "fb031a.u62", 0x000001, 0x020000, CRC(d1def5e2) SHA1(f442de4433547e52b483549aca5786e4597a7122) )
3381   ROM_LOAD16_BYTE( "fb030e.u61", 0x000000, 0x020000, CRC(32ce7909) SHA1(02d87342706ac9547eb611bd542f8498ba41e34a) )
3382   ROM_LOAD16_BYTE( "fb031e.u62", 0x000001, 0x020000, CRC(228aeaf5) SHA1(5e080d7975bc5dcf6fccfbc286eafe939496d9bf) )
33543383
33553384    ROM_REGION( 0x020000, "cpu1", 0 )         /* MCU Code */
3356   ROM_LOAD( "fb040a.u33",  0x000000, 0x020000, CRC(4b62c4d9) SHA1(35c943dde70438a411714070e42a84366db5ef83) )
3385   ROM_LOAD( "fb040e.u33",  0x000000, 0x020000, CRC(299d0746) SHA1(67fe3a47ab01fa02ce2bb5836c2041986c19d875) )
33573386
33583387   ROM_REGION( 0x1000000, "gfx1", ROMREGION_ERASEFF )   /* Sprites */
33593388   ROM_LOAD( "fb-020a.u1", 0x000000, 0x100000, CRC(87e55c6d) SHA1(87886c045d7c30b8dee3c8fb0bf8f2cdbc5fd7fb) )
r6233r6234
33683397   ROM_LOAD( "fb010.u65",  0x000000, 0x100000, CRC(296ffd92) SHA1(183a28e4594c428deb4726ed22d5166592b94b60) )   // 42 pin mask rom
33693398   ROM_LOAD( "fb011.u66",  0x100000, 0x080000, CRC(500a0367) SHA1(6dc5190f81b21f59ee56a3b2332c8d86d6599782) )   // 40 pin mask rom (verified correct)
33703399
3371   ROM_REGION( 0x300000, "samples", 0 )
3400   ROM_REGION( 0x100000, "oki1", 0 )
33723401   ROM_LOAD( "fb001e.u43",  0x000000, 0x080000, CRC(f524aaa1) SHA1(006a886f9df2e57c51b61c6cea70a6574fc20304) )
33733402   ROM_LOAD( "fb000e.u42",  0x080000, 0x080000, CRC(969f1465) SHA1(4f56d1ad341b08f4db41b7ab2498740612ff7c3d) )
33743403
3375   /* Sound data is copied here during driver init */
3376   ROM_REGION( 0x400000*16, "oki1", 0 )
3377   ROM_FILL(                0x00000, 0x400000*16, 0x00 )
3378
33793404   ROM_REGION( 0x200000, "oki2", 0 )
33803405   ROM_LOAD( "fb-002.u45",   0x000000, 0x100000, CRC(010acc17) SHA1(2dc0897c7778eacf6bce12ff0adbadb307ea6c17) )
33813406   ROM_LOAD( "fb-003.u44",   0x100000, 0x100000, CRC(0aea4ac5) SHA1(8f3b30e505b0ba51c140a0a2c071680d4fa05db9) )
r6233r6234
33833408
33843409/***************************************************************************
33853410
3386Shogun Warriors (Europe Rev.xx)(Kaneko 1992)
3411                                Shogun Warriors
33873412
3388Dumped from an original Kaneko PCB. Board No. Z01DK-002 / Serial FB92E01342. + Top board "Z05DP FOR Z01DK"
3413Shogun Warriors, Kaneko 1992
33893414
3390Two Program roms are equal to the Japanese version. See Below:
3415   fb010.u65           fb040.u33
3416   fb011.u66
3417   rb012.u67
3418   rb013.u68
33913419
3392fb000e.u43  = fb001e.u43  Shogun Warriors               <Note: Different label compared to Mame.
3393fb001e.u101 = fb000e.u42  Shogun Warriors               <Note: Different label/position compared to Mame.
3394fb030e.u61  = fb030j.u61  Fujiyama Buster(Japan)        <Note: Same as the Japanese version in Mame.
3395fb031e.u62 NO MATCH
3396fb040e.u33  = fb040j.u33  Fujiyama Buster (Japan)       <Note: Same as the Japanese version in Mame.
3420                         fb001.u43
3421     68000-12            fb000.u42  m6295
3422    51257     fb030.u61  fb002.u44  m6295
3423    51257     fb031.u62  fb003.u45
33973424
33983425
3399The rom positions are equal to the Japanese version in Mame (Same Hardware revision).
3400The "e" suffix on the roms of "Shogun Warriors" that is previously
3401in Mame indicates that it is an European Version too, so this must be
3402an earlier or later European revision.
3426                fb021a.u3
3427                fb021b.u4
3428                fb022a.u5
3429   fb023.u7     fb022b.u6
3430   fb020a.u1    fb020b.u2
34033431
3404Some hardware(custom chip) differences compared with the info in the Mame source:
34053432
3406Fujiyama Buster(Japan)                      Shogun Warriors (Europe) (My Dump)
34073433
3408KANEKO JAPAN 9152EV 175101 (160 Pin PQFP) = KANEKO JAPAN 9202EV 175071 (160 Pin PQFP)
3409KANEKO JAPAN 9203 T (44 PIN PQFP)         = KANEKO JAPAN 9204 T (44 PIN PQFP)
3434---------------------------------------------------------------------------
3435                                Game code
3436---------------------------------------------------------------------------
34103437
3438102e04-7    <- !b80004-7
3439102e18.w    -> $800000
3440102e1c.w    -> $800002 , $800006
3441102e1a.w    -> $800004
3442102e20.w    -> $800008
3443
3444ROUTINES:
3445
34466622    print ($600000)
3447
34113448***************************************************************************/
34123449
3413ROM_START( shogwarre )
3450
3451// the 'green garbage' on the VS logo shown in the video ( http://www.youtube.com/watch?v=lz4gY9d7uxw ) doesn't happen on the real PCB,
3452// it appears to be an encoding artifact on the videos uploaded by this poster
3453
3454ROM_START( shogwarru )
34143455    ROM_REGION( 0x040000, "maincpu", 0 )         /* 68000 Code */
3415   ROM_LOAD16_BYTE( "fb030e.u61", 0x000000, 0x020000, CRC(32ce7909) SHA1(02d87342706ac9547eb611bd542f8498ba41e34a) )
3416   ROM_LOAD16_BYTE( "fb031e.u62", 0x000001, 0x020000, CRC(228aeaf5) SHA1(5e080d7975bc5dcf6fccfbc286eafe939496d9bf) )
3456   ROM_LOAD16_BYTE( "fb030a.u61", 0x000000, 0x020000, CRC(a04106c6) SHA1(95ab084f2e709be7cec2964cb09bcf5a8d3aacdf) )
3457   ROM_LOAD16_BYTE( "fb031a.u62", 0x000001, 0x020000, CRC(d1def5e2) SHA1(f442de4433547e52b483549aca5786e4597a7122) )
34173458
34183459    ROM_REGION( 0x020000, "cpu1", 0 )         /* MCU Code */
3419   ROM_LOAD( "fb040e.u33",  0x000000, 0x020000, CRC(299d0746) SHA1(67fe3a47ab01fa02ce2bb5836c2041986c19d875) )
3460   ROM_LOAD( "fb040a.u33",  0x000000, 0x020000, CRC(4b62c4d9) SHA1(35c943dde70438a411714070e42a84366db5ef83) )
34203461
34213462   ROM_REGION( 0x1000000, "gfx1", ROMREGION_ERASEFF )   /* Sprites */
34223463   ROM_LOAD( "fb-020a.u1", 0x000000, 0x100000, CRC(87e55c6d) SHA1(87886c045d7c30b8dee3c8fb0bf8f2cdbc5fd7fb) )
r6233r6234
34313472   ROM_LOAD( "fb010.u65",  0x000000, 0x100000, CRC(296ffd92) SHA1(183a28e4594c428deb4726ed22d5166592b94b60) )   // 42 pin mask rom
34323473   ROM_LOAD( "fb011.u66",  0x100000, 0x080000, CRC(500a0367) SHA1(6dc5190f81b21f59ee56a3b2332c8d86d6599782) )   // 40 pin mask rom (verified correct)
34333474
3434   ROM_REGION( 0x300000, "samples", 0 )
3475   ROM_REGION( 0x100000, "oki1", 0 )
34353476   ROM_LOAD( "fb001e.u43",  0x000000, 0x080000, CRC(f524aaa1) SHA1(006a886f9df2e57c51b61c6cea70a6574fc20304) )
34363477   ROM_LOAD( "fb000e.u42",  0x080000, 0x080000, CRC(969f1465) SHA1(4f56d1ad341b08f4db41b7ab2498740612ff7c3d) )
34373478
3438   /* Sound data is copied here during driver init */
3439   ROM_REGION( 0x400000*16, "oki1", 0 )
3440   ROM_FILL(                0x00000, 0x400000*16, 0x00 )
3441
34423479   ROM_REGION( 0x200000, "oki2", 0 )
34433480   ROM_LOAD( "fb-002.u45",   0x000000, 0x100000, CRC(010acc17) SHA1(2dc0897c7778eacf6bce12ff0adbadb307ea6c17) )
34443481   ROM_LOAD( "fb-003.u44",   0x100000, 0x100000, CRC(0aea4ac5) SHA1(8f3b30e505b0ba51c140a0a2c071680d4fa05db9) )
r6233r6234
35033540   ROM_LOAD( "fb010.u65",  0x000000, 0x100000, CRC(296ffd92) SHA1(183a28e4594c428deb4726ed22d5166592b94b60) )   // 42 pin mask rom
35043541   ROM_LOAD( "fb011.u66",  0x100000, 0x080000, CRC(500a0367) SHA1(6dc5190f81b21f59ee56a3b2332c8d86d6599782) )   // 40 pin mask rom (verified correct)
35053542
3506
3507   ROM_REGION( 0x300000, "samples", 0 )
3543   ROM_REGION( 0x100000, "oki1", 0 )
35083544   ROM_LOAD( "fb000j.u43",    0x000000, 0x080000, CRC(a7522555) SHA1(ea88d90dda20bc309f98a1924c41551e7708e6af) )
35093545   ROM_LOAD( "fb001j_u.101",  0x080000, 0x080000, CRC(07d4e8e2) SHA1(0de911f452ddeb54b0b435b9c1cf5d5881175d44) )
35103546
3511   /* Sound data is copied here during driver init */
3512   ROM_REGION( 0x400000*16, "oki1", 0 )
3513   ROM_FILL(                0x00000, 0x400000*16, 0x00 )
3514
35153547   ROM_REGION( 0x200000, "oki2", 0 )
35163548   ROM_LOAD( "fb-002.u45",   0x000000, 0x100000, CRC(010acc17) SHA1(2dc0897c7778eacf6bce12ff0adbadb307ea6c17) )
35173549   ROM_LOAD( "fb-003.u44",   0x100000, 0x100000, CRC(0aea4ac5) SHA1(8f3b30e505b0ba51c140a0a2c071680d4fa05db9) )
r6233r6234
36553687   ROM_LOAD( "rb-012.u67",  0x200000, 0x100000, CRC(bfdbe0d1) SHA1(3abc5398ee8ee1871b4d081f9b748539d69bcdba) )
36563688   ROM_LOAD( "rb-013.u68",  0x300000, 0x100000, CRC(28c37fe8) SHA1(e10dd1a810983077328b44e6e33ce2e899c506d2) )
36573689
3658   ROM_REGION( 0x300000, "samples", 0 )
3659   /* OKI 1 */
3690   ROM_REGION( 0x100000, "oki1", 0 )
36603691   ROM_LOAD( "rb-000.u43",  0x000000, 0x080000, CRC(58ad1a62) SHA1(1d2643b5f6eac22682972a88d284e00de3e3b223) )
36613692   ROM_LOAD( "rb-003.101",  0x080000, 0x080000, CRC(2cac25d7) SHA1(0412c317bf650a93051b9304d23035efde0c026a) )
36623693
3663   /* OKI 2 */
3664   ROM_LOAD( "rb-001.u44",  0x100000, 0x100000, CRC(7cf774b3) SHA1(3fb0a5096ce9480f97e311439042eb8cbc26efb4) )
3665   ROM_LOAD( "rb-002.u45",  0x200000, 0x100000, CRC(e4b30444) SHA1(be6756dce3721226e0b7f5d4d168008c31aeea8e) )
3666
3667   /* Sound data is copied here during driver init */
3668   ROM_REGION( 0x400000*16, "oki1", 0 )
3669   ROM_FILL(                0x00000, 0x400000*16, 0x00 )
3670
3671   ROM_REGION( 0x400000*16, "oki2", 0 )
3672   ROM_FILL(                0x00000, 0x400000*16, 0x00 )
3694   ROM_REGION( 0x200000, "oki2", 0 )
3695   ROM_LOAD( "rb-001.u44",  0x000000, 0x100000, CRC(7cf774b3) SHA1(3fb0a5096ce9480f97e311439042eb8cbc26efb4) )
3696   ROM_LOAD( "rb-002.u45",  0x100000, 0x100000, CRC(e4b30444) SHA1(be6756dce3721226e0b7f5d4d168008c31aeea8e) )
36733697ROM_END
36743698
36753699
r6233r6234
36823706   ROM_LOAD( "rb-006.u33",  0x000000, 0x020000, CRC(f1d76b20) SHA1(c571b5f28e529589ee2d7697ef5d4b60ccb66e7a) )
36833707
36843708   ROM_REGION( 0x1000000, "gfx1", 0 )   /* Sprites */
3685   /* prety sure all these are at least half size */
36863709   ROM_LOAD( "rb-020.c2",  0x000000, 0x100000, CRC(ce220d38) SHA1(b88d7c89a3e1a826bf19a1fa692ec77c944596d9) )
36873710   ROM_LOAD( "rb-021.u76", 0x100000, 0x100000, CRC(74001407) SHA1(90002056ceb4e0401246950b8c3f996af0a2463c) )
36883711   ROM_LOAD( "rb-022.u77", 0x200000, 0x100000, CRC(cb3f42dc) SHA1(5415f15621924dd263b8fe7daaf3dc25d470b814) )
r6233r6234
36913714   ROM_LOAD( "rb-025.u4",  0x500000, 0x080000, CRC(aa795ba5) SHA1(c5256dcceded2e76f548b60c18e51d0dd0209d81) ) // eprom, special title screen
36923715   ROM_LOAD( "rb-026.u5",  0x580000, 0x080000, CRC(bb7604d4) SHA1(57d51ce4ea2000f9a50bae326cfcb66ec494249f) ) // eprom, logs that bounce past
36933716
3694
36953717   ROM_REGION( 0x400000, "gfx2", 0 )   /* Tiles (scrambled) */
36963718   ROM_LOAD( "rb-010.u65",  0x000000, 0x100000, CRC(ffd73f87) SHA1(1a661f71976be61c22d9b962850e738ba17f1d45) )
36973719   ROM_LOAD( "rb-011.u66",  0x100000, 0x100000, CRC(d9325f78) SHA1(346832608664aa8f3ac9260a549903386b4125a8) )
36983720   ROM_LOAD( "rb-012.u67",  0x200000, 0x100000, CRC(bfdbe0d1) SHA1(3abc5398ee8ee1871b4d081f9b748539d69bcdba) )
36993721   ROM_LOAD( "rb-013.u68",  0x300000, 0x100000, CRC(28c37fe8) SHA1(e10dd1a810983077328b44e6e33ce2e899c506d2) )
37003722
3701   ROM_REGION( 0x300000, "samples", 0 )
3702   /* OKI 1 */
3723   ROM_REGION( 0x100000, "oki1", 0 )
37033724   ROM_LOAD( "rb-000.u43",  0x000000, 0x080000, CRC(58ad1a62) SHA1(1d2643b5f6eac22682972a88d284e00de3e3b223) )
37043725   ROM_LOAD( "rb-003.101",  0x080000, 0x080000, CRC(2cac25d7) SHA1(0412c317bf650a93051b9304d23035efde0c026a) )
37053726
3706   /* OKI 2 */
3707   ROM_LOAD( "rb-001.u44",  0x100000, 0x100000, CRC(7cf774b3) SHA1(3fb0a5096ce9480f97e311439042eb8cbc26efb4) )
3708   ROM_LOAD( "rb-002.u45",  0x200000, 0x100000, CRC(e4b30444) SHA1(be6756dce3721226e0b7f5d4d168008c31aeea8e) )
3709
3710   /* Sound data is copied here during driver init */
3711   ROM_REGION( 0x400000*16, "oki1", 0 )
3712   ROM_FILL(                0x00000, 0x400000*16, 0x00 )
3713
3714   ROM_REGION( 0x400000*16, "oki2", 0 )
3715   ROM_FILL(                0x00000, 0x400000*16, 0x00 )
3727   ROM_REGION( 0x200000, "oki2", 0 )
3728   ROM_LOAD( "rb-001.u44",  0x000000, 0x100000, CRC(7cf774b3) SHA1(3fb0a5096ce9480f97e311439042eb8cbc26efb4) )
3729   ROM_LOAD( "rb-002.u45",  0x100000, 0x100000, CRC(e4b30444) SHA1(be6756dce3721226e0b7f5d4d168008c31aeea8e) )
37163730ROM_END
37173731
37183732/**********************************************************************
r6233r6234
38143828   DRIVER_INIT_CALL(kaneko16);
38153829    //  MCU is a 78K series III type CPU
38163830}
3817static void expand_shogwarr_samples(running_machine* machine)
3818{
3819   /*
3820        Expand the OKI sample data
38213831
3822        OKI 1:
3823        Address space 0x00000-0x2ffff is fixed
3824        Address space 0x30000-0x3ffff is banked (13 banks)
3825    */
38263832
3827   int bank;
3828   UINT8 *src = memory_region(machine, "samples");
3829   UINT8 *dst1 = memory_region(machine, "oki1");
3830
3831   /* OKI 1 */
3832   for (bank = 0; bank < 13; ++bank)
3833   {
3834      UINT8 *dst;
3835      UINT8 *srcn;
3836
3837      dst = dst1 + 0x40000 * bank;
3838      srcn = src + 0x30000 + (0x10000 * bank);
3839      memcpy(dst, src, 0x30000);
3840      memcpy(dst + 0x30000, srcn, 0x10000);
3841   }
3842}
3843
3844static void expand_brapboys_music(running_machine* machine)
3845{
3846   /*
3847        Expand the OKI sample data
3848
3849        OKI 2:
3850        Address space 0x00000-0x1ffff is fixed
3851        Address space 0x20000-0x3ffff is banked (15 banks)
3852    */
3853
3854   int bank;
3855   UINT8 *src = memory_region(machine, "samples");
3856   UINT8 *dst2 = memory_region(machine, "oki2");
3857
3858   /* OKI 2 */
3859   for (bank = 0; bank < 15; ++bank)
3860   {
3861      UINT8 *dst;
3862      UINT8 *srcn;
3863      dst = dst2 + 0x40000 * bank;
3864      srcn = src + 0x120000 + (0x20000 * bank);
3865      memcpy(dst, src + 0x100000, 0x20000);
3866      memcpy(dst + 0x20000, srcn, 0x20000);
3867   }
3868}
3869
38703833static DRIVER_INIT( shogwarr )
38713834{
3872   expand_shogwarr_samples(machine);
3835   // default sample banks
3836   kaneko16_common_oki_bank_w(machine, 10, "oki1", 0, 0x30000, 0x10000);
3837   kaneko16_common_oki_bank_w(machine, 11, "oki2", 0, 0x00000, 0x40000);
3838
38733839   DRIVER_INIT_CALL(calc3);
38743840}
38753841
38763842
38773843static DRIVER_INIT( brapboys )
38783844{
3879   expand_shogwarr_samples(machine);
38803845   // sample banking is different on brap boys for the music, why? GALs / PALs ?
3881   expand_brapboys_music(machine);
3846   memory_install_write16_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xe00000, 0xe00001, 0, 0, brapboys_oki_bank_w);
3847
3848   // default sample banks
3849   kaneko16_common_oki_bank_w(machine, 10, "oki1", 0, 0x30000, 0x10000);
3850   kaneko16_common_oki_bank_w(machine, 11, "oki2", 0, 0x20000, 0x20000);
3851
38823852   DRIVER_INIT_CALL(calc3);
38833853}
38843854
r6233r6234
39103880GAME( 1995, gtmr2a,   gtmr2,    gtmr2,    gtmr2,    gtmr2, ROT0,  "Kaneko", "Mille Miglia 2: Great 1000 Miles Rally (95/04/04)", 0 )
39113881GAME( 1995, gtmr2u,   gtmr2,    gtmr2,    gtmr2,    gtmr2, ROT0,  "Kaneko", "Great 1000 Miles Rally 2 USA (95/05/18)", 0 )
39123882// some functionality of the protection chip still needs investigating on these, but they seem to be playable
3913GAME( 1992, brapboys, 0,        shogwarr, brapboys, brapboys,          ROT0,  "Kaneko", "B.Rap Boys (World)",      0 )
3914GAME( 1992, brapboysj,brapboys, shogwarr, brapboys, brapboys,          ROT0,  "Kaneko", "B.Rap Boys Special (Japan)",      0 )
3915GAME( 1992, shogwarr, 0,        shogwarr, shogwarr, shogwarr,   ROT0,  "Kaneko", "Shogun Warriors (US)",    0 )
3916GAME( 1992, shogwarre,shogwarr, shogwarr, shogwarr, shogwarr,   ROT0,  "Kaneko", "Shogun Warriors (World)", 0 )
3883GAME( 1992, brapboys, 0,        brapboys, brapboys, brapboys,   ROT0,  "Kaneko", "B.Rap Boys (World)", 0 )
3884GAME( 1992, brapboysj,brapboys, brapboys, brapboys, brapboys,   ROT0,  "Kaneko", "B.Rap Boys Special (Japan)", 0 )
3885GAME( 1992, shogwarr, 0,        shogwarr, shogwarr, shogwarr,   ROT0,  "Kaneko", "Shogun Warriors (World)", 0 )
3886GAME( 1992, shogwarru,shogwarr, shogwarr, shogwarr, shogwarr,   ROT0,  "Kaneko", "Shogun Warriors (US)",    0 )
39173887GAME( 1992, fjbuster, shogwarr, shogwarr, shogwarr, shogwarr,   ROT0,  "Kaneko", "Fujiyama Buster (Japan)", 0 )
39183888
src/mame/drivers/namconb1.c
r6233r6234
66
77ToDo:
88- gunbulet force feedback
9- MCU simulation (coin/inputs) is incomplete; it doesn't handle coinage
10- sound support
9- music tempo is too fast in Nebulas Ray, JLS V-Shoot and the Great Sluggers games
1110
1211Main CPU : Motorola 68020 32-bit processor @ 25MHz
1312Secondary CPUs : C329 + 137 (both custom)
r6233r6234
896895   // HACK!  Many games data ROM routines redirect the vector from the sound command read to an RTS.
897896   // This needs more investigation.  nebulray and vshoot do NOT do this.
898897   // Timers A2 and A3 are set up in "external input counter" mode, this may be related.
898#if 0
899899   if ((offset == 0x647c/2) && (data != 0))
900900   {
901901      data = 0xd2f6;
902902   }
903#endif
903904
904905   COMBINE_DATA(&namconb_shareram[offset]);
905906
src/mame/drivers/cps2.c
r6233r6234
30393039   ROM_LOAD16_WORD_SWAP( "vam.12m",   0x200000, 0x200000, CRC(1a3e5c03) SHA1(c5a556e125d6c3d68da745b4d56cd7a851f2a23d) )
30403040ROM_END
30413041
3042ROM_START( dstlkh )
3043   ROM_REGION( CODE_SIZE, "maincpu", 0 )      /* 68000 code */
3044   ROM_LOAD16_WORD_SWAP( "vamh.03c", 0x000000, 0x80000, CRC(4d7b9e8f) SHA1(08555da1b024e6ab4dfe802352065c132ddc2abb) )
3045   ROM_LOAD16_WORD_SWAP( "vamh.04c", 0x080000, 0x80000, CRC(2217e9a0) SHA1(b86ee89457d8a0cf828f1bed247f3b2c0c91b170) )
3046   ROM_LOAD16_WORD_SWAP( "vamh.05c", 0x100000, 0x80000, CRC(3a05b13c) SHA1(14b58954bdff8dd699f867037a86f0bae8095e9d) )
3047   ROM_LOAD16_WORD_SWAP( "vamh.06c", 0x180000, 0x80000, CRC(11d70a1c) SHA1(e13c5afeb9cb64ec60d570b81d7fac4869c76d1d) )
3048   ROM_LOAD16_WORD_SWAP( "vamh.07c", 0x200000, 0x80000, CRC(db5a8767) SHA1(86274080e4423d09e10f2db56a4e685b32acfa18) )
3049   ROM_LOAD16_WORD_SWAP( "vamh.08c", 0x280000, 0x80000, CRC(2a4fd79b) SHA1(ff0398db43ef849365ad88b9b57661db3a3b65c6) )
3050   ROM_LOAD16_WORD_SWAP( "vamh.09c", 0x300000, 0x80000, CRC(15187632) SHA1(81b7166334dc3c331673822c31581e0e7809b698) )
3051   ROM_LOAD16_WORD_SWAP( "vamh.10c", 0x380000, 0x80000, CRC(192d2d81) SHA1(ea99f2ea3e28edfc203e967924500dad10abb43f) )
3052
3053   ROM_REGION( 0x1400000, "gfx", 0 )
3054   ROMX_LOAD( "vam.13m",   0x0000000, 0x400000, CRC(c51baf99) SHA1(2fb6642908e542e404391eb17392f8270e87bf48) , ROM_GROUPWORD | ROM_SKIP(6) )
3055   ROMX_LOAD( "vam.15m",   0x0000002, 0x400000, CRC(3ce83c77) SHA1(93369b23c6d7d834297434691bb047ee3dd9539c) , ROM_GROUPWORD | ROM_SKIP(6) )
3056   ROMX_LOAD( "vam.17m",   0x0000004, 0x400000, CRC(4f2408e0) SHA1(cd49c6b3c7e6470c6058f98ccc5210b052bb13e2) , ROM_GROUPWORD | ROM_SKIP(6) )
3057   ROMX_LOAD( "vam.19m",   0x0000006, 0x400000, CRC(9ff60250) SHA1(d69ba4dc6bd37d003245f0cf3211d6e2623005b8) , ROM_GROUPWORD | ROM_SKIP(6) )
3058   ROMX_LOAD( "vam.14m",   0x1000000, 0x100000, CRC(bd87243c) SHA1(87b33aeb72514e1228ffc27ec6dd534f14882760) , ROM_GROUPWORD | ROM_SKIP(6) )
3059   ROMX_LOAD( "vam.16m",   0x1000002, 0x100000, CRC(afec855f) SHA1(cd117833b8d475489b90ff44b57e2c5cb1af3af5) , ROM_GROUPWORD | ROM_SKIP(6) )
3060   ROMX_LOAD( "vam.18m",   0x1000004, 0x100000, CRC(3a033625) SHA1(294238f30cba5cf4f8f1de951d54c2077bd95de9) , ROM_GROUPWORD | ROM_SKIP(6) )
3061   ROMX_LOAD( "vam.20m",   0x1000006, 0x100000, CRC(2bff6a89) SHA1(8f4e131e5ce0af48fb89f98026d9f0356c7c301f) , ROM_GROUPWORD | ROM_SKIP(6) )
3062
3063   ROM_REGION( QSOUND_SIZE, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
3064   ROM_LOAD( "vam.01",   0x00000, 0x08000, CRC(64b685d5) SHA1(6c180e7420db754eca5cad17a40f5a64f5c3bd15) )
3065   ROM_CONTINUE(         0x10000, 0x18000 )
3066   ROM_LOAD( "vam.02",   0x28000, 0x20000, CRC(cf7c97c7) SHA1(109a4b56ecd59be9c3f5869de99d40619bdaef21) )
3067
3068   ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */
3069   ROM_LOAD16_WORD_SWAP( "vam.11m",   0x000000, 0x200000, CRC(4a39deb2) SHA1(7e63e615869958db66a4e52a0272afee5a10e446) )
3070   ROM_LOAD16_WORD_SWAP( "vam.12m",   0x200000, 0x200000, CRC(1a3e5c03) SHA1(c5a556e125d6c3d68da745b4d56cd7a851f2a23d) )
3071ROM_END
3072
30423073ROM_START( ecofghtr )
30433074   ROM_REGION( CODE_SIZE, "maincpu", 0 )      /* 68000 code */
30443075   ROM_LOAD16_WORD_SWAP( "uece.03", 0x000000, 0x80000, CRC(ec2c1137) SHA1(19c5b68cccd682d3996faf8c5f07a644b2384b1c) )
r6233r6234
75147545GAME( 1994, dstlku,   dstlk,    cps2, cps2_2p6b, cps2,     ROT0,   "Capcom", "Darkstalkers: The Night Warriors (USA 940818)", 0 )
75157546GAME( 1994, dstlkur1, dstlk,    cps2, cps2_2p6b, cps2,     ROT0,   "Capcom", "Darkstalkers: The Night Warriors (USA 940705)", 0 )
75167547GAME( 1994, dstlka,   dstlk,    cps2, cps2_2p6b, cps2,     ROT0,   "Capcom", "Darkstalkers: The Night Warriors (Asia 940705)", 0 )
7548GAME( 1994, dstlkh,   dstlk,    cps2, cps2_2p6b, cps2,     ROT0,   "Capcom", "Darkstalkers: The Night Warriors (Hispanic 940818)", 0 )
75177549GAME( 1994, vampj,    dstlk,    cps2, cps2_2p6b, cps2,     ROT0,   "Capcom", "Vampire: The Night Warriors (Japan 940705)", 0 )   // partial update set? Only rom 04 is "B" revision
75187550GAME( 1994, vampja,   dstlk,    cps2, cps2_2p6b, cps2,     ROT0,   "Capcom", "Vampire: The Night Warriors (Japan 940705 alt)", 0 )
75197551GAME( 1994, vampjr1,  dstlk,    cps2, cps2_2p6b, cps2,     ROT0,   "Capcom", "Vampire: The Night Warriors (Japan 940630)", 0 )
src/mame/drivers/hyperspt.c
r6233r6234
1515#include "sound/vlm5030.h"
1616#include "machine/konami1.h"
1717#include "konamipt.h"
18#include "cpu/m6800/m6800.h"
19#include "includes/trackfld.h"
1820
1921extern UINT8 *hyperspt_scroll;
2022
r6233r6234
3335   coin_counter_w(offset,data);
3436}
3537
36/* handle fake button for speed cheat */
37static READ8_HANDLER( konami_IN1_r )
38{
39   int res;
40   static int cheat = 0;
41   static const int bits[] = { 0xee, 0xff, 0xbb, 0xaa };
4238
43   res = input_port_read(space->machine, "P1_P2");
44
45   if ((res & 0x80) == 0)
46   {
47      res |= 0x55;
48      res &= bits[cheat];
49      cheat = (cheat+1)%4;
50   }
51   return res;
52}
53
54
55
5639/*
5740 Track'n'Field has 1k of battery backed RAM which can be erased by setting a dipswitch
5841*/
r6233r6234
8063   AM_RANGE(0x1500, 0x1500) AM_WRITE(soundlatch_w)
8164   AM_RANGE(0x1600, 0x1600) AM_READ_PORT("DSW2")
8265   AM_RANGE(0x1680, 0x1680) AM_READ_PORT("SYSTEM")
83//  AM_RANGE(0x1681, 0x1681) AM_READ_PORT("P1_P2")
84   AM_RANGE(0x1681, 0x1681) AM_READ(konami_IN1_r)    /* P1/P2 IO and handle fake button for cheating */
66   AM_RANGE(0x1681, 0x1681) AM_READ_PORT("P1_P2")
8567   AM_RANGE(0x1682, 0x1682) AM_READ_PORT("P3_P4")
8668   AM_RANGE(0x1683, 0x1683) AM_READ_PORT("DSW1")
8769   AM_RANGE(0x2000, 0x27ff) AM_RAM_WRITE(hyperspt_videoram_w) AM_BASE(&videoram)
r6233r6234
124106   AM_RANGE(0xe002, 0xe002) AM_DEVWRITE("sn", konami_SN76496_w)     /* This address triggers the SN chip to read the data port. */
125107ADDRESS_MAP_END
126108
109static ADDRESS_MAP_START( soundb_map, ADDRESS_SPACE_PROGRAM, 8 )
110   AM_RANGE(0x0000, 0x3fff) AM_ROM
111   AM_RANGE(0x4000, 0x4fff) AM_RAM
112   AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r)
113   AM_RANGE(0x8000, 0x8000) AM_READ(hyperspt_sh_timer_r)
114   AM_RANGE(0xa000, 0xa000) AM_NOP
115   AM_RANGE(0xc000, 0xdfff) AM_WRITE(hyprolyb_adpcm_w)     /* speech and output control */
116   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("dac", dac_w)
117   AM_RANGE(0xe001, 0xe001) AM_WRITE(konami_SN76496_latch_w)  /* Loads the snd command into the snd latch */
118   AM_RANGE(0xe002, 0xe002) AM_DEVWRITE("sn", konami_SN76496_w)     /* This address triggers the SN chip to read the data port. */
119ADDRESS_MAP_END
127120
128121static INPUT_PORTS_START( hyperspt )
129122   PORT_START("SYSTEM")
r6233r6234
144137   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
145138   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
146139   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
147//  PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
148   /* Fake button to press buttons 1 and 3 impossibly fast. Handle via konami_IN1_r */
149   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Run Like Hell (Cheat)") PORT_PLAYER(1)
140   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
150141
151142   PORT_START("P3_P4")
152143   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3  ) PORT_PLAYER(3) //PORT_COCKTAIL  These were commented out
r6233r6234
344335MACHINE_DRIVER_END
345336
346337
338static MACHINE_DRIVER_START( hypersptb )
339   MDRV_IMPORT_FROM(hyperspt)
340   MDRV_DEVICE_REMOVE("vlm")
341
342   MDRV_CPU_MODIFY("audiocpu")
343   MDRV_CPU_PROGRAM_MAP(soundb_map)
344
345   MDRV_CPU_ADD("adpcm", M6802, XTAL_14_31818MHz/8)   /* unknown clock */
346   MDRV_CPU_PROGRAM_MAP(hyprolyb_adpcm_map)
347
348   MDRV_SOUND_ADD("msm", MSM5205, 384000)
349   MDRV_SOUND_CONFIG(hyprolyb_msm5205_config)
350   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
351
352MACHINE_DRIVER_END
353
354
347355static MACHINE_DRIVER_START( roadf )
348356   MDRV_IMPORT_FROM(hyperspt)
349357   MDRV_CPU_MODIFY("maincpu")
r6233r6234
397405   ROM_LOAD( "c08",          0x0000, 0x2000, CRC(e8f8ea78) SHA1(8d37818e5a2740c96696f37996f2a3f870386690) )
398406ROM_END
399407
408
409
410ROM_START( hypersptb )
411   ROM_REGION( 0x10000, "maincpu", 0 )
412   ROM_LOAD( "1.5g",          0x4000, 0x2000, CRC(0cfc68a7) SHA1(48ddd444f4366a39afb589e1c5df10d815b4b64f) )
413   ROM_LOAD( "2.7g",          0x6000, 0x2000, CRC(560258e0) SHA1(788d0d3cbbd97fb54eceb3281ccf84a31e5e3e98) )
414   ROM_LOAD( "3.8g",          0x8000, 0x2000, CRC(9b01c7e6) SHA1(0106f94b38ad62e7514e56aab35581968074bbe0) )
415   ROM_LOAD( "4.11g",          0xa000, 0x2000, CRC(4ed32240) SHA1(b093763655ebfd00b08542b49eab4606ea1ef8c6) )
416   ROM_LOAD( "5.13g",          0xc000, 0x2000, CRC(b105a8cd) SHA1(7d77ab4d75c0bff7ac7372a5ff5fe55839b57d19) )
417   ROM_LOAD( "6.15g",          0xe000, 0x2000, CRC(1a34a849) SHA1(daa42a959ea162ca7f098010c85a7453a8805df8) )
418
419   ROM_REGION( 0x10000, "audiocpu", 0 )
420   ROM_LOAD( "12.17a",          0x0000, 0x2000, CRC(3dc1a6ff) SHA1(1e67cac46b6c8a9a0bb1560e135983435520f1fc) )
421   ROM_LOAD( "11.15a",          0x2000, 0x2000, CRC(9b525c3e) SHA1(d8775ec3b4f12117431a2b7c7eaa038c1255241b) )
422
423   ROM_REGION( 0x10000, "gfx1", 0 )
424   ROM_LOAD( "20.15g",          0x00000, 0x4000, CRC(551d222f) SHA1(cd3d544ca5009cad3f9748804301bfed57329775) ) // 27256 ?! - it doesn't need to be!
425   ROM_CONTINUE(0xc000,0x4000) // causes data we want to be at 0xe000 - 0xffff
426   ROM_LOAD( "16.19j",          0x00000, 0x2000, CRC(c72d63be) SHA1(0677b4f7196551ebc1bbbecd0e15d79f8e32857d) )
427   ROM_LOAD( "15.18j",          0x02000, 0x2000, CRC(76565608) SHA1(418fb9a81c0583d0214afb27fea28794563b8460) )
428   ROM_LOAD( "14.17j",          0x04000, 0x2000, CRC(74d2cc69) SHA1(684b65455217f243b3690822d445efdcb18211bb) )
429   ROM_LOAD( "13.15j",          0x06000, 0x2000, CRC(66cbcb4d) SHA1(c4ea51a6f30d2cd0cd6e22fdadb83d889f2cc471) )
430   ROM_LOAD( "17.19g",          0x08000, 0x2000, CRC(ed25e669) SHA1(2e306db101cd4443b0a81cecf817e5ebbdaf1bba) )
431   ROM_LOAD( "18.18g",          0x0a000, 0x2000, CRC(b145b39f) SHA1(e696e1f9b44aa44360ea9962c4ee9b61db8e53f5) )
432   ROM_LOAD( "19.17g",          0x0c000, 0x2000, CRC(d7ff9f2b) SHA1(b0e6a056db96027ba0c10d3ee3bfdef145a236e2) )
433
434
435   ROM_REGION( 0x08000, "gfx2", 0 )
436   ROM_LOAD( "b.14a",          0x00000, 0x4000, CRC(8fd90bd2) SHA1(4faa270002f859a27719d08004b012cc297405f5) )  // 27256 ?! - it doesn't need to be!
437   ROM_CONTINUE(0x0000,0x4000)  // causes data we want to be at 0x0000 - 0x1fff
438   ROM_LOAD( "a.12a",          0x02000, 0x2000, CRC(a3d422c6) SHA1(f0e26a7190e64acd9b682aab5a66223de4055de0) )
439   ROM_LOAD( "d.14c",          0x04000, 0x2000, CRC(ed9271a0) SHA1(a458ad79922383f45f6522775e19cf693e226883) )
440   ROM_LOAD( "c.12c",          0x06000, 0x2000, CRC(0c8ed053) SHA1(2bf5e4fd94cbf7d459495a144b86b677eb1f89da) )
441
442   ROM_REGION( 0x0220, "proms", 0 )
443   ROM_LOAD( "mmi6331-1.3c",  0x0000, 0x0020, CRC(bc8a5956) SHA1(90746145d9f380c29919edea3ef7a8434c48c9d9) )
444   // no proms matched the ones below, but they're colours, so I assume them to be the same
445   ROM_LOAD( "j12_c28.bin",  0x0020, 0x0100, CRC(2c891d59) SHA1(79050fbe058c24349927edc7937ec68a77f450f1) )
446   ROM_LOAD( "a09_c29.bin",  0x0120, 0x0100, CRC(811a3f3f) SHA1(474f03345847cd9791ff6b7161286bbfef3f990a) )
447
448    /* These ROM's are located on the Sound Board */
449   ROM_REGION( 0x10000, "adpcm", 0 )   /*  64k for the 6802 which plays ADPCM samples */
450   ROM_LOAD( "10.20c",       0x8000, 0x2000, CRC(a4cddeb8) SHA1(057981ad3b04239662bb19342e9ec14b0dab2351) )
451   ROM_LOAD( "9.20cd",       0xa000, 0x2000, CRC(e9919365) SHA1(bd11d6e3ee2c6e698159c2768e315389d666107f) )
452   ROM_LOAD( "8.20d",        0xc000, 0x2000, CRC(49a06454) SHA1(159a293125d7ac92a81120e290497ee7ed6d8acf) )
453   ROM_LOAD( "7.20b",        0xe000, 0x2000, CRC(607a36df) SHA1(17e553e5070771133ed094f05b26dd6cd63cfc23) )
454
455ROM_END
456
400457ROM_START( hpolym84 )
401458   ROM_REGION( 0x10000, "maincpu", 0 )
402459   ROM_LOAD( "c01",          0x4000, 0x2000, CRC(0c720eeb) SHA1(cc0719db7e59c72e603ab2ca42565303bc41d281) )
r6233r6234
499556
500557
501558GAME( 1984, hyperspt, 0,      hyperspt, hyperspt, hyperspt, ROT0,  "Konami (Centuri license)", "Hyper Sports", 0 )
559GAME( 1984, hypersptb,hyperspt, hypersptb,hyperspt, hyperspt, ROT0,  "bootleg", "Hyper Sports (bootleg)", GAME_IMPERFECT_SOUND ) // has ADPCM vis MSM5205 instead of VLM
502560GAME( 1984, hpolym84, hyperspt, hyperspt, hyperspt, hyperspt, ROT0,  "Konami", "Hyper Olympic '84", 0 )
503561GAME( 1984, roadf,     0,      roadf,     roadf,   hyperspt, ROT90, "Konami", "Road Fighter (set 1)", 0 )
504562GAME( 1984, roadf2,   roadf,   roadf,     roadf,   hyperspt, ROT90, "Konami", "Road Fighter (set 2)", 0 )
src/mame/drivers/metro.c
r6233r6234
17521752   AM_RANGE(0x479700, 0x479713) AM_WRITEONLY AM_BASE(&metro_videoregs)               // Video Registers
17531753   AM_RANGE(0x800000, 0x800001) AM_DEVWRITE("oki", mouja_sound_rombank_w)
17541754   AM_RANGE(0xc00000, 0xc00003) AM_DEVWRITE8("ym", ym2413_w, 0x00ff)
1755   AM_RANGE(0xd00000, 0xd00001) AM_DEVREADWRITE8("oki", okim6295_r,okim6295_w, 0x00ff)
1755   AM_RANGE(0xd00000, 0xd00001) AM_DEVREADWRITE8("oki", okim6295_r,okim6295_w, 0xffff)
17561756#if 0
17571757   AM_RANGE(0x460000, 0x46ffff) AM_READ(metro_bankedrom_r)                        // Banked ROM
17581758   AM_RANGE(0x478840, 0x47884d) AM_WRITE(metro_blitter_w) AM_BASE(&metro_blitter_regs)   // Tiles Blitter
src/mame/drivers/naomi.c
r6233r6234
194019400x1ffffa-0x1fffff is the BIOS checksum
19411941
19421942
1943Airline Pilot specific Naomi BIOS roms:
1944
1945EPR-21802 - NAOMI BOOT ROM 1999 03/11  1.30 (Export)
1946
1947
19431948Region byte encoding is as follows:
19441949
194519500x00 = Japan
r6233r6234
19982003   ROM_SYSTEM_BIOS( 1, "bios1", "Ferrari F355 (USA)" ) \
19992004   ROM_LOAD16_WORD_SWAP_BIOS( 1,  "epr-22850.bin", 0x000000, 0x200000, CRC(28aa539d) SHA1(14485368656af80504b212da620179c49f84c1a2) )
20002005
2006#define AIRLINE_BIOS \
2007   ROM_SYSTEM_BIOS( 0, "bios0", "Airline Pilots Deluxe (Export)" ) \
2008   ROM_LOAD16_WORD_SWAP_BIOS( 0,  "epr-21802.bin", 0x000000, 0x200000, CRC(a77c6b1c) SHA1(bd50a6bb8fa9bac121b076e21ea048a83a240a48) ) \
20012009
2010
20022011/* only revisions d and higher support the GDROM, and there is an additional bios (and SH4!) on the DIMM board for the CD Controller */
20032012/* bios e works, the newer japan one gives 'board malfunction' with some games?' */
20042013#define NAOMIGD_BIOS \
r6233r6234
21032112   ROM_REGION( 0x8400000, "user1", ROMREGION_ERASE)
21042113ROM_END
21052114
2115ROM_START( airlbios )
2116   ROM_REGION( 0x200000, "maincpu", 0)
2117   AIRLINE_BIOS
2118
2119   ROM_REGION( 0x8400000, "user1", ROMREGION_ERASE)
2120ROM_END
2121
21062122ROM_START( naomi2 )
21072123   NAOMI2_BIOS
21082124
r6233r6234
28832899        ROM_LOAD( "mpr23398.ic21", 0xa800000, 0x800000, CRC(ea4d4d2a) SHA1(3dc9c7164516ae7f3b988c088ab819d8fd40d75e) )
28842900ROM_END
28852901
2902ROM_START( alpiltdx )
2903   ROM_REGION( 0x200000, "maincpu", 0)
2904   AIRLINE_BIOS
2905
2906   ROM_REGION( 0xb000000, "user1", ROMREGION_ERASEFF)
2907   ROM_LOAD( "epr21787b.ic22", 0x0000000, 0x400000, CRC(56893156) SHA1(8e56e0633f92b1f50105421b7eb8428f51a78b27) )
2908   ROM_LOAD( "mpr21728.ic1",  0x0800000, 0x800000, CRC(872338d4) SHA1(04857b300196c0ec51361d7cf7bb57274a15a326) )
2909   ROM_LOAD( "mpr21729.ic2",  0x1000000, 0x800000, CRC(9a9b72ad) SHA1(ce96da7904dd82abaa448df45e954521dd834ed8) )
2910   ROM_LOAD( "mpr21730.ic3",  0x1800000, 0x800000, CRC(93c25058) SHA1(658374bca3cf615982ebcf493eeaaa9e40e70f03) )
2911   ROM_LOAD( "mpr21731.ic4",  0x2000000, 0x800000, CRC(f14e578b) SHA1(d572903f7021757aebbb903b25a11a5aaf9f7a71) )
2912   ROM_LOAD( "mpr21732.ic5",  0x2800000, 0x800000, CRC(28ea4e8c) SHA1(7f87fe08819e756bb7aadca2aaacb0f6e59c13f0) )
2913   ROM_LOAD( "mpr21733.ic6",  0x3000000, 0x800000, CRC(5aee9e99) SHA1(8db726a73723c931fd8a4be2dd99d7c32352ad21) )
2914   ROM_LOAD( "mpr21734.ic7",  0x3800000, 0x800000, CRC(0574390d) SHA1(5988bdd089d23035ee2dd3596ea9c822455311d3) )
2915   ROM_LOAD( "mpr21735.ic8",  0x4000000, 0x800000, CRC(811400b4) SHA1(5f8d8b70f499b293b2d952c754c853c53b39c438) )
2916   ROM_LOAD( "mpr21736.ic9",  0x4800000, 0x800000, CRC(d74eda63) SHA1(d6794fa433cea9f06dc0a20dc9e10388162e7fd8) )
2917   ROM_LOAD( "mpr21737.ic10", 0x5000000, 0x800000, CRC(260aaa98) SHA1(d1082587afe9d79f286df8b107a553ee51c27643) )
2918   ROM_LOAD( "mpr21738.ic11", 0x5800000, 0x800000, CRC(95a592e8) SHA1(862dce467e8805381bab001df68262f1baf3c498) )
2919
2920   // on-cart X76F100 eeprom contents
2921   ROM_REGION( 0x100, "naomibd_eeprom", ROMREGION_ERASE00 )
2922   ROM_LOAD( "airlinepdx.sf",  0x000000, 0x000084, CRC(404b2add) SHA1(540c8474806775646ace111a2993397b1419fee3) )
2923ROM_END
2924
28862925ROM_START( hotd2 )
28872926   ROM_REGION( 0x200000, "maincpu", 0)
28882927   HOTD2_BIOS
r6233r6234
34103449        ROM_LOAD( "00800000.bin", 0x000000, 0x002000, CRC(7fc42084) SHA1(7c7b9e7e0b8885e690f3edd25e6d26201c899f2f) )
34113450
34123451   // JVS I/O board 837-13844, code is for a Z80 of unknown type (it's inside the big Sega ASIC)
3413   ROM_REGION( 0x10000, "jvsio", ROMREGION_ERASEFF)
3452   ROM_REGION( 0x20000, "jvsio", ROMREGION_ERASEFF)
34143453        ROM_LOAD( "epr-21868.ic7", 0x000000, 0x010000, CRC(c306a51f) SHA1(7833b73dc34c4c62401a30637968f46b949ceac0) )
3454   // later version of the same I/O board (temporary, we'll handle this properly later)
3455        ROM_LOAD( "epr-22082.ic7", 0x010000, 0x010000, CRC(de26fc6c) SHA1(cf8ef7969770fff8697299c3e3152413b898a967) )
34153456
34163457   // 18 Wheeler motor controller 838-13992, code is for a TMPZ84C015 which is Z80 compatible
34173458   ROM_REGION( 0x10000, "motorio", ROMREGION_ERASEFF)
r6233r6234
44694510GAME( 1999, f355,     f355bios, naomi,    naomi,    0,     ROT0, "Sega",            "Ferrari F355 Challenge", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
44704511GAME( 1999, f355twin, f355bios, naomi,    naomi,    0,     ROT0, "Sega",            "Ferrari F355 Challenge (Twin)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
44714512GAME( 1999, f355twn2, f355bios, naomi,    naomi,    0,     ROT0, "Sega",            "Ferrari F355 Challenge 2 (Twin)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
4513GAME( 1999, airlbios, 0,   naomi,    naomi,    0,     ROT0, "Sega",            "Naomi Airline Pilots Deluxe Bios", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
4514GAME( 1999, alpiltdx, airlbios, naomi,    naomi,    0,     ROT0, "Sega",            "Airline Pilots Deluxe", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
44724515
44734516/**********************************************
44744517 *
src/mame/drivers/megatech.c
r6233r6234
11021102/* Game 61 - Turbo Outrun */
11031103#define MEGATECH_GAME61(GAME_REGION, INSTRUCTION_REGION) \
11041104   ROM_REGION16_BE( 0x300000, GAME_REGION, 0 ) \
1105   ROM_LOAD16_WORD_SWAP( "epr-14674.ic1", 0x000000, 0x080000, CRC(c2b9a802) SHA1(108cc844c944125f9d271a2f2db094301294e8c2) ) \
1105   ROM_LOAD16_WORD_SWAP( "epr-14674.ic1", 0x000000, 0x080000, CRC(453712a2) SHA1(5d2c8430a9a14aac7f19c22617539b0503ab92cd) ) \
11061106    MEGATECH_INSTRUCTION_REGION( INSTRUCTION_REGION, MEGATECH_GAME_IS_GEN ) \
11071107   ROM_LOAD( "epr-12368-61.ic2", 0x000000, 0x08000, CRC(4aa0b2a2) SHA1(bce03f88d6cfd02683d51c28058f6229fda13b49) ) \
11081108
1109ROM_START( mt_tout ) /* Sonic The Hedgehog 2 */
1109// original dump of epr-14674.ic1 had CRC(c2b9a802) SHA1(108cc844c944125f9d271a2f2db094301294e8c2)
1110// with the byte at offset 3 being F6 instead of Fe, this seems like a bad dump when compared to the Genesis rom which
1111// has been verified on multiple carts, chances are the ROM had developed a fault.
1112
1113ROM_START( mt_tout ) /* Turbo Outrun */
11101114   MEGATECH_BIOS
11111115   MEGATECH_GAME61("game0", "inst0")
11121116ROM_END
src/mame/drivers/galdrvr.c
r6233r6234
48654865   ROM_LOAD( "c01s.6e",    0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) )
48664866ROM_END
48674867
4868ROM_START( scramblebf )
4869   ROM_REGION( 0x10000, "maincpu", 0 )
4870   ROM_LOAD( "scf1.2d",       0x0000, 0x0800, CRC(b126aa1f) SHA1(1e4db9ee891711e880273241e74e932b0f4e3a0b) )
4871   ROM_LOAD( "scf2.2e",       0x0800, 0x0800, CRC(ce25fb77) SHA1(faaa2e5735075090548217b80b736b2eebf21dff) )
4872   ROM_LOAD( "scns3.2f",      0x1000, 0x0800, CRC(eec265ee) SHA1(29b6cf6b93220414eb58cddeba591dc8813c4935) )
4873   ROM_LOAD( "scns4.2h",      0x1800, 0x0800, CRC(dd380a22) SHA1(125e713a58cc5f2c1e38f67dad29f8c985ce5a8b) )
4874   ROM_LOAD( "scns5.2j",      0x2000, 0x0800, CRC(92980e72) SHA1(7e0605b461ace534f8f91028bb82968ecd907ca1) )
4875   ROM_LOAD( "scns6.2l",      0x2800, 0x0800, CRC(9fd96374) SHA1(c8456dd8a012353a023a2d3fa5d508e49c36ace8) )
4876   ROM_LOAD( "scns7.2m",      0x3000, 0x0800, CRC(88ac07a0) SHA1(c57061db5984b472039356bf84a050b5b66e3813) )
4877   ROM_LOAD( "scns8.2p",      0x3800, 0x0800, CRC(75232e09) SHA1(b0da201bf05c63031cdbe9f7059e3c710557f33d) )
4878
4879   ROM_REGION( 0x10000, "audiocpu", 0 )
4880   ROM_LOAD( "ot1ns.5c",         0x0000, 0x0800, CRC(be037cf6) SHA1(f28e5ead496e70beaada24775aa58bd5d75f2d25) )
4881   ROM_LOAD( "ot2.5d",           0x0800, 0x0800, CRC(de7912da) SHA1(8558b4eff5d7e63029b325edef9914feda5834c3) )
4882   ROM_LOAD( "ot3.5e",           0x1000, 0x0800, CRC(ba2fa933) SHA1(1f976d8595706730e29f93027e7ab4620075c078) )
4883
4884   ROM_REGION( 0x1000, "gfx1", 0 )
4885   ROM_LOAD( "c2.5f",         0x0000, 0x0800, CRC(4708845b) SHA1(a8b1ad19a95a9d35050a2ab7194cc96fc5afcdc9) )
4886   ROM_LOAD( "c1.5h",         0x0800, 0x0800, CRC(11fd2887) SHA1(69844e48bb4d372cac7ae83c953df573c7ecbb7f) )
4887
4888   ROM_REGION( 0x0020, "proms", 0 ) // should be different on this bootleg..
4889   ROM_LOAD( "c01s.6e",    0x0000, 0x0020, BAD_DUMP CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) )
4890ROM_END
48684891ROM_START( strfbomb )
48694892   ROM_REGION( 0x10000, "maincpu", 0 )
48704893   ROM_LOAD( "1.2c",         0x0000, 0x0800, CRC(b102aaa0) SHA1(00560da7a2ded6afcdc1d46e12cc3c795654639a) )
r6233r6234
55515574
55525575/* straight Galaxian ripoffs on basic galaxian hardware */
55535576GAME( 1979, moonaln,  galaxian, galaxian, superg,   galaxian, ROT90,  "[Nichibutsu] (Karateco license)", "Moon Alien", GAME_SUPPORTS_SAVE )
5554GAME( 1979, superg,   galaxian, galaxian, superg,   galaxian, ROT90,  "hack", "Super Galaxians (galaxiaj hack)", GAME_SUPPORTS_SAVE )
5577GAME( 1979, superg,   galaxian, galaxian, superg,   galaxian, ROT90,  "hack", "Super Galaxians (galaxiana hack)", GAME_SUPPORTS_SAVE )
55555578GAME( 1979, galturbo, galaxian, galaxian, superg,   galaxian, ROT90,  "hack", "Galaxian Turbo (superg hack)", GAME_SUPPORTS_SAVE )
55565579GAME( 1979, galapx,   galaxian, galaxian, superg,   galaxian, ROT90,  "hack", "Galaxian Part X (moonaln hack)", GAME_SUPPORTS_SAVE )
5557GAME( 1979, galap1,   galaxian, galaxian, superg,   galaxian, ROT90,  "hack", "Space Invaders Galactica (galaxiaj hack)", GAME_SUPPORTS_SAVE )
5580GAME( 1979, galap1,   galaxian, galaxian, superg,   galaxian, ROT90,  "hack", "Space Invaders Galactica (galaxiana hack)", GAME_SUPPORTS_SAVE )
55585581GAME( 1979, galap4,   galaxian, galaxian, superg,   galaxian, ROT90,  "G.G.I", "Galaxian Part 4 (hack)", GAME_SUPPORTS_SAVE )
55595582GAME( 1979, swarm,    galaxian, galaxian, swarm,    galaxian, ROT90,  "Subelectro", "Swarm (bootleg?)", GAME_SUPPORTS_SAVE )
55605583GAME( 1979, zerotime, galaxian, galaxian, zerotime, galaxian, ROT90,  "Petaco S.A.", "Zero Time", GAME_SUPPORTS_SAVE )
55615584GAME( 1979, starfght, galaxian, galaxian, swarm,    galaxian, ROT90,  "Jeutel", "Star Fighter", GAME_SUPPORTS_SAVE )
55625585GAME( 1979, galaxbsf, galaxian, galaxian, galaxian, galaxian, ROT90,  "bootleg", "Galaxian (bootleg)", GAME_SUPPORTS_SAVE )
5563GAME( 1979, kamakazi3,galaxian, galaxian, superg,   galaxian, ROT90,  "hack", "Kamakazi III (superg hack)", GAME_SUPPORTS_SAVE )
55645586GAME( 1980, supergx,  galaxian, galaxian, superg,   galaxian, ROT90,  "Nichibutsu", "Super GX", GAME_NOT_WORKING | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
55655587GAME( 19??, tst_galx, galaxian, galaxian, galaxian, galaxian, ROT90,  "Test ROM", "Galaxian Test ROM", GAME_SUPPORTS_SAVE )
55665588
r6233r6234
55775599GAME( 1981, redufo,   0,        galaxian, redufo,   nolock,   ROT90,  "bootleg", "Defend the Terra Attack on the Red UFO", GAME_SUPPORTS_SAVE )
55785600GAME( 19??, exodus,   redufo,   galaxian, exodus,   nolock,   ROT90,  "Subelectro", "Exodus (bootleg?)", GAME_SUPPORTS_SAVE )
55795601GAME( 1983, tdpgal,   0,        galaxian, tdpgal,   nolock,   ROT90,  "Design Labs / Thomas Automatics", "Triple Draw Poker", GAME_SUPPORTS_SAVE )
5602GAME( 1979, kamakazi3,galaxian, galaxian, superg,   nolock,     ROT90,  "hack", "Kamakazi III (superg hack)", GAME_SUPPORTS_SAVE )
55805603
55815604/* different bullet color */
55825605GAME( 1982, azurian,  0,        galaxian, azurian,  azurian,  ROT90,  "Rait Electronics Ltd", "Azurian Attack", GAME_SUPPORTS_SAVE )
r6233r6234
57185741GAME( 1981, scrambles,scramble, scramble, scramble, scramble, ROT90,  "[Konami] (Stern license)", "Scramble (Stern)", GAME_SUPPORTS_SAVE )
57195742GAME( 1981, strfbomb, scramble, scramble, strfbomb, scramble, ROT90,  "Omni", "Strafe Bomb", GAME_SUPPORTS_SAVE )
57205743GAME( 1981, explorer, scramble, explorer, explorer, explorer, ROT90,  "bootleg", "Explorer", GAME_SUPPORTS_SAVE )
5744GAME( 1981, scramblebf,scramble,scramble, scramble, scramble, ROT90,  "Karateko (bootleg)", "Scramble (Karateko, French bootleg)", GAME_SUPPORTS_SAVE )
57215745
57225746GAME( 1981, atlantis, 0,        theend,   atlantis, atlantis, ROT90,  "Comsoft", "Battle of Atlantis (set 1)", GAME_SUPPORTS_SAVE )
57235747GAME( 1981, atlantis2,atlantis, theend,   atlantis, atlantis, ROT90,  "Comsoft", "Battle of Atlantis (set 2)", GAME_SUPPORTS_SAVE )
src/mame/drivers/legionna.c
r6233r6234
152152   AM_RANGE(0x11f000, 0x11ffff) AM_RAM
153153ADDRESS_MAP_END
154154
155static ADDRESS_MAP_START( sdgndmrb_map, ADDRESS_SPACE_PROGRAM, 16 )
155static ADDRESS_MAP_START( grainbow_map, ADDRESS_SPACE_PROGRAM, 16 )
156156   AM_RANGE(0x000000, 0x0fffff) AM_ROM
157157   AM_RANGE(0x100000, 0x1003ff) AM_RAM
158   AM_RANGE(0x100400, 0x1007ff) AM_READWRITE(sdgndmrb_mcu_r, sdgndmrb_mcu_w) AM_BASE(&cop_mcu_ram)   /* COP mcu */
158   AM_RANGE(0x100400, 0x1007ff) AM_READWRITE(grainbow_mcu_r, grainbow_mcu_w) AM_BASE(&cop_mcu_ram)   /* COP mcu */
159159   AM_RANGE(0x100800, 0x100fff) AM_RAM_WRITE(legionna_background_w) AM_BASE(&legionna_back_data)
160160   AM_RANGE(0x101000, 0x1017ff) AM_RAM_WRITE(legionna_foreground_w) AM_BASE(&legionna_fore_data)
161161   AM_RANGE(0x101800, 0x101fff) AM_RAM_WRITE(legionna_midground_w) AM_BASE(&legionna_mid_data)
r6233r6234
516516   PORT_BIT( 0x8000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
517517INPUT_PORTS_END
518518
519static INPUT_PORTS_START( sdgndmrb )
519static INPUT_PORTS_START( grainbow )
520520   SEIBU_COIN_INPUTS   /* coin inputs read through sound cpu */
521521
522522   PORT_START("DSW1")
r6233r6234
10281028   GFXDECODE_ENTRY( "gfx6", 0, legionna_tilelayout,   16*16, 16 )
10291029GFXDECODE_END
10301030
1031static GFXDECODE_START( sdgndmrb )
1031static GFXDECODE_START( grainbow )
10321032   GFXDECODE_ENTRY( "gfx1", 0, legionna_new_charlayout,    48*16, 16 )
10331033   GFXDECODE_ENTRY( "gfx3", 0, legionna_tilelayout,    0*16, 16 )
10341034   GFXDECODE_ENTRY( "gfx4", 0, legionna_tilelayout,  32*16, 16 )   /* unused */
r6233r6234
11641164   SEIBU_SOUND_SYSTEM_YM2151_INTERFACE(14318180/4,1320000)
11651165MACHINE_DRIVER_END
11661166
1167static MACHINE_DRIVER_START( sdgndmrb )
1167static MACHINE_DRIVER_START( grainbow )
11681168
11691169   /* basic machine hardware */
11701170   MDRV_CPU_ADD("maincpu", M68000, 20000000/2)
1171   MDRV_CPU_PROGRAM_MAP(sdgndmrb_map)
1171   MDRV_CPU_PROGRAM_MAP(grainbow_map)
11721172   MDRV_CPU_VBLANK_INT("screen", irq4_line_hold)
11731173
11741174   SEIBU2_SOUND_SYSTEM_CPU(14318180/4)
r6233r6234
11851185   MDRV_SCREEN_SIZE(40*8, 32*8)
11861186   MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 32*8-1)
11871187
1188   MDRV_GFXDECODE(sdgndmrb)
1188   MDRV_GFXDECODE(grainbow)
11891189   MDRV_PALETTE_LENGTH(128*16)
11901190
11911191   MDRV_VIDEO_START(legionna)
1192   MDRV_VIDEO_UPDATE(sdgndmrb)
1192   MDRV_VIDEO_UPDATE(grainbow)
11931193
11941194   /* sound hardware */
11951195   SEIBU_SOUND_SYSTEM_YM2151_INTERFACE(14318180/4,1320000)
r6233r6234
12211221   MDRV_PALETTE_LENGTH(128*16)
12221222
12231223   MDRV_VIDEO_START(cupsoc)
1224   MDRV_VIDEO_UPDATE(sdgndmrb)
1224   MDRV_VIDEO_UPDATE(grainbow)
12251225
12261226   /* sound hardware */
12271227   SEIBU_SOUND_SYSTEM_YM3812_INTERFACE(14318180/4,1320000)
r6233r6234
12571257   MDRV_PALETTE_LENGTH(128*16)
12581258
12591259   MDRV_VIDEO_START(cupsoc)
1260   MDRV_VIDEO_UPDATE(sdgndmrb)
1260   MDRV_VIDEO_UPDATE(grainbow)
12611261
12621262   /* sound hardware */
12631263   MDRV_SPEAKER_STANDARD_MONO("mono")
r6233r6234
17681768
17691769*/
17701770
1771ROM_START( sdgndmrb )
1771ROM_START( grainbow )
17721772   ROM_REGION( 0x100000, "maincpu", 0 )   /* 68000 code */
17731773   ROM_LOAD32_BYTE( "rb-p1.25",     0x000000, 0x040000, CRC(0995c511) SHA1(97fb2bd7d26720552ace25e655fce09ad9a7afd7) )
17741774   ROM_LOAD32_BYTE( "rb-p2.24",     0x000001, 0x040000, CRC(c9eb756f) SHA1(88d784a71bfab4f321d3320aed1b6b2648529979) )
r6233r6234
21162116GAME( 1992, heatbrlu, heatbrl,  heatbrl,  heatbrl,  0,   ROT0, "Tad", "Heated Barrel (US)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING )
21172117
21182118GAME( 1993, godzilla, 0,        godzilla, godzilla, 0,        ROT0, "Banpresto", "Godzilla", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING )
2119GAME( 1993, sdgndmrb, 0,        sdgndmrb, sdgndmrb, 0,         ROT0, "Banpresto", "SD Gundam Sangokushi Rainbow Tairiku Senki", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING )
2119GAME( 1993, grainbow, 0,        grainbow, grainbow, 0,         ROT0, "Banpresto", "SD Gundam Sangokushi Rainbow Tairiku Senki", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING )
21202120GAME( 1993, denjinmk, 0,        denjinmk, denjinmk, denjinmk, ROT0, "Banpresto", "Denjin Makai", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING )
21212121
21222122GAME( 1992, cupsoc,   0,        cupsoc,   cupsoc,   0,        ROT0, "Seibu", "Seibu Cup Soccer (set 1)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING )
src/mame/drivers/dday.c
r6233r6234
172172static INPUT_PORTS_START( ddayc )
173173   PORT_INCLUDE(dday)
174174
175   PORT_MODIFY("BUTTONS")
176   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
177   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) /* Distance Button */
178
175179   PORT_MODIFY("DSW0")
176180   PORT_DIPNAME( 0x0c, 0x00, "Extended Play At" )
177181   PORT_DIPSETTING(    0x00, "4000" )
r6233r6234
182186   PORT_DIPSETTING(    0x30, DEF_STR( Easy ) )      // Easy   - No Bombs, No Troop Carriers
183187   PORT_DIPSETTING(    0x20, DEF_STR( Normal ) )   // Normal - No Bombs, Troop Carriers
184188   PORT_DIPSETTING(    0x10, DEF_STR( Hard ) )      // Hard   - Bombs, Troop Carriers
185//  PORT_DIPSETTING(    0x00, DEF_STR( Hard ) )     // Same as 0x10
189    PORT_DIPSETTING(    0x00, "Hard (duplicate setting)" )     // Same as 0x10
186190   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) )   // Doesn't seem to be used
187191   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
188192   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
src/mame/drivers/namcofl.c
r6233r6234
262262   // HACK!  Many games data ROM routines redirect the vector from the sound command read to an RTS.
263263   // This needs more investigation.  nebulray and vshoot do NOT do this.
264264   // Timers A2 and A3 are set up in "external input counter" mode, this may be related.
265#if 0
265266   if ((offset == 0x647c/2) && (data != 0))
266267   {
267268      data = 0xd2f6;
268269   }
270#endif
269271
270272   COMBINE_DATA(&namcofl_shareram[offset]);
271273
src/mame/drivers/trackfld.c
r6233r6234
6363      memory_set_bank(space->machine, 1, 7);
6464}
6565
66static WRITE8_HANDLER( hyprolyb_adpcm_w )
66WRITE8_HANDLER( hyprolyb_adpcm_w )
6767{
6868   soundlatch2_w(space, offset, data);
6969   hyprolyb_adpcm_ready = 0x80;
r6233r6234
244244   AM_RANGE(0xe004, 0xe004) AM_MIRROR(0x1ff8) AM_WRITE(hyprolyb_adpcm_w)
245245ADDRESS_MAP_END
246246
247static ADDRESS_MAP_START( hyprolyb_adpcm_map, ADDRESS_SPACE_PROGRAM, 8 )
247ADDRESS_MAP_START( hyprolyb_adpcm_map, ADDRESS_SPACE_PROGRAM, 8 )
248248   AM_RANGE(0x0000, 0x007f) AM_RAM
249249   AM_RANGE(0x1000, 0x1000) AM_READ(hyprolyb_adpcm_data_r)
250250   AM_RANGE(0x1001, 0x1001) AM_READ(hyprolyb_adpcm_ready_r)
r6233r6234
682682   hyprolyb_vck_ready = 0x80;
683683}
684684
685static const msm5205_interface msm5205_config =
685const msm5205_interface hyprolyb_msm5205_config =
686686{
687687   adpcm_vck_callback,   /* VCK function */
688688   MSM5205_S96_4B      /* 4 kHz */
r6233r6234
745745   MDRV_DEVICE_REMOVE("vlm")
746746
747747   MDRV_SOUND_ADD("msm", MSM5205, 384000)
748   MDRV_SOUND_CONFIG(msm5205_config)
748   MDRV_SOUND_CONFIG(hyprolyb_msm5205_config)
749749   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
750750MACHINE_DRIVER_END
751751
src/mame/drivers/pcat_dyn.c
r0r6234
1/********************************************************************************************************************
2
3Tournament Solitaire (c) 199x Dynamo
4
5An (un?)-modified 486 PC-AT HW. Input uses a trackball device that isn't PC standard afaik.
6
7preliminary driver by Angelo Salese
8
9********************************************************************************************************************/
10
11#include "driver.h"
12#include "cpu/i386/i386.h"
13#include "memconv.h"
14#include "devconv.h"
15#include "machine/8237dma.h"
16#include "machine/pic8259.h"
17#include "machine/pit8253.h"
18#include "machine/mc146818.h"
19#include "machine/pcshare.h"
20#include "machine/pci.h"
21#include "machine/8042kbdc.h"
22#include "machine/pckeybrd.h"
23#include "machine/idectrl.h"
24
25static UINT32 *vga_vram;
26static UINT8 vga_regs[0x19];
27
28#define SET_VISIBLE_AREA(_x_,_y_) \
29   { \
30   rectangle visarea = *video_screen_get_visible_area(machine->primary_screen); \
31   visarea.min_x = 0; \
32   visarea.max_x = _x_-1; \
33   visarea.min_y = 0; \
34   visarea.max_y = _y_-1; \
35   video_screen_configure(machine->primary_screen, _x_, _y_, &visarea, video_screen_get_frame_period(machine->primary_screen).attoseconds ); \
36   } \
37
38#define RES_320x200 0
39#define RES_640x200 1
40
41static VIDEO_START(pcat_dyn)
42{
43}
44
45
46
47static void cga_alphanumeric_tilemap(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,UINT16 size,UINT32 map_offs,UINT8 gfx_num)
48{
49   static UINT32 offs,x,y,max_x,max_y;
50   int tile,color;
51
52   /*define the visible area*/
53   switch(size)
54   {
55      case RES_320x200:
56         SET_VISIBLE_AREA(320,200);
57         max_x = 40;
58         max_y = 25;
59         break;
60      case RES_640x200:
61         SET_VISIBLE_AREA(640,200);
62         max_x = 80;
63         max_y = 25;
64         break;
65   }
66
67   offs = map_offs;
68
69   for(y=0;y<max_y;y++)
70      for(x=0;x<max_x;x+=2)
71      {
72         tile =  (vga_vram[offs] & 0x00ff0000)>>16;
73         color = (vga_vram[offs] & 0xff000000)>>24;
74
75         drawgfx_opaque(bitmap,cliprect,machine->gfx[gfx_num],
76               tile,
77               color,
78               0,0,
79               (x+1)*8,y*8);
80
81
82         tile =  (vga_vram[offs] & 0x000000ff);
83         color = (vga_vram[offs] & 0x0000ff00)>>8;
84
85         drawgfx_opaque(bitmap,cliprect,machine->gfx[gfx_num],
86               tile,
87               color,
88               0,0,
89               (x+0)*8,y*8);
90
91         offs++;
92      }
93}
94
95static VIDEO_UPDATE(pcat_dyn)
96{
97   cga_alphanumeric_tilemap(screen->machine,bitmap,cliprect,RES_640x200,0x10000/4,0);
98
99   return 0;
100}
101
102static struct {
103   const device_config   *pit8253;
104   const device_config   *pic8259_1;
105   const device_config   *pic8259_2;
106   const device_config   *dma8237_1;
107   const device_config   *dma8237_2;
108} pcat_dyn_devices;
109
110/******************
111DMA8237 Controller
112******************/
113
114static UINT8 dma_offset[2][4];
115static UINT8 at_pages[0x10];
116
117static DMA8237_HRQ_CHANGED( pc_dma_hrq_changed )
118{
119   cputag_set_input_line(device->machine, "maincpu", INPUT_LINE_HALT, state ? ASSERT_LINE : CLEAR_LINE);
120
121   /* Assert HLDA */
122   dma8237_set_hlda( device, state );
123}
124
125
126static DMA8237_MEM_READ( pc_dma_read_byte )
127{
128   const address_space *space = cputag_get_address_space(device->machine, "maincpu", ADDRESS_SPACE_PROGRAM);
129   offs_t page_offset = (((offs_t) dma_offset[0][channel]) << 16)
130      & 0xFF0000;
131
132   return memory_read_byte(space, page_offset + offset);
133}
134
135
136static DMA8237_MEM_WRITE( pc_dma_write_byte )
137{
138   const address_space *space = cputag_get_address_space(device->machine, "maincpu", ADDRESS_SPACE_PROGRAM);
139   offs_t page_offset = (((offs_t) dma_offset[0][channel]) << 16)
140      & 0xFF0000;
141
142   memory_write_byte(space, page_offset + offset, data);
143}
144
145static READ8_HANDLER(dma_page_select_r)
146{
147   UINT8 data = at_pages[offset % 0x10];
148
149   switch(offset % 8)
150   {
151   case 1:
152      data = dma_offset[(offset / 8) & 1][2];
153      break;
154   case 2:
155      data = dma_offset[(offset / 8) & 1][3];
156      break;
157   case 3:
158      data = dma_offset[(offset / 8) & 1][1];
159      break;
160   case 7:
161      data = dma_offset[(offset / 8) & 1][0];
162      break;
163   }
164   return data;
165}
166
167
168static WRITE8_HANDLER(dma_page_select_w)
169{
170   at_pages[offset % 0x10] = data;
171
172   switch(offset % 8)
173   {
174   case 1:
175      dma_offset[(offset / 8) & 1][2] = data;
176      break;
177   case 2:
178      dma_offset[(offset / 8) & 1][3] = data;
179      break;
180   case 3:
181      dma_offset[(offset / 8) & 1][1] = data;
182      break;
183   case 7:
184      dma_offset[(offset / 8) & 1][0] = data;
185      break;
186   }
187}
188
189
190static const struct dma8237_interface dma8237_1_config =
191{
192   XTAL_14_31818MHz/3,
193
194   pc_dma_hrq_changed,
195   pc_dma_read_byte,
196   pc_dma_write_byte,
197
198   { NULL, NULL, NULL, NULL },
199   { NULL, NULL, NULL, NULL },
200   NULL
201};
202
203static const struct dma8237_interface dma8237_2_config =
204{
205   XTAL_14_31818MHz/3,
206
207   NULL,
208   NULL,
209   NULL,
210
211   { NULL, NULL, NULL, NULL },
212   { NULL, NULL, NULL, NULL },
213   NULL
214};
215
216
217/******************
2188259 IRQ controller
219******************/
220
221static PIC8259_SET_INT_LINE( pic8259_1_set_int_line )
222{
223   cputag_set_input_line(device->machine, "maincpu", 0, interrupt ? HOLD_LINE : CLEAR_LINE);
224}
225
226static const struct pic8259_interface pic8259_1_config = {
227   pic8259_1_set_int_line
228};
229
230static PIC8259_SET_INT_LINE( pic8259_2_set_int_line )
231{
232   pic8259_set_irq_line( pcat_dyn_devices.pic8259_1, 2, interrupt);
233}
234
235static const struct pic8259_interface pic8259_2_config = {
236   pic8259_2_set_int_line
237};
238
239static IRQ_CALLBACK(irq_callback)
240{
241   int r = 0;
242   r = pic8259_acknowledge(pcat_dyn_devices.pic8259_2);
243   if (r==0)
244   {
245      r = pic8259_acknowledge(pcat_dyn_devices.pic8259_1);
246   }
247   return r;
248}
249
250static PIT8253_OUTPUT_CHANGED( at_pit8254_out0_changed )
251{
252   if ( pcat_dyn_devices.pic8259_1 )
253   {
254      pic8259_set_irq_line(pcat_dyn_devices.pic8259_1, 0, state);
255   }
256}
257
258
259static PIT8253_OUTPUT_CHANGED( at_pit8254_out2_changed )
260{
261   //at_speaker_set_input( state ? 1 : 0 );
262}
263
264
265static const struct pit8253_config at_pit8254_config =
266{
267   {
268      {
269         4772720/4,            /* heartbeat IRQ */
270         at_pit8254_out0_changed
271      }, {
272         4772720/4,            /* dram refresh */
273         NULL
274      }, {
275         4772720/4,            /* pio port c pin 4, and speaker polling enough */
276         at_pit8254_out2_changed
277      }
278   }
279};
280
281//ce9b8
282/* TODO: understand the proper ROM loading.*/
283static ADDRESS_MAP_START( pcat_map, ADDRESS_SPACE_PROGRAM, 32 )
284   AM_RANGE(0x00000000, 0x0009ffff) AM_RAM
285   AM_RANGE(0x000a0000, 0x000bffff) AM_RAM AM_BASE(&vga_vram)
286   AM_RANGE(0x000c0000, 0x000c7fff) AM_RAM AM_REGION("video_bios", 0)
287   AM_RANGE(0x000c8000, 0x000cffff) AM_RAM
288//  AM_RANGE(0x000d0000, 0x000d7fff) AM_RAM AM_REGION("disk_bios", 0)
289//  AM_RANGE(0x000d8000, 0x000dffff) AM_RAM AM_REGION("disk_bios", 0)
290//  AM_RANGE(0x000e0000, 0x000effff) AM_ROM AM_REGION("game_prg", 0)
291   AM_RANGE(0x000f0000, 0x000fffff) AM_ROM AM_REGION("bios", 0 )
292   AM_RANGE(0x00100000, 0x001fffff) AM_RAM //AM_REGION("game_prg", 0)
293   AM_RANGE(0xffff0000, 0xffffffff) AM_ROM AM_REGION("bios", 0 )
294ADDRESS_MAP_END
295
296
297static READ32_HANDLER( kludge_r )
298{
299   return mame_rand(space->machine);
300}
301
302/* 3c8-3c9 -> ramdac*/
303static WRITE32_HANDLER( vga_ramdac_w )
304{
305   static int pal_offs,r,g,b,internal_pal_offs;
306
307   if (ACCESSING_BITS_0_7)
308   {
309      //printf("%02x X\n",data);
310      pal_offs = internal_pal_offs = data;
311   }
312   if (ACCESSING_BITS_8_15)
313   {
314      //printf("%02x\n",data);
315      data>>=8;
316      switch(internal_pal_offs)
317      {
318         case 0:
319            r = ((data & 0x3f) << 2) | ((data & 0x30) >> 4);
320            internal_pal_offs++;
321            break;
322         case 1:
323            g = ((data & 0x3f) << 2) | ((data & 0x30) >> 4);
324            internal_pal_offs++;
325            break;
326         case 2:
327            b = ((data & 0x3f) << 2) | ((data & 0x30) >> 4);
328            palette_set_color(space->machine, 0x200+pal_offs, MAKE_RGB(r, g, b));
329            internal_pal_offs = 0;
330            pal_offs++;
331            break;
332      }
333   }
334}
335
336static WRITE32_HANDLER( vga_regs_w )
337{
338   static UINT8 vga_address;
339
340   if (ACCESSING_BITS_0_7)
341      vga_address = data;
342   if (ACCESSING_BITS_8_15)
343   {
344      if(vga_address < 0x19)
345      {
346         vga_regs[vga_address] = data>>8;
347         logerror("VGA reg %02x with data %02x\n",vga_address,vga_regs[vga_address]);
348      }
349      else
350         logerror("Warning: used undefined VGA reg %02x with data %02x\n",vga_address,data>>8);
351   }
352}
353
354static ADDRESS_MAP_START( pcat_io, ADDRESS_SPACE_IO, 32 )
355   AM_RANGE(0x0000, 0x001f) AM_DEVREADWRITE8("dma8237_1", dma8237_r, dma8237_w, 0xffffffff)
356   AM_RANGE(0x0020, 0x003f) AM_DEVREADWRITE8("pic8259_1", pic8259_r, pic8259_w, 0xffffffff)
357   AM_RANGE(0x0040, 0x005f) AM_DEVREADWRITE8("pit8254", pit8253_r, pit8253_w, 0xffffffff)
358   AM_RANGE(0x0060, 0x006f) AM_READWRITE(kbdc8042_32le_r,         kbdc8042_32le_w)
359   AM_RANGE(0x0070, 0x007f) AM_RAM//READWRITE(mc146818_port32le_r,     mc146818_port32le_w)
360   AM_RANGE(0x0080, 0x009f) AM_READWRITE8(dma_page_select_r,dma_page_select_w, 0xffffffff)//TODO
361   AM_RANGE(0x00a0, 0x00bf) AM_DEVREADWRITE8("pic8259_2", pic8259_r, pic8259_w, 0xffffffff)
362   AM_RANGE(0x00c0, 0x00df) AM_DEVREADWRITE8("dma8237_2", dma8237_r, dma8237_w, 0xffff)
363   AM_RANGE(0x0278, 0x027f) AM_RAM //parallel port 2
364   AM_RANGE(0x0378, 0x037f) AM_RAM //parallel port
365   AM_RANGE(0x03c0, 0x03c3) AM_RAM
366   AM_RANGE(0x03cc, 0x03cf) AM_RAM
367   AM_RANGE(0x03b4, 0x03b7) AM_WRITE(vga_regs_w)
368   AM_RANGE(0x03c4, 0x03c7) AM_RAM //vga regs
369   AM_RANGE(0x03c8, 0x03cb) AM_WRITE(vga_ramdac_w)
370   AM_RANGE(0x03b8, 0x03bb) AM_READ(kludge_r) //hv_retrace
371   AM_RANGE(0x03c8, 0x03cb) AM_READ(kludge_r) //hv_retrace
372   AM_RANGE(0x03d4, 0x03d7) AM_WRITE(vga_regs_w)
373   AM_RANGE(0x03d8, 0x03db) AM_READ(kludge_r)
374   AM_RANGE(0x03bc, 0x03bf) AM_RAM //parallel port 3
375ADDRESS_MAP_END
376
377#define AT_KEYB_HELPER(bit, text, key1) \
378   PORT_BIT( bit, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(text) PORT_CODE(key1)
379
380static INPUT_PORTS_START( pcat_dyn )
381   PORT_START("pc_keyboard_0")
382   PORT_BIT ( 0x0001, 0x0000, IPT_UNUSED )    /* unused scancode 0 */
383   AT_KEYB_HELPER( 0x0002, "Esc",          KEYCODE_Q           ) /* Esc                         01  81 */
384
385   PORT_START("pc_keyboard_1")
386   AT_KEYB_HELPER( 0x0020, "Y",            KEYCODE_Y           ) /* Y                           15  95 */
387   AT_KEYB_HELPER( 0x1000, "Enter",        KEYCODE_ENTER       ) /* Enter                       1C  9C */
388
389   PORT_START("pc_keyboard_2")
390
391   PORT_START("pc_keyboard_3")
392   AT_KEYB_HELPER( 0x0002, "N",            KEYCODE_N           ) /* N                           31  B1 */
393   AT_KEYB_HELPER( 0x0800, "F1",           KEYCODE_S           ) /* F1                          3B  BB */
394
395   PORT_START("pc_keyboard_4")
396
397   PORT_START("pc_keyboard_5")
398
399   PORT_START("pc_keyboard_6")
400   AT_KEYB_HELPER( 0x0040, "(MF2)Cursor Up",      KEYCODE_UP          ) /* Up                          67  e7 */
401   AT_KEYB_HELPER( 0x0080, "(MF2)Page Up",         KEYCODE_PGUP        ) /* Page Up                     68  e8 */
402   AT_KEYB_HELPER( 0x0100, "(MF2)Cursor Left",      KEYCODE_LEFT        ) /* Left                        69  e9 */
403   AT_KEYB_HELPER( 0x0200, "(MF2)Cursor Right",   KEYCODE_RIGHT       ) /* Right                       6a  ea */
404   AT_KEYB_HELPER( 0x0800, "(MF2)Cursor Down",      KEYCODE_DOWN        ) /* Down                        6c  ec */
405   AT_KEYB_HELPER( 0x1000, "(MF2)Page Down",      KEYCODE_PGDN        ) /* Page Down                   6d  ed */
406   AT_KEYB_HELPER( 0x4000, "Del",                 KEYCODE_A           ) /* Delete                      6f  ef */
407
408   PORT_START("pc_keyboard_7")
409INPUT_PORTS_END
410
411static const rgb_t defcolors[]=
412{
413   MAKE_RGB(0x00,0x00,0x00),
414   MAKE_RGB(0x00,0x00,0xaa),
415   MAKE_RGB(0x00,0xaa,0x00),
416   MAKE_RGB(0x00,0xaa,0xaa),
417   MAKE_RGB(0xaa,0x00,0x00),
418   MAKE_RGB(0xaa,0x00,0xaa),
419   MAKE_RGB(0xaa,0xaa,0x00),
420   MAKE_RGB(0xaa,0xaa,0xaa),
421   MAKE_RGB(0x55,0x55,0x55),
422   MAKE_RGB(0x55,0x55,0xff),
423   MAKE_RGB(0x55,0xff,0x55),
424   MAKE_RGB(0x55,0xff,0xff),
425   MAKE_RGB(0xff,0x55,0x55),
426   MAKE_RGB(0xff,0x55,0xff),
427   MAKE_RGB(0xff,0xff,0x55),
428   MAKE_RGB(0xff,0xff,0xff)
429};
430
431static PALETTE_INIT(pcat_286)
432{
433   /*Note:palette colors are 6bpp...
434    xxxx xx--
435    */
436   int ix,iy;
437
438   for(ix=0;ix<0x300;ix++)
439      palette_set_color(machine, ix,MAKE_RGB(0x00,0x00,0x00));
440
441   //regular colors
442   for(iy=0;iy<0x10;iy++)
443   {
444      for(ix=0;ix<0x10;ix++)
445      {
446         palette_set_color(machine,(ix*2)+1+(iy*0x20),defcolors[ix]);
447         palette_set_color(machine,(ix*2)+0+(iy*0x20),defcolors[iy]);
448      }
449   }
450
451   //bitmap mode
452   for(ix=0;ix<0x10;ix++)
453      palette_set_color(machine, 0x200+ix,defcolors[ix]);
454   //todo: 256 colors
455}
456
457static void pcat_dyn_set_keyb_int(running_machine *machine, int state)
458{
459   pic8259_set_irq_line(pcat_dyn_devices.pic8259_1, 1, state);
460}
461
462
463static MACHINE_START( pcat_dyn )
464{
465//  bank = -1;
466//  lastvalue = -1;
467//  hv_blank = 0;
468   cpu_set_irq_callback(cputag_get_cpu(machine, "maincpu"), irq_callback);
469   pcat_dyn_devices.pit8253 = devtag_get_device( machine, "pit8254" );
470   pcat_dyn_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" );
471   pcat_dyn_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" );
472   pcat_dyn_devices.dma8237_1 = devtag_get_device( machine, "dma8237_1" );
473   pcat_dyn_devices.dma8237_2 = devtag_get_device( machine, "dma8237_2" );
474
475   init_pc_common(machine, PCCOMMON_KEYBOARD_AT, pcat_dyn_set_keyb_int);
476   mc146818_init(machine, MC146818_STANDARD);
477}
478
479static const gfx_layout CGA_charlayout =
480{
481   8,8,
482    256,
483    1,
484    { 0 },
485    { 0,1,2,3,4,5,6,7 },
486   { 0*8,1*8,2*8,3*8,4*8,5*8,6*8,7*8 },
487    8*8
488};
489
490static GFXDECODE_START( pcat_dyn )
491   GFXDECODE_ENTRY( "video_bios", 0x09cb*8, CGA_charlayout,              0, 256 )
492   // there's a 8x16 charset just after the 8x8 one
493GFXDECODE_END
494
495static MACHINE_DRIVER_START( pcat_dyn )
496   /* basic machine hardware */
497   MDRV_CPU_ADD("maincpu", I486, 14318180*2)   /* I486 ?? Mhz */
498   MDRV_CPU_PROGRAM_MAP(pcat_map)
499   MDRV_CPU_IO_MAP(pcat_io)
500
501    /* video hardware */
502   MDRV_SCREEN_ADD("screen", RASTER)
503   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
504   MDRV_SCREEN_REFRESH_RATE(60)
505   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
506   MDRV_SCREEN_SIZE(64*8, 32*8)
507   MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1)
508   MDRV_GFXDECODE( pcat_dyn )
509
510   MDRV_MACHINE_START(pcat_dyn)
511   MDRV_NVRAM_HANDLER( mc146818 )
512
513//  MDRV_IMPORT_FROM( at_kbdc8042 )
514   MDRV_PIC8259_ADD( "pic8259_1", pic8259_1_config )
515   MDRV_PIC8259_ADD( "pic8259_2", pic8259_2_config )
516   MDRV_DMA8237_ADD( "dma8237_1", dma8237_1_config )
517   MDRV_DMA8237_ADD( "dma8237_2", dma8237_2_config )
518   MDRV_PIT8254_ADD( "pit8254", at_pit8254_config )
519
520   MDRV_PALETTE_INIT(pcat_286)
521
522   MDRV_PALETTE_LENGTH(0x300)
523
524   MDRV_VIDEO_START(pcat_dyn)
525   MDRV_VIDEO_UPDATE(pcat_dyn)
526MACHINE_DRIVER_END
527
528/***************************************
529*
530* ROM definitions
531*
532***************************************/
533
534ROM_START(toursol)
535   ROM_REGION32_LE(0x10000, "bios", 0)   /* Motherboard BIOS */
536   ROM_LOAD("prom.mb", 0x000000, 0x10000, CRC(e44bfd3c) SHA1(c07ec94e11efa30e001f39560010112f73cc0016) )
537
538   ROM_REGION(0x20000, "video_bios", 0)   /* Trident TVGA9000 BIOS */
539   ROM_LOAD16_BYTE("prom.vid", 0x00000, 0x04000, CRC(ad7eadaf) SHA1(ab379187914a832284944e81e7652046c7d938cc) )
540   ROM_CONTINUE(            0x00001, 0x04000 )
541
542   ROM_REGION32_LE(0x100000, "game_prg", 0)   /* PromStor 32, mapping unknown */
543   ROM_LOAD("prom.0", 0x00000, 0x40000, CRC(f26ce73f) SHA1(5516c31aa18716a47f46e412fc273ae8784d2061))
544   ROM_LOAD("prom.1", 0x40000, 0x40000, CRC(8f96e2a8) SHA1(bc3ce8b99e6ff40e355df2c3f797f1fe88b3b219))
545   ROM_LOAD("prom.2", 0x80000, 0x40000, CRC(8b0ac5cf) SHA1(1c2b6a53c9ff4d18a5227d899facbbc719f40205))
546   ROM_LOAD("prom.3", 0xa0000, 0x40000, CRC(9352e965) SHA1(2bfb647ec27c60a8c821fdf7483199e1a444cea8))
547   ROM_LOAD("prom.7", 0xe0000, 0x02000, CRC(154c8092) SHA1(4439ee82f36d5d5c334494ba7bb4848e839213a7))
548ROM_END
549
550GAME( 199?, toursol,    0,         pcat_dyn, pcat_dyn, 0, ROT0, "Dynamo",  "Tournament Solitaire", GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/goldstar.c
r6233r6234
61576157ROM_END
61586158
61596159/*
6160   New Lucky 8 Lines (set 3, extended gfx)
6161
6162  This set has the New Lucky 8 Lines / New Super 8 Lines program.
6163  Same extended tileset for reels, but lacks of the New Super 8 Lines title tiles.
6164  Maybe is a hidden feature, maybe just graphics for another hack.
6165
6166*/
6167
6168ROM_START( lucky8b )
6169   ROM_REGION( 0x8000, "maincpu", 0 )
6170   ROM_LOAD( "8.bin",   0x0000, 0x8000, CRC(ab7c58f2) SHA1(74782772bcc91178fa381074ddca99e0515f7693) )
6171
6172   ROM_REGION( 0x18000, "gfx1", 0 )
6173   ROM_LOAD( "5.bin",   0x00000, 0x8000, CRC(9bbe5437) SHA1(ef3789cf34d83827bd6ad4755fd443c3d9bdf661) )
6174   ROM_LOAD( "6.bin",   0x08000, 0x8000, CRC(bc17a96b) SHA1(6ae6a99c72153d68b01feacc45d94f8f88ac8733) )
6175   ROM_LOAD( "7.bin",   0x10000, 0x8000, CRC(06a98714) SHA1(e58efdcbdc021976d5a1253c03bea0bfad4d92db) )
6176
6177   ROM_REGION( 0x8000, "gfx2", 0 )
6178   ROM_LOAD( "1.bin",   0x0000, 0x2000, CRC(b45f41e2) SHA1(890c94c802f5ada97bc73f5a7a09e69c3207966c) )
6179   ROM_LOAD( "2.bin",   0x2000, 0x2000, CRC(0463413a) SHA1(061b8335fdd44767e8c1832f5b5101276ad0f689) )
6180   ROM_LOAD( "3.bin",   0x4000, 0x2000, CRC(b4e58020) SHA1(5c0fcc4b5d484ca7de5f2bd568a391a45967a9cc) )
6181   ROM_LOAD( "4.bin",   0x6000, 0x2000, CRC(0a25964b) SHA1(d41eda201bb01229fb6e2ff437196dd65eebe577) )
6182
6183   ROM_REGION( 0x200, "proms", 0 )
6184   ROM_LOAD( "u4.bin", 0x0000, 0x0100, CRC(23e81049) SHA1(78071dae70fad870e972d944642fb3a2374be5e4) )
6185   ROM_LOAD( "u5.bin", 0x0100, 0x0100, CRC(526cf9d3) SHA1(eb779d70f2507d0f26d225ac8f5de8f2243599ca) )
6186
6187   ROM_REGION( 0x40, "proms2", 0 )
6188   ROM_LOAD( "u2.bin", 0x0000, 0x0020, CRC(c6b41352) SHA1(d7c3b5aa32e4e456c9432a13bede1db6d62eb270) )
6189
6190   ROM_REGION( 0x100, "unkprom", 0 )
6191   ROM_LOAD( "u3.bin", 0x0000, 0x0100, CRC(1d668d4a) SHA1(459117f78323ea264d3a29f1da2889bbabe9e4be) )
6192
6193   ROM_REGION( 0x20, "unkprom2", 0 )
6194   ROM_LOAD( "u1.bin", 0x0000, 0x0020, CRC(6df3f972) SHA1(0096a7f7452b70cac6c0752cb62e24b643015b5c) )
6195ROM_END
6196
6197/*
61606198  New Lucky 8 Lines / New Super 8 Lines.
61616199
61626200  This set has a regular New Lucky 8 Lines, but allowing bets up to 64.
r6233r6234
61646202  called New Super 8 Lines. There are basic reels tiles with a semi-naked woman,
61656203  a sort of Super Mario character from Nintendo, clouds and stars...
61666204
6167  PCB Layout:
6205
6206 PCB Layout:
61686207+----------------------------------------------------------------------------------------------------------------------------+
61696208|      J       I       H         G            F         E         D           C          B              A                    |
61706209|                                                                        +----------+                                        |
61716210|   +-----+ +-----+ +-------+ +-----+                +-----+             |ASB IN USA| +--------------+ +-----+            +--+
6172|14 |    | |    | |   F   | |  T  |                |  M  |             |4FJ       | |      8       | |  R  |            |
6211|14 |  U  | |  U  | |   F   | |  T  |                |  M  |             |4FJ       | |      8       | |  R  |            |
61736212|   +-----+ +-----+ +-------+ +-----+                +-----+             |HM6116LP-2| |   D27256     | +-----+            |
61746213|                                                                        +----------+ |              |                    +--+
61756214|   +-----+           +-----+ +-----+      +-----+   +-------+ +-----+   +-------+    +--------------+ +-----+             --|
6176|13 |  H  |           |    | |  T  |      |  H  |   |   F   | |  S  |   |   A   |                     |  M  |             --|
6215|13 |  H  |           |  V  | |  T  |      |  H  |   |   F   | |  S  |   |   A   |                     |  M  |             --|
61776216|   +-----+           +-----+ +-----+      +-----+   +-------+ +-----+   +-------+                     +-----+             --|
61786217|                +----------+                                                                                              --|
61796218|                |Toshiba   | +-----+                +-----+   +-----+   +-------+                                         --|
6180|12              |TMM2016BP-| |    |                |  B  |   |  S  |   |   A   |                                         --|
6219|12              |TMM2016BP-| |  O  |                |  B  |   |  S  |   |   A   |                                         --|
61816220|                |12        | +-----+                +-----+   +-----+   +-------+                                         --|
61826221|                +----------+                                                                                              --|
61836222|                +----------+                                            +------------------+                              --|
61846223|                |          | +-----+                +-----+   +-----+   |      ZILOG       |                              --|
6185|11              |HM6116L-90| |    |                |  B  |   |    |   |   Z0840004PSC    |                              --|
6224|11              |HM6116L-90| |  O  |                |  B  |   |  L  |   |   Z0840004PSC    |                              --|
61866225|                |          | +-----+                +-----+   +-----+   |   Z80 CPU        |                              --|
61876226|                +----------+                                            +------------------+                              --|
61886227|   +-----+  +--------------+ +-----+      +-----+   +-----+   +-----+   +------------------+                              --|
6189|10 |  J  |  |      [7]     | |    |      |    |   |  B  |   |    |   |    NEC JAPAN     |                              --|
6228|10 |  J  |  |      [7]     | |  O  |      |  W  |   |  B  |   |  X  |   |    NEC JAPAN     |                              --|
61906229|   +-----+  |    D27256    | +-----+      +-----+   +-----+   +-----+   |    D8255AC-2     |                              --|
61916230|            |              |                                            |    9014XD010     |                              --|
61926231|   +-----+  +--------------+ +-----+      +-----+   +-----+   +-----+   +------------------+                            36--|
6193|9  |  J  |  +--------------+ |    |      |  E  |   |  C  |   |    |                                                 Pinout|
6232|9  |  J  |  +--------------+ |  O  |      |  E  |   |  C  |   |  L  |                                                 Pinout|
61946233|   +-----+  |      [6]     | +-----+      +-----+   +-----+   +-----+   +------------------+                              --|
61956234|   +-----+  |    D27256    | +-------+    +-----+   +-----+ +--------+  |    NEC JAPAN     |                              --|
61966235|8  |  J  |  |              | |   I   |    |  E  |   |  D  | |  DIP1  |  |    D8255AC-2     |                              --|
r6233r6234
61986237|   +-----+  +--------------+ +-------+              +-----+ +--------+  +------------------+ +---+ +-----+                --|
61996238|7  |  G  |  |      [5]     | |   I   |              |  E  | |  DIP2  |  +------------------+ | Q | |  P  |                --|
62006239|   +-----+  |   D27256     | +-------+              +-----+ +--------+  |    NEC JAPAN     | +---+ +-----+                --|
6201|            |              |                                            |    D8255AC-2     |                              --|
6202|    XTAL    +--------------+ +-------+              +-----+ +--------+  |    9014XD010     |       +-----+                --|
6240|            |              |                                            |                  |                              --|
6241|    XTAL    +--------------+ +-------+              +-----+ +--------+  |                  |       +-----+                --|
62036242|6  .----.   +--------------+ |   I   |              |  L  | |  DIP3  |  +------------------+       |  P  |                --|
62046243|            |      [4]     | +-------+              +-----+ +--------+  +------------------+       +-----+                --|
62056244|            |   D2764D     |                                            |     Winbond      |                              --|
62066245|   +-----+  |              | +-------+    +-----+   +-----+ +--------+  |     WF19054      |                              --|
6207|5  |  J  |  +--------------+ |       |    |  K  |   |  B  | |  DIP4  |  |  4150C14090830   |                              --|
6246|5  |  J  |  +--------------+ |   I   |    |  K  |   |  B  | |  DIP4  |  |  4150C14090830   |                              --|
62086247|   +-----+  +--------------+ +-------+    +-----+   +-----+ +--------+  +------------------+                              --|
62096248|            |      [3]     | +----------+                                                                                 --|
62106249|   +-----+  |  HN482764G   | |Toshiba Tm| +-----+   +-----+ +---------+  +------+ +------+                                --|
6211|4  |  J  |  |              | |m2016BP-12| |  K  |   |  B  | |    I    |  |    | |      |                                --|
6250|4  |  J  |  |              | |m2016BP-12| |  K  |   |  B  | |    I    |  |    V | |   X  |                                --|
62126251|   +-----+  +--------------+ +----------+ +-----+   +-----+ +---------+  +------+ +------+                               +--+
62136252|   +-----+  +--------------+ +----------+ +-----+   +-----+ +-------+    +------+ +------+                               |
6214|3  |  J  |  |     [2]      | |USC 6516-A| |  T  |   |  B  | |   H   |    |    | |      |                               |
6253|3  |  J  |  |     [2]      | |USC 6516-A| |  T  |   |  B  | |   H   |    |    V | |   X  |                               |
62156254|   +-----+  |    D2764     | |9252E GYU1| +-----+   +-----+ +-------+    +------+ +------+                               +--+
62166255|            |              | +----------+                                                                                   |
62176256|   +-----+  +--------------+ +----------+ +-----+   +-----+  +------+    +------+                                           |
6218|2  |  J  |  +--------------+ |Toshiba Tm| |  O  |   |  M  |  |     |    |      |                                           |
6257|2  |  J  |  +--------------+ |Toshiba Tm| |  O  |   |  M  |  |   Y  |    |   Z  |                                           |
62196258|   +-----+  |     [1]      | |m2016BP-12| +-----+   +-----+  +------+    +------+                                           |
62206259|   +-----+  |  MBM2764-25  | +----------+ +-----+   +-----+  +------+                                                       |
6221|1  |  J  |  |              | +----------+ |  O  |   |  N  |  |      |                                                       |
6260|1  |  J  |  |              | +----------+ |  O  |   |  N  |  |   W  |                                                       |
62226261|   +-----+  +--------------+ |HM6116L-90| +-----+   +-----+  +------+                                  A                    |
62236262|                             |  9140A   |                                           +-----+    10 Pins   +-----+            |
62246263|      J       I       H      +----------+    F         E         D           C     B|     ||||||||||||||||     |            |
62256264+------------------------------------------------------------------------------------+     +--------------+     +------------+
62266265
6266
62276267DIP1:                     DIP2:                     DIP3:                     DIP4:
62286268+-------------------+     +-------------------+     +-------------------+     +-------------------+
62296269| ON                |     | ON                |     | ON                |     | ON                |
r6233r6234
62346274|  1 2 3 4 5 6 7 8  |     |  1 2 3 4 5 6 7 8  |     |  1 2 3 4 5 6 7 8  |     |  1 2 3 4 5 6 7 8  |
62356275+-------------------+     +-------------------+     +-------------------+     +-------------------+
62366276
6277
623762781x XTAL = 12 Mhz
62386279
6280
62396281A = SN74LS244N / XXAC9307
62406282B = GD74LS161A / A9417
62416283C = MB74LS10 / 8507 M12
r6233r6234
62446286F = HD74LS273P
62456287G = HD74LS368AP
62466288H = 74LS32
6247I = T74LS24581 / W994K9318 / Malaysia
6289I = 74LS245 / W994K9318 / Malaysia
62486290J = GS 9429 / GD74LS166     ?????
62496291K = SN74LS283N / KKFQ9149
62506292L = GS 9427 / GD74LS138
r6233r6234
62566298R = HD74HC00P
62576299S = DM74S288
62586300T = DM74S287
6259U =
6260V =
6261W =
6262X =
6263Y =
6264Z =
6301U = LS02
6302V = LS174
6303W = LS08
6304X = LS367
6305Y = LS60 ??
6306Z = sn76489an
62656307
62666308*/
62676309
r6233r6234
83748416
83758417GAME( 1989, lucky8,    0,        lucky8,   lucky8,   0,         ROT0, "Wing Co.Ltd / GEI", "New Lucky 8 Lines (set 1)",                   0 )
83768418GAME( 1989, lucky8a,   lucky8,   lucky8,   lucky8a,  lucky8a,   ROT0, "Wing Co.Ltd / GEI", "New Lucky 8 Lines (set 2)",                   0 )
8419GAME( 1989, lucky8b,   lucky8,   lucky8,   ns8lines, 0,         ROT0, "Wing Co.Ltd / GEI", "New Lucky 8 Lines (set 3, extended gfx)",     0 )
83778420GAME( 198?, ns8lines,  0,        lucky8,   ns8lines, 0,         ROT0, "Unknown",           "New Lucky 8 Lines / New Super 8 Lines",       0 )
83788421GAME( 198?, ladylinr,  0,        ladylinr, ladylinr, 0,         ROT0, "TAB Austria",       "Lady Liner",                                  0 )
83798422GAME( 198?, kkojnoli,  0,        kkojnoli, kkojnoli, 0,         ROT0, "south korean hack", "Kkoj Noli (Kill the Bees)",                   GAME_IMPERFECT_COLORS )
src/mame/drivers/polepos.c
r6233r6234
212212Todo:
213213
214214- topracra: Gear is not updated in artwork
215- bootlegs shouldn't be using NAMCO devices.
215216
216217***************************************************************************/
217218
r6233r6234
228229#include "audio/namco52.h"
229230#include "audio/namco54.h"
230231#include "polepos.h"
232#include "sound/tms5220.h"
231233
232234#include "polepos.lh"
233235
r6233r6234
979981   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.90 * 0.77)
980982MACHINE_DRIVER_END
981983
984static ADDRESS_MAP_START( sound_z80_bootleg_map, ADDRESS_SPACE_PROGRAM, 8 )
985   AM_RANGE(0x0000, 0x1fff) AM_ROM
986   AM_RANGE(0x2700, 0x27ff) AM_RAM
987ADDRESS_MAP_END
982988
989static ADDRESS_MAP_START( sound_z80_bootleg_iomap, ADDRESS_SPACE_IO, 8 )
990   ADDRESS_MAP_GLOBAL_MASK(0xff)
991ADDRESS_MAP_END
992
993static MACHINE_DRIVER_START( polepos2bi )
994   MDRV_IMPORT_FROM(polepos)
995
996   /* todo, remove namco devices! */
997
998   MDRV_CPU_ADD("soundz80bl", Z80, 24576000/8)   /*? MHz */
999   MDRV_CPU_PROGRAM_MAP(sound_z80_bootleg_map)
1000   MDRV_CPU_IO_MAP(sound_z80_bootleg_iomap)
1001
1002   MDRV_SOUND_ADD("tms", TMS5220, 600000)   /* ? Mhz */
1003   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.80)
1004   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.80)
1005MACHINE_DRIVER_END
1006
1007
1008
9831009/*********************************************************************
9841010 * ROM definitions
9851011 *********************************************************************/
r6233r6234
18121838ROM_END
18131839
18141840
1841ROM_START( polepos2bi )
1842   /* Z80 memory/ROM data */
1843   ROM_REGION( 0x10000, "maincpu", 0 )
1844   ROM_LOAD( "5ita.bin",   0x0000, 0x2000, CRC(1a6412a1) SHA1(ccc41e60aad6ed332f8f2582860e11f10937dffa) )
1845   ROM_LOAD( "6ita.bin",   0x2000, 0x1000, CRC(e7362148) SHA1(5a4ab037fa6a773b90c10ac4c4e9417183e0cfd8) )
1846
1847   /* Z8002 #1 memory/ROM data */
1848   ROM_REGION( 0x10000, "sub", 0 )
1849   ROM_LOAD16_BYTE( "19.bin",   0x0001, 0x2000, CRC(41da3c28) SHA1(c9294d686282adfc72796511c3c9e186ad057374) )
1850   ROM_LOAD16_BYTE( "18.bin",   0x0000, 0x2000, CRC(2856d5b1) SHA1(96f5c3d67901a1abceca12b3448f381cc4852a33) )
1851
1852   /* Z8002 #2 memory/ROM data */
1853   ROM_REGION( 0x10000, "sub2", 0 )
1854   ROM_LOAD16_BYTE( "17.bin",   0x0001, 0x4000, CRC(6c823932) SHA1(68ef9f70c4305c3a3bacf83a64b727fd3711f34f) )
1855   ROM_LOAD16_BYTE( "4.bin",    0x0000, 0x4000, CRC(fe9baeb6) SHA1(9a8ad2d8a69b4005f7abed278093fd57b9242bca) )
1856
1857   /* graphics data */
1858   ROM_REGION( 0x02000, "gfx1", 0 )    /* 2bpp alpha layer */
1859   ROM_LOAD( "05.bin",   0x0000, 0x2000, CRC(55bec6f3) SHA1(8b405c74473abb7debaa9114991e7b134d06fe42) )
1860
1861   ROM_REGION( 0x02000, "gfx2", 0 )    /* 2bpp view layer */
1862   ROM_LOAD( "04.bin",   0x0000, 0x2000, CRC(ec3ec6e6) SHA1(ae905d0ae802d1010b2c1f1a13e88a1f0dbe57da) )
1863
1864   ROM_REGION( 0x04000, "gfx3", 0 )    /* 4bpp 16x16 sprites */
1865   ROM_LOAD( "12.bin",   0x0000, 0x2000, CRC(1c72041a) SHA1(b65b09c4251ee61d247f359615e7adc7c80bc8d5) )    /* 4bpp sm sprites, planes 0+1 */
1866   ROM_LOAD( "11.bin",   0x2000, 0x2000, CRC(1b38b257) SHA1(c7eec0692a31e1c8285bd1cba3ebd17ab253d2c9) )    /* 4bpp sm sprites, planes 2+3 */
1867
1868   ROM_REGION( 0x10000, "gfx4", 0 )    /* 4bpp 32x32 sprites */
1869   ROM_LOAD( "16.bin",      0x0000, 0x2000, CRC(613ab0df) SHA1(88aa4500275aae010fc9783c1d8d843feab89afa) )    /* 4bpp lg sprites, planes 0+1 */
1870   ROM_LOAD( "15.bin",      0x2000, 0x2000, CRC(f8e7f551) SHA1(faa23c55bc43325e6f71936be970f2ca144697d8) )
1871   ROM_LOAD( "14.bin",      0x4000, 0x2000, CRC(17c798b0) SHA1(ae2047bc0e4e8c85e1de09c39c200ea8f7c6a72e) )
1872   ROM_LOAD( "13.bin",      0x6000, 0x2000, CRC(ed6a8052) SHA1(dedd6d63f9a06a1edd57cb134e86c048cff7a3c1) )
1873   ROM_LOAD( "10.bin",      0x8000, 0x2000, CRC(5fd933e3) SHA1(5b27a8519234c935308f943cd58abc1efc463726) )    /* 4bpp lg sprites, planes 2+3 */
1874   ROM_LOAD( "09.bin",      0xa000, 0x2000, CRC(7053e219) SHA1(97700fbe887e2d11c9f9a0937147725f6787f081) )
1875   ROM_LOAD( "08.bin",      0xc000, 0x2000, CRC(5fe9b365) SHA1(1a3ac099a6bb506a5f71c12c6fb14d014172371c) )
1876   ROM_LOAD( "07.bin",      0xe000, 0x2000, CRC(ca14ca7b) SHA1(e58e40fdf1385ae9b080225d9ffe3ec5b122bf69) )
1877
1878   ROM_REGION( 0x5000, "gfx5", 0 )    /* road generation ROMs needed at runtime */
1879   ROM_LOAD( "03.bin",   0x0000, 0x2000, CRC(ee6b3315) SHA1(9cc26c6d3604c0f60d716f86e67e9d9c0487f87d) )    /* road control */
1880   ROM_LOAD( "02.bin",   0x2000, 0x2000, CRC(6d1e7042) SHA1(90113ff0c93ed86d95067290088705bb5e6608d1) )    /* road bits 1 */
1881   ROM_LOAD( "01.bin",   0x4000, 0x1000, CRC(4e97f101) SHA1(f377d053821c74aee93ebcd30a4d43e6156f3cfe) )    /* road bits 2 */
1882
1883   ROM_REGION( 0x1000, "gfx6", 0 )    /* sprite scaling */
1884   ROM_LOAD( "06.bin",   0x0000, 0x1000, CRC(a61bff15) SHA1(f7a59970831cdaaa7bf59c2221a38e4746c54244) )    /* vertical scaling */
1885
1886   /* graphics (P)ROM data */
1887   ROM_REGION( 0x1040, "proms", 0 )
1888   ROM_LOAD( "7611-5-e.bin",   0x0000, 0x0100, CRC(16d69c31) SHA1(f24b345448e4f4ef4e2f3b057b81d399cf427f88) )    /* red palette */
1889   ROM_LOAD( "7611-5-d.bin",   0x0100, 0x0100, CRC(07340311) SHA1(3820d1fa99013ed18de5d9400ad376cc446d1217) )    /* green palette */
1890   ROM_LOAD( "7611-5-c.bin",   0x0200, 0x0100, CRC(1efc84d7) SHA1(6946e1c209eec0a4b75778ae88111e6cb63c63fb) )    /* blue palette */
1891   ROM_LOAD( "7611-5-b.bin",   0x0300, 0x0100, CRC(064d51a0) SHA1(d5baa29930530a8930b44a374e285de849c2a6ce) )    /* alpha color */
1892   ROM_LOAD( "7611-5-a.bin",   0x0400, 0x0100, CRC(7880c5af) SHA1(e4388e354420be3f99594a10c091e3d2f745cc04) )    /* background color */
1893   ROM_LOAD( "7611-5-h.bin",   0x0500, 0x0100, CRC(2d502464) SHA1(682b7dd22e51d5db52c0804b7e27e47641dfa6bd) )    /* vertical position low */
1894   ROM_LOAD( "7611-5-g.bin",   0x0600, 0x0100, CRC(027aa62c) SHA1(c7030d8b64b80e107c446f6fbdd63f560c0a91c0) )    /* vertical position med */
1895   ROM_LOAD( "7611-5-f.bin",   0x0700, 0x0100, CRC(1f8d0df3) SHA1(b8f17758f114f5e247b65b3f2922ca2660757e66) )    /* vertical position hi */
1896   ROM_LOAD( "7643-5-b.bin",   0x0800, 0x0400, CRC(8b270902) SHA1(27b3ebc92d3a2a5c0432bde018a0e43669041d50) )    /* road color */
1897   ROM_LOAD( "7643-5-a.bin",   0x0c00, 0x0400, CRC(a079ed19) SHA1(134b3d156a1ed0fa21cc5dc3cc84ea16ef7f84f7) )    /* sprite color - bad?*/
1898   ROM_LOAD( "6331-1-b.bin",   0x1000, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) )    /* video RAM address decoder (not used) */
1899   ROM_LOAD( "6331-1-a.bin",   0x1020, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) )    /* video RAM address decoder (not used) */
1900
1901   /* sound (P)ROM data */
1902   ROM_REGION( 0x0100, "namco", 0 )
1903   ROM_LOAD( "74s287-b.bin",   0x0000, 0x0100, CRC(8568decc) SHA1(0aac1fa082858d4d201e21511c609a989f9a1535) )    /* Namco sound */
1904
1905   ROM_REGION( 0x4000, "engine", 0 ) /* these roms are both the same on the original sets, but here they differ */
1906   ROM_LOAD( "pp4-15.bin",   0x0000, 0x2000, CRC(5d79e1ad) SHA1(0323bdf3b9aca298b788bb07020653a43114c952) )
1907   ROM_LOAD( "pp4-16.bin",   0x2000, 0x2000, CRC(7d93bc1c) SHA1(dad7c0aa24aef593c84e21f7f8858ca7ada86364) )    /* engine sound */
1908
1909   ROM_REGION( 0x6000, "52xx", ROMREGION_ERASEFF )
1910   /* the bootleg has a TMS5220, NOT the Namco 52xx */
1911
1912   /* unknown or unused (P)ROM data */
1913   ROM_REGION( 0x0100, "user1", 0 )
1914   ROM_LOAD( "74s287-a.bin",   0x0000, 0x0100, CRC(0e742cb1) SHA1(3ae43270aab4848fdeece1648e7e040ab216b08e) )    /* sync chain */
1915
1916   /* this is used for the italian speech with a TMS5220, not properly hooked up */
1917   ROM_REGION( 0x2000, "soundz80bl", 0 )
1918   ROM_LOAD( "20.bin",       0x0000, 0x2000, CRC(1771fe1b) SHA1(da74ca85dfd4f5ad5a9dbfe6f7668d93105e3575) )
1919
1920   ROM_REGION( 0x2000, "pals", 0 )
1921   ROM_LOAD( "pal12l6-a.bin.bad.dump",     0x0000, 0x34, BAD_DUMP CRC(56c2e02f) SHA1(33545f83d63b476d9164472b439aa7002506b33d) )
1922   ROM_LOAD( "pal12l6-b.bin.bad.dump",     0x0000, 0x34, BAD_DUMP CRC(56c2e02f) SHA1(33545f83d63b476d9164472b439aa7002506b33d) )
1923   ROM_LOAD( "pal16l8.bin.bad.dump",       0x0000,0x104, BAD_DUMP CRC(e9cd78fb) SHA1(557d3e7ef3b25c1338b24722cac91bca788c02b8) )
1924ROM_END
1925
1926
1927
18151928/*********************************************************************
18161929 * Initialization routines
18171930 *********************************************************************/
r6233r6234
18451958 * Game drivers
18461959 *********************************************************************/
18471960
1848GAME( 1982, polepos,  0,      polepos, polepos,  polepos,    ROT0, "Namco", "Pole Position", 0 )
1849GAME( 1982, poleposa, polepos,   polepos, poleposa, polepos,    ROT0, "Namco (Atari license)", "Pole Position (Atari version 2)", 0 )
1850GAME( 1982, polepos1, polepos,   polepos, poleposa, polepos,    ROT0, "[Namco] (Atari license)", "Pole Position (Atari version 1)", 0 )
1851GAME( 1982, topracer, polepos,   polepos, polepos,  polepos,    ROT0, "bootleg", "Top Racer (set 1)", 0 )
1852GAME( 1982, topracra, polepos,   polepos, topracra, topracra, ROT0, "bootleg", "Top Racer (set 2)", 0 )
1853GAME( 1983, topracrb, polepos,   polepos, polepos,  polepos,    ROT0, "bootleg", "Top Racer (set 3)", 0 )
1854GAME( 1983, polepos2, 0,      polepos, polepos2, polepos2, ROT0, "Namco", "Pole Position II", 0 )
1855GAME( 1983, polepos2a,polepos2, polepos, polepos2, polepos2, ROT0, "Namco (Atari license)", "Pole Position II (Atari)", 0 )
1856GAME( 1983, polepos2b,polepos2, polepos, polepos2, polepos,    ROT0, "bootleg", "Pole Position II (bootleg)", 0 )
1961GAME( 1982, polepos,    0,        polepos,    polepos,  polepos,  ROT0, "Namco", "Pole Position", 0 )
1962GAME( 1982, poleposa,   polepos,  polepos,    poleposa, polepos,  ROT0, "Namco (Atari license)", "Pole Position (Atari version 2)", 0 )
1963GAME( 1982, polepos1,   polepos,  polepos,    poleposa, polepos,  ROT0, "[Namco] (Atari license)", "Pole Position (Atari version 1)", 0 )
1964GAME( 1982, topracer,   polepos,  polepos,    polepos,  polepos,  ROT0, "bootleg", "Top Racer (set 1)", 0 )
1965GAME( 1982, topracra,   polepos,  polepos,    topracra, topracra, ROT0, "bootleg", "Top Racer (set 2)", 0 )
1966GAME( 1983, topracrb,   polepos,  polepos,    polepos,  polepos,  ROT0, "bootleg", "Top Racer (set 3)", 0 )
1967GAME( 1983, polepos2,   0,        polepos,    polepos2, polepos2, ROT0, "Namco", "Pole Position II", 0 )
1968GAME( 1983, polepos2a,  polepos2, polepos,    polepos2, polepos2, ROT0, "Namco (Atari license)", "Pole Position II (Atari)", 0 )
1969GAME( 1983, polepos2b,  polepos2, polepos,    polepos2, polepos,  ROT0, "bootleg", "Pole Position II (bootleg)", 0 )
1970GAME( 1983, polepos2bi, polepos2, polepos2bi, topracra, topracra, ROT0, "bootleg", "Gran Premio F1 (Italian bootleg of Pole Position II)", GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND ) // should have italian voices
src/mame/drivers/raiden2.c
r6233r6234
855855   AM_RANGE(0x40000, 0xfffff) AM_ROMBANK(2)
856856ADDRESS_MAP_END
857857
858/* new zero team uses the copd3 protection... and uploads a 0x400 byte table, probably the mcu code, encrypted */
859
860
861static UINT16 mcu_prog[0x400];
862static int mcu_prog_offs = 0;
863
864static WRITE16_HANDLER( mcu_prog_w )
865{
866   mcu_prog[mcu_prog_offs*2] = data;
867}
868
869static WRITE16_HANDLER( mcu_prog_w2 )
870{
871   mcu_prog[mcu_prog_offs*2+1] = data;
872
873   // both new zero team and raiden2/dx v33 version upload the same table..
874#if 1
875    {
876      char tmp[64];
877        FILE *fp;
878       sprintf(tmp,"cop3_%s.data", space->machine->gamedrv->name);
879
880      fp=fopen(tmp, "w+b");
881        if (fp)
882        {
883            fwrite(mcu_prog, 0x400, 2, fp);
884            fclose(fp);
885        }
886    }
887#endif
888}
889
890static WRITE16_HANDLER( mcu_prog_offs_w )
891{
892   mcu_prog_offs = data;
893}
894
895
896
897static READ16_HANDLER( rdx_v33_system_r )
898{
899   return input_port_read(space->machine, "SYSTEM");
900}
901
902
903static READ16_HANDLER( r2_playerin_r )
904{
905   return input_port_read(space->machine, "INPUT");
906}
907
908static READ16_HANDLER( rdx_v33_unknown_r )
909{
910   return 0x0000;
911}
912
913static READ16_HANDLER( rdx_v33_unknown2_r )
914{
915   return 0x0000;
916}
917
918static READ16_HANDLER( nzerotea_unknown_r )
919{
920   return 0xffff;
921}
922
923
924static ADDRESS_MAP_START( nzerotea_mem, ADDRESS_SPACE_PROGRAM, 16 )
925//  AM_RANGE(0x00400, 0x007ff) AM_READWRITE(raiden2_mcu_r, raiden2_mcu_w) AM_BASE(&cop_mcu_ram)
926
927   /* results from cop? */
928   AM_RANGE(0x00430, 0x00431) AM_READ(nzerotea_unknown_r)
929   AM_RANGE(0x00432, 0x00433) AM_READ(nzerotea_unknown_r)
930   AM_RANGE(0x00434, 0x00435) AM_READ(nzerotea_unknown_r)
931   AM_RANGE(0x00436, 0x00437) AM_READ(nzerotea_unknown_r)
932   AM_RANGE(0x006b0, 0x006b1) AM_WRITE(mcu_prog_w)
933   AM_RANGE(0x006b2, 0x006b3) AM_WRITE(mcu_prog_w2)
934   AM_RANGE(0x006b4, 0x006b5) AM_WRITENOP
935   AM_RANGE(0x006b6, 0x006b7) AM_WRITENOP
936   AM_RANGE(0x006bc, 0x006bd) AM_WRITE(mcu_prog_offs_w)
937//  AM_RANGE(0x006d8, 0x006d9) AM_WRITE(bbbbll_w) // scroll?
938   AM_RANGE(0x006dc, 0x006dd) AM_READ(nzerotea_unknown_r)
939//  AM_RANGE(0x006de, 0x006df) AM_WRITE(mcu_unkaa_w) // mcu command related?
940   //AM_RANGE(0x00700, 0x00701) AM_WRITE(rdx_v33_eeprom_w)
941   AM_RANGE(0x00740, 0x00741) AM_READ(nzerotea_unknown_r)
942   AM_RANGE(0x00744, 0x00745) AM_READ(r2_playerin_r)
943   AM_RANGE(0x0074c, 0x0074d) AM_READ(rdx_v33_system_r)
944   AM_RANGE(0x00762, 0x00763) AM_READ(nzerotea_unknown_r)
945
946   AM_RANGE(0x00788, 0x00789) AM_READ(nzerotea_unknown_r)
947   AM_RANGE(0x00794, 0x00795) AM_READ(nzerotea_unknown_r)
948
949   AM_RANGE(0x00000, 0x0bfff) AM_READWRITE(any_r, any_w) AM_BASE(&mainram)
950//  AM_RANGE(0x00000, 0x003ff) AM_RAM
951
952   AM_RANGE(0x0c000, 0x0cfff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)
953   AM_RANGE(0x0d000, 0x0d7ff) AM_RAM_WRITE(raiden2_background_w) AM_BASE(&back_data)
954   AM_RANGE(0x0d800, 0x0dfff) AM_RAM_WRITE(raiden2_foreground_w) AM_BASE(&fore_data)
955    AM_RANGE(0x0e000, 0x0e7ff) AM_RAM_WRITE(raiden2_midground_w)  AM_BASE(&mid_data)
956    AM_RANGE(0x0e800, 0x0f7ff) AM_RAM_WRITE(raiden2_text_w) AM_BASE(&videoram16)
957   AM_RANGE(0x0f800, 0x0ffff) AM_RAM /* Stack area */
958
959   AM_RANGE(0x10000, 0x1efff) AM_RAM_WRITE(w1x) AM_BASE(&w1ram)
960   AM_RANGE(0x1f000, 0x1ffff) AM_RAM_WRITE(paletteram16_xBBBBBGGGGGRRRRR_word_w) AM_BASE(&paletteram16)
961
962   AM_RANGE(0x20000, 0x3ffff) AM_ROMBANK(1)
963   AM_RANGE(0x40000, 0xfffff) AM_ROMBANK(2)
964ADDRESS_MAP_END
965
966
967
858968/* INPUT PORTS */
859969
860970static INPUT_PORTS_START( raiden2 )
r6233r6234
11151225
11161226MACHINE_DRIVER_END
11171227
1228
1229
1230static MACHINE_DRIVER_START( nzerotea )
1231
1232   MDRV_IMPORT_FROM(raiden2)
1233
1234   /* basic machine hardware */
1235   MDRV_DEVICE_MODIFY("maincpu") // also change it to a v33!
1236   MDRV_CPU_PROGRAM_MAP(nzerotea_mem)
1237   MDRV_CPU_VBLANK_INT("screen", raiden2_interrupt)
1238MACHINE_DRIVER_END
1239
11181240/* ROM LOADING */
11191241
11201242/* Raiden II  Seibu Kaihatsu 1993
r6233r6234
19842106   }
19852107}
19862108
1987static READ16_HANDLER( rdx_v33_eeprom_r )
1988{
1989   return input_port_read(space->machine, "SYSTEM");
1990}
19912109
1992
1993static UINT16 mcu_prog[0x400];
1994static int mcu_prog_offs = 0;
1995
1996static WRITE16_HANDLER( mcu_prog_w )
1997{
1998   mcu_prog[mcu_prog_offs*2] = data;
1999}
2000
2001static WRITE16_HANDLER( mcu_prog_w2 )
2002{
2003   mcu_prog[mcu_prog_offs*2+1] = data;
2004
2005/* Uncommented until actively worked on
2006    {
2007        FILE *fp;
2008        fp=fopen("rdx_v33.dmp", "w+b");
2009        if (fp)
2010        {
2011            fwrite(mcu_prog, 0x400, 2, fp);
2012            fclose(fp);
2013        }
2014    }
2015*/
2016}
2017
2018static WRITE16_HANDLER( mcu_prog_offs_w )
2019{
2020   mcu_prog_offs = data;
2021}
2022
2023static READ16_HANDLER( r2_playerin_r )
2024{
2025   return input_port_read(space->machine, "INPUT");
2026}
2027static READ16_HANDLER( rdx_v33_unknown_r )
2028{
2029   return 0x00;
2030}
2031
2032static READ16_HANDLER( rdx_v33_unknown2_r )
2033{
2034   return 0x00;
2035}
2036
2037
20382110static ADDRESS_MAP_START( rdx_v33_map, ADDRESS_SPACE_PROGRAM, 16 )
20392111   AM_RANGE(0x00000, 0x003ff) AM_RAM // vectors copied here
20402112
r6233r6234
20572129   AM_RANGE(0x006b2, 0x006b3) AM_WRITE(mcu_prog_w2)
20582130   AM_RANGE(0x006b4, 0x006b5) AM_WRITENOP
20592131   AM_RANGE(0x006b6, 0x006b7) AM_WRITENOP
2060
20612132   AM_RANGE(0x006bc, 0x006bd) AM_WRITE(mcu_prog_offs_w)
2062
20632133//  AM_RANGE(0x006d8, 0x006d9) AM_WRITE(bbbbll_w) // scroll?
20642134   AM_RANGE(0x006dc, 0x006dd) AM_READ(rdx_v33_unknown2_r)
20652135//  AM_RANGE(0x006de, 0x006df) AM_WRITE(mcu_unkaa_w) // mcu command related?
2066
20672136   AM_RANGE(0x00700, 0x00701) AM_WRITE(rdx_v33_eeprom_w)
2068
20692137   AM_RANGE(0x00740, 0x00741) AM_READ(rdx_v33_unknown2_r)
2070
20712138   AM_RANGE(0x00744, 0x00745) AM_READ(r2_playerin_r)
2072   AM_RANGE(0x0074c, 0x0074d) AM_READ(rdx_v33_eeprom_r)
2073
2139   AM_RANGE(0x0074c, 0x0074d) AM_READ(rdx_v33_system_r)
20742140   AM_RANGE(0x00762, 0x00763) AM_READ(rdx_v33_unknown2_r)
20752141
20762142   AM_RANGE(0x00780, 0x00781) AM_DEVREADWRITE8("oki", okim6295_r, okim6295_w, 0x00ff) // single OKI chip on this version
r6233r6234
21422208INPUT_PORTS_END
21432209
21442210
2211static INPUT_PORTS_START( nzerotea )
2212
2213   SEIBU_COIN_INPUTS   /* coin inputs read through sound cpu */
2214
2215   PORT_START("SYSTEM")
2216   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
2217   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 )
2218   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
2219   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED )
2220   //PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL)
2221   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED )
2222   PORT_DIPNAME( 0x0040, 0x0040, "Test Mode" )
2223   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
2224   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
2225   PORT_BIT( 0xff80, IP_ACTIVE_LOW, IPT_UNUSED )
2226
2227   PORT_START("INPUT")
2228   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
2229   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
2230   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
2231   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
2232   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
2233   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
2234   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
2235    PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) )
2236    PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
2237    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
2238    PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
2239   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
2240   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
2241   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
2242   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
2243   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
2244   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
2245    PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )
2246    PORT_DIPSETTING(      0x8000, DEF_STR( Off ) )
2247    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
2248INPUT_PORTS_END
2249
2250
21452251static INTERRUPT_GEN( rdx_v33_interrupt )
21462252{
21472253   cpu_set_input_line_and_vector(device, 0, HOLD_LINE, 0xc0/4);   /* VBL */
r6233r6234
22302336GAME( 1995, xsedae,   0,       raiden2,  raiden2,  xsedae,   ROT0,   "Dream Island",   "X Se Dae Quiz", GAME_NOT_WORKING|GAME_NO_SOUND)
22312337
22322338// 'V33 system type_b' - uses V33 CPU, COPX-D3 external protection rom, but still has the proper sound system
2233GAME( 1993, nzerotea, zeroteam,raiden2, raiden2,  raiden2,  ROT0,   "Seibu Kaihatsu", "New Zero Team", GAME_NOT_WORKING|GAME_NO_SOUND) // this uses a v33 and COPD3
2339GAME( 1993, nzerotea, zeroteam,  nzerotea, nzerotea,  raiden2,  ROT0,   "Seibu Kaihatsu", "New Zero Team", GAME_NOT_WORKING|GAME_NO_SOUND) // this uses a v33 and COPD3
22342340
22352341// newer PCB, with V33 CPU and COPD3 protection, but weak sound hardware. - was marked as Raiden DX New in the rom dump, but boots as Raiden 2 New version, is it switchable?
22362342GAME( 1996, r2dx_v33, 0, rdx_v33,  rdx_v33, rdx_v33,  ROT270, "Seibu Kaihatsu", "Raiden 2 / DX (newer V33 PCB)", GAME_NOT_WORKING|GAME_NO_SOUND)
src/mame/drivers/seattle.c
r6233r6234
19041904   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
19051905
19061906   PORT_MODIFY("SYSTEM")
1907   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Abort") PORT_PLAYER(1) /* Abort */
19071908   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME(DEF_STR( Reverse )) PORT_PLAYER(1)   /* reverse */
19081909   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )
19091910   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START3 )
1910   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START4 )
1911   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START4 )  /* There are no start buttons on a Rush! */
19111912   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNUSED )
19121913   PORT_BIT( 0xe000, IP_ACTIVE_LOW, IPT_UNUSED )
19131914
src/mame/drivers/galaxold.c
r6233r6234
365365 *
366366 *************************************/
367367
368#define MASTER_CLOCK      (18432000)
368#define MASTER_CLOCK      (XTAL_18_432MHz)
369369
370370#define PIXEL_CLOCK         (MASTER_CLOCK/3)
371371
r6233r6234
22582258   MDRV_PALETTE_LENGTH(32)
22592259
22602260   MDRV_VIDEO_START(galaxold_plain)
2261   MDRV_SOUND_ADD("ay", AY8910, 1789750)
2261   MDRV_SOUND_ADD("ay", AY8910, PIXEL_CLOCK/4)
22622262   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
22632263MACHINE_DRIVER_END
22642264
22652265static MACHINE_DRIVER_START( drivfrcg )
22662266
22672267   /* basic machine hardware */
2268   MDRV_CPU_ADD("maincpu", S2650, 18432000/6)
2268   MDRV_CPU_ADD("maincpu", S2650, MASTER_CLOCK/6)
22692269   MDRV_CPU_PROGRAM_MAP(drivfrcg)
22702270   MDRV_CPU_IO_MAP(drivfrcg_io)
22712271   MDRV_CPU_VBLANK_INT("screen", hunchbks_vh_interrupt)
r6233r6234
23022302   MDRV_VIDEO_START(bongo)
23032303   MDRV_VIDEO_UPDATE(galaxold)
23042304
2305   MDRV_SOUND_ADD("ay", AY8910, 1789750)
2305   MDRV_SOUND_ADD("ay", AY8910, PIXEL_CLOCK/4)
23062306   MDRV_SOUND_CONFIG(bongo_ay8910_interface)
23072307   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
23082308MACHINE_DRIVER_END
r6233r6234
23402340   MDRV_CPU_PROGRAM_MAP(harem_cpu1)
23412341   MDRV_CPU_VBLANK_INT("screen", nmi_line_pulse)
23422342
2343   MDRV_CPU_ADD("audiocpu", Z80, 1620000)
2343   MDRV_CPU_ADD("audiocpu", Z80, 1620000) //?
23442344   MDRV_CPU_PROGRAM_MAP(harem_cpu2)
23452345   MDRV_CPU_IO_MAP(harem_cpu2_io)
23462346
r6233r6234
23512351
23522352   MDRV_VIDEO_START(galaxold_plain)
23532353
2354   MDRV_SOUND_ADD("ay1", AY8910, 2000000)
2354   MDRV_SOUND_ADD("ay1", AY8910, 2000000) //?
23552355   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3)
23562356
2357   MDRV_SOUND_ADD("ay2", AY8910, 2000000)
2357   MDRV_SOUND_ADD("ay2", AY8910, 2000000) //?
23582358   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3)
23592359
2360   MDRV_SOUND_ADD("ay3", AY8910, 2000000)
2360   MDRV_SOUND_ADD("ay3", AY8910, 2000000) //?
23612361   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3)
23622362MACHINE_DRIVER_END
23632363
src/mame/drivers/cvs.c
r6233r6234
121121UINT8 *cvs_s2636_0_ram;
122122UINT8 *cvs_s2636_1_ram;
123123UINT8 *cvs_s2636_2_ram;
124static UINT8 *cvs_fo_state;
124UINT8 *cvs_fo_state;
125125
126126static emu_timer *cvs_393hz_timer;
127127static UINT8 cvs_393hz_clock;
r6233r6234
321321
322322static TIMER_CALLBACK( cvs_393hz_timer_cb )
323323{
324   const device_config *dac3 = devtag_get_device(machine, "dac3");
324325   cvs_393hz_clock = !cvs_393hz_clock;
325   if (dac3_state[2])
326      dac_w(devtag_get_device(machine, "dac3"), 0, cvs_393hz_clock * 0xff);
326
327   /* quasar.c games use this timer but have no dac3! */
328   if (dac3 != NULL)
329   {
330      if (dac3_state[2])
331         dac_w(dac3, 0, cvs_393hz_clock * 0xff);
332   }
327333}
328334
329335
r6233r6234
355361
356362   /* merge into D0-D3 */
357363   dac_value = (cvs_4_bit_dac_data[0] << 0) |
358            (cvs_4_bit_dac_data[1] << 1) |
364             (cvs_4_bit_dac_data[1] << 1) |
359365             (cvs_4_bit_dac_data[2] << 2) |
360366             (cvs_4_bit_dac_data[3] << 3);
361367
r6233r6234
369375     * offset 0 is used in spacefrt
370376     * offset 3 is used in darkwar
371377     *
372     * offset 1 is not used (no trace in disassembly
378     * offset 1 is not used (no trace in disassembly)
373379     */
374380
375381   if (data != dac3_state[offset])
r6233r6234
406412{
407413   /* FIXME: this was by observation on board ???
408414     *          -bit 7 is TMS status (active LO) */
409   return ((tms5110_ctl_r(devtag_get_device(space->machine, "tms"), 0) ^ 1) << 7)
410      | (soundlatch_r(space, 0) & 0x7f);
415   return ((tms5110_ctl_r(devtag_get_device(space->machine, "tms"), 0) ^ 1) << 7) | (soundlatch_r(space, 0) & 0x7f);
411416}
412417
413418
r6233r6234
471476static WRITE8_HANDLER( audio_command_w )
472477{
473478   LOG(("data %02x\n", data));
474    /* cause interrupt on audio CPU if bit 7 set */
479   /* cause interrupt on audio CPU if bit 7 set */
475480   soundlatch_w(space, 0, data);
476481   cvs_slave_cpu_interrupt(space->machine, "audiocpu", data & 0x80 ? 1 : 0);
477482}
r6233r6234
519524static ADDRESS_MAP_START( cvs_main_cpu_map, ADDRESS_SPACE_PROGRAM, 8 )
520525   ADDRESS_MAP_GLOBAL_MASK(0x7fff)
521526   AM_RANGE(0x0000, 0x13ff) AM_ROM
522    AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_ram_or_palette_r, cvs_bullet_ram_or_palette_w) AM_BASE(&cvs_bullet_ram)
523    AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_2_or_character_ram_r, cvs_s2636_2_or_character_ram_w) AM_BASE(&cvs_s2636_2_ram)
524    AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_1_or_character_ram_r, cvs_s2636_1_or_character_ram_w) AM_BASE(&cvs_s2636_1_ram)
525    AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_0_or_character_ram_r, cvs_s2636_0_or_character_ram_w) AM_BASE(&cvs_s2636_0_ram)
527   AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_ram_or_palette_r, cvs_bullet_ram_or_palette_w) AM_BASE(&cvs_bullet_ram)
528   AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_2_or_character_ram_r, cvs_s2636_2_or_character_ram_w) AM_BASE(&cvs_s2636_2_ram)
529   AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_1_or_character_ram_r, cvs_s2636_1_or_character_ram_w) AM_BASE(&cvs_s2636_1_ram)
530   AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_0_or_character_ram_r, cvs_s2636_0_or_character_ram_w) AM_BASE(&cvs_s2636_0_ram)
526531   AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_READWRITE(cvs_video_or_color_ram_r, cvs_video_or_color_ram_w) AM_BASE(&cvs_video_ram)
527    AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM
532   AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM
528533   AM_RANGE(0x2000, 0x33ff) AM_ROM
529534   AM_RANGE(0x4000, 0x53ff) AM_ROM
530535   AM_RANGE(0x6000, 0x73ff) AM_ROM
r6233r6234
535540   AM_RANGE(0x00, 0xff) AM_READWRITE(cvs_input_r, cvs_scroll_w)
536541   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READWRITE(cvs_collision_clear, cvs_video_fx_w)
537542   AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_READWRITE(cvs_collision_r, audio_command_w)
538    AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
539    AM_RANGE(S2650_FO_PORT, S2650_FO_PORT) AM_RAM AM_BASE(&cvs_fo_state)
543   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
544   AM_RANGE(S2650_FO_PORT, S2650_FO_PORT) AM_RAM AM_BASE(&cvs_fo_state)
540545ADDRESS_MAP_END
541546
542547
r6233r6234
550555static ADDRESS_MAP_START( cvs_dac_cpu_map, ADDRESS_SPACE_PROGRAM, 8 )
551556   ADDRESS_MAP_GLOBAL_MASK(0x7fff)
552557   AM_RANGE(0x0000, 0x0fff) AM_ROM
553    AM_RANGE(0x1000, 0x107f) AM_RAM
554    AM_RANGE(0x1800, 0x1800) AM_READ(soundlatch_r)
555    AM_RANGE(0x1840, 0x1840) AM_DEVWRITE("dac1", dac_w)
556    AM_RANGE(0x1880, 0x1883) AM_DEVWRITE("dac2", cvs_4_bit_dac_data_w) AM_BASE(&cvs_4_bit_dac_data)
557    AM_RANGE(0x1884, 0x1887) AM_DEVWRITE("dac3", cvs_unknown_w)   AM_BASE(&dac3_state)   /* ???? not connected to anything */
558   AM_RANGE(0x1000, 0x107f) AM_RAM
559   AM_RANGE(0x1800, 0x1800) AM_READ(soundlatch_r)
560   AM_RANGE(0x1840, 0x1840) AM_DEVWRITE("dac1", dac_w)
561   AM_RANGE(0x1880, 0x1883) AM_DEVWRITE("dac2", cvs_4_bit_dac_data_w) AM_BASE(&cvs_4_bit_dac_data)
562   AM_RANGE(0x1884, 0x1887) AM_DEVWRITE("dac3", cvs_unknown_w)   AM_BASE(&dac3_state)   /* ???? not connected to anything */
558563ADDRESS_MAP_END
559564
560565
r6233r6234
576581   AM_RANGE(0x0000, 0x07ff) AM_ROM
577582   AM_RANGE(0x1d00, 0x1d00) AM_WRITE(cvs_speech_rom_address_lo_w)
578583   AM_RANGE(0x1d40, 0x1d40) AM_WRITE(cvs_speech_rom_address_hi_w)
579    AM_RANGE(0x1d80, 0x1d80) AM_READ(cvs_speech_command_r)
584   AM_RANGE(0x1d80, 0x1d80) AM_READ(cvs_speech_command_r)
580585   AM_RANGE(0x1ddc, 0x1dde) AM_DEVWRITE("tms", cvs_tms5110_ctl_w) AM_BASE(&cvs_tms5110_ctl_data)
581586   AM_RANGE(0x1ddf, 0x1ddf) AM_DEVWRITE("tms", cvs_tms5110_pdc_w)
582587ADDRESS_MAP_END
r6233r6234
597602
598603static INPUT_PORTS_START( cvs )
599604   PORT_START("IN0")   /* Matrix 0 */
600    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
601    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
605   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
606   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
602607   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 )
603608   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 )
604609   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL        /* "Red button" */
605610   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 )                      /* "Red button" */
606    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
607    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
611   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
612   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
608613
609614   PORT_START("IN1")   /* Dunno */
610615   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL        /* "Green button" */
r6233r6234
613618   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )  PORT_COCKTAIL
614619   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
615620   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
616    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
617    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
621   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
622   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
618623
619624   PORT_START("IN2")   /* Dunno */
620    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 )           /* not sure it's SERVICE1 : it uses "Coin B" coinage and doesn't say "CREDIT" */
621    PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
625   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 )           /* not sure it's SERVICE1 : it uses "Coin B" coinage and doesn't say "CREDIT" */
626   PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
622627
623628   PORT_START("IN3")   /* Dunno */
624    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
625    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
626   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )    PORT_COCKTAIL
629   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
630   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
631   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )   PORT_COCKTAIL
627632   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )  PORT_COCKTAIL
628633   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
629634   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
630    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
631    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
635   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
636   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
632637
633638   PORT_START("DSW3")   /* SW BANK 3 */
634639   PORT_DIPUNUSED( 0x01, IP_ACTIVE_HIGH )                  /* can't tell if it's ACTIVE_HIGH or ACTIVE_LOW */
r6233r6234
640645   PORT_DIPSETTING(    0x10, DEF_STR( Cocktail ) )
641646   PORT_DIPUNUSED( 0x20, IP_ACTIVE_HIGH )                  /* can't tell if it's ACTIVE_HIGH or ACTIVE_LOW */
642647
643    PORT_START("DSW2")   /* SW BANK 2 */
648   PORT_START("DSW2")   /* SW BANK 2 */
644649   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
645650   PORT_DIPSETTING(    0x03, DEF_STR( 4C_1C ) )
646651   PORT_DIPSETTING(    0x01, DEF_STR( 3C_1C ) )
r6233r6234
692697
693698#if !CVS_SHOW_ALL_INPUTS
694699   PORT_MODIFY("IN2")
695    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_SERVICE1 */
700   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_SERVICE1 */
696701
697702   PORT_MODIFY("IN3")
698703   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_JOYSTICK_UP   PORT_COCKTAIL */
r6233r6234
703708
704709   PORT_MODIFY("DSW3")
705710    /* DSW3 bits 0 and 1 stored at 0x7d55 (0, 2, 1, 3) - code at 0x66f3 - not read back */
706    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
707    PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
708    PORT_DIPSETTING(    0x08, "20k only" )                  /* displays "20000" */
709    PORT_DIPSETTING(    0x04, "30k only" )                  /* displays "30000" */
710    PORT_DIPSETTING(    0x00, "40k only" )                  /* displays "40000" */
711   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
712   PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
713   PORT_DIPSETTING(    0x08, "20k only" )                  /* displays "20000" */
714   PORT_DIPSETTING(    0x04, "30k only" )                  /* displays "30000" */
715   PORT_DIPSETTING(    0x00, "40k only" )                  /* displays "40000" */
711716INPUT_PORTS_END
712717
713718static INPUT_PORTS_START( darkwar )
r6233r6234
719724   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_BUTTON2 */
720725
721726   PORT_MODIFY("IN2")
722    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_SERVICE1 */
727   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_SERVICE1 */
723728
724729   PORT_MODIFY("IN3")
725730   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_JOYSTICK_UP   PORT_COCKTAIL */
r6233r6234
736741
737742#if !CVS_SHOW_ALL_INPUTS
738743   PORT_MODIFY("IN2")
739    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_SERVICE1 */
744   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_SERVICE1 */
740745
741746   PORT_MODIFY("IN3")
742747   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_JOYSTICK_UP   PORT_COCKTAIL */
r6233r6234
747752
748753   PORT_MODIFY("DSW3")
749754    /* DSW3 bits 0 and 1 stored at 0x7d3f (0, 2, 1, 3) - code at 0x6895 - not read back */
750    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
751    PORT_DIPSETTING(    0x0c, "100k only" )                 /* displays "50000" */
752    PORT_DIPSETTING(    0x08, "150k only" )                 /* displays "110000" */
753    PORT_DIPSETTING(    0x04, "200k only" )                 /* displays "200000" */
754    PORT_DIPSETTING(    0x00, DEF_STR( None ) )             /* displays "200000" */
755   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
756   PORT_DIPSETTING(    0x0c, "100k only" )                 /* displays "50000" */
757   PORT_DIPSETTING(    0x08, "150k only" )                 /* displays "110000" */
758   PORT_DIPSETTING(    0x04, "200k only" )                 /* displays "200000" */
759   PORT_DIPSETTING(    0x00, DEF_STR( None ) )             /* displays "200000" */
755760INPUT_PORTS_END
756761
757762
r6233r6234
765770#endif
766771
767772   PORT_MODIFY("DSW3")
768    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
769    PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
770    PORT_DIPSETTING(    0x08, "20k only" )                  /* displays "20000" */
771    PORT_DIPSETTING(    0x04, "40k only" )                  /* displays "80000" */
772    PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
773   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
774   PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
775   PORT_DIPSETTING(    0x08, "20k only" )                  /* displays "20000" */
776   PORT_DIPSETTING(    0x04, "40k only" )                  /* displays "80000" */
777   PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
773778   PORT_DIPNAME( 0x20, 0x00, "Colors" )                    /* stored at 0x1ed4 - code at 0x0847 ('8ball') or 0x08af ('8ball1') */
774779   PORT_DIPSETTING(    0x00, "Palette 1" )                 /* table at 0x0781 ('8ball') or 0x07e9 ('8ball1') - 16 bytes */
775780   PORT_DIPSETTING(    0x20, "Palette 2" )                 /* table at 0x0791 ('8ball') or 0x07f9 ('8ball1') - 16 bytes */
r6233r6234
787792#endif
788793
789794   PORT_MODIFY("DSW3")
790    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
791    PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
792    PORT_DIPSETTING(    0x08, "20k only" )                  /* displays "20000" */
793    PORT_DIPSETTING(    0x04, "40k only" )                  /* displays "40000" */
794    PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
795   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
796   PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
797   PORT_DIPSETTING(    0x08, "20k only" )                  /* displays "20000" */
798   PORT_DIPSETTING(    0x04, "40k only" )                  /* displays "40000" */
799   PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
795800   /* DSW3 bit 5 stored at 0x7dc8 - code at 0x6eb6 - not read back */
796801
797802   /* DSW2 bit 5 stored at 0x7da1 - code at 0x6ec7 - read back code at 0x0073 */
r6233r6234
807812#endif
808813
809814   PORT_MODIFY("DSW3")
810    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
811    PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
812    PORT_DIPSETTING(    0x04, "20k only" )                  /* displays "20000" */
813    PORT_DIPSETTING(    0x08, "40k only" )                  /* displays "40000" */
814    PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
815   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
816   PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
817   PORT_DIPSETTING(    0x04, "20k only" )                  /* displays "20000" */
818   PORT_DIPSETTING(    0x08, "40k only" )                  /* displays "40000" */
819   PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
815820
816821   /* DSW2 bit 5 stored at 0x7d9c - code at 0x6b51 - read back code at 0x0099 */
817822INPUT_PORTS_END
r6233r6234
826831#endif
827832
828833   PORT_MODIFY("DSW3")
829    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
830    PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
831    PORT_DIPSETTING(    0x04, "20k only" )                  /* displays "20000" */
832    PORT_DIPSETTING(    0x08, "40k only" )                  /* displays "40000" */
833    PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
834   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
835   PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
836   PORT_DIPSETTING(    0x04, "20k only" )                  /* displays "20000" */
837   PORT_DIPSETTING(    0x08, "40k only" )                  /* displays "40000" */
838   PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
834839
835840   /* DSW2 bit 5 stored at 0x1e95 - code at 0x1232 - read back code at 0x6054 */
836841INPUT_PORTS_END
r6233r6234
845850#endif
846851
847852   PORT_MODIFY("DSW3")
848    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
849    PORT_DIPSETTING(    0x0c, "100k only" )                 /* displays "100000" */
850    PORT_DIPSETTING(    0x04, "200k only" )                 /* displays "200000" */
851    PORT_DIPSETTING(    0x08, "400k only" )                 /* displays "400000" */
852    PORT_DIPSETTING(    0x00, "800k only" )                 /* displays "800000" */
853   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
854   PORT_DIPSETTING(    0x0c, "100k only" )                 /* displays "100000" */
855   PORT_DIPSETTING(    0x04, "200k only" )                 /* displays "200000" */
856   PORT_DIPSETTING(    0x08, "400k only" )                 /* displays "400000" */
857   PORT_DIPSETTING(    0x00, "800k only" )                 /* displays "800000" */
853858
854859   /* DSW2 bit 5 stored at 0x3d6e - code at 0x22aa - read back code at 0x00e4 */
855860INPUT_PORTS_END
r6233r6234
864869#endif
865870
866871   PORT_MODIFY("DSW3")
867    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
868    PORT_DIPSETTING(    0x0c, "100k only" )                 /* displays "100000" */
869    PORT_DIPSETTING(    0x04, "200k only" )                 /* displays "200000" */
870    PORT_DIPSETTING(    0x08, "400k only" )                 /* displays "400000" */
871    PORT_DIPSETTING(    0x00, "800k only" )                 /* displays "800000" */
872   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
873   PORT_DIPSETTING(    0x0c, "100k only" )                 /* displays "100000" */
874   PORT_DIPSETTING(    0x04, "200k only" )                 /* displays "200000" */
875   PORT_DIPSETTING(    0x08, "400k only" )                 /* displays "400000" */
876   PORT_DIPSETTING(    0x00, "800k only" )                 /* displays "800000" */
872877
873878   /* DSW2 bit 5 stored at 0x3d89 - code at 0x3377 - read back code at 0x6054 */
874879INPUT_PORTS_END
r6233r6234
883888#endif
884889
885890   PORT_MODIFY("DSW3")
886    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
887    PORT_DIPSETTING(    0x0c, "50k only" )                  /* displays "50000" */
888    PORT_DIPSETTING(    0x04, "100k only" )                 /* displays "100000" */
889    PORT_DIPSETTING(    0x08, "150k only" )                 /* displays "150000" */
890    PORT_DIPSETTING(    0x00, "200k only" )                 /* displays "200000" */
891   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
892   PORT_DIPSETTING(    0x0c, "50k only" )                  /* displays "50000" */
893   PORT_DIPSETTING(    0x04, "100k only" )                 /* displays "100000" */
894   PORT_DIPSETTING(    0x08, "150k only" )                 /* displays "150000" */
895   PORT_DIPSETTING(    0x00, "200k only" )                 /* displays "200000" */
891896
892897   /* DSW2 bit 5 stored at 0x3db3 - code at 0x22ad - read back code at 0x00e4 */
893898INPUT_PORTS_END
r6233r6234
917922#endif
918923
919924   PORT_MODIFY("DSW3")
920    PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
921    PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
922    PORT_DIPSETTING(    0x04, "20k only" )                  /* displays "20000" */
923    PORT_DIPSETTING(    0x08, "40k only" )                  /* displays "40000" */
924    PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
925   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) )
926   PORT_DIPSETTING(    0x0c, "10k only" )                  /* displays "10000" */
927   PORT_DIPSETTING(    0x04, "20k only" )                  /* displays "20000" */
928   PORT_DIPSETTING(    0x08, "40k only" )                  /* displays "40000" */
929   PORT_DIPSETTING(    0x00, "80k only" )                  /* displays "80000" */
925930
926931   /* hunchbak : DSW2 bit 5 stored at 0x5e97 - code at 0x516c - read back code at 0x6054 */
927932   /* hunchbka : DSW2 bit 5 stored at 0x1e97 - code at 0x0c0c - read back code at 0x6054 */
r6233r6234
930935static INPUT_PORTS_START( superbik )
931936   PORT_INCLUDE(cvs_registration)
932937
933    /* DSW3 bits 2 and 3 are not read : bonus life alaways at 5000 */
938   /* DSW3 bits 2 and 3 are not read : bonus life alaways at 5000 */
934939
935940   /* DSW2 bit 5 stored at 0x1e79 - code at 0x060f - read back code at 0x25bf */
936941INPUT_PORTS_END
r6233r6234
938943static INPUT_PORTS_START( raiders )
939944   PORT_INCLUDE(cvs_registration)
940945
941    /* DSW3 bits 2 and 3 are not read : bonus life alaways at 100000 */
946   /* DSW3 bits 2 and 3 are not read : bonus life alaways at 100000 */
942947
943948   PORT_MODIFY("DSW2")
944949   PORT_DIPUNUSED( 0x10, IP_ACTIVE_HIGH )                  /* always 4 lives - table at 0x4218 - 2 bytes */
r6233r6234
954959   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_BUTTON2 */
955960#endif
956961
957    /* DSW3 bits 2 and 3 are not read : bonus life alaways at 150000 */
962   /* DSW3 bits 2 and 3 are not read : bonus life alaways at 150000 */
958963
959964   PORT_MODIFY("DSW2")
960965   PORT_DIPUNUSED( 0x10, IP_ACTIVE_HIGH )                  /* always 3 lives - table at 0x4ebb - 2 bytes */
r6233r6234
970975   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )             /* IPT_BUTTON2 */
971976#endif
972977
973    /* DSW3 bits 2 and 3 are not read : bonus life alaways at 20000 */
978   /* DSW3 bits 2 and 3 are not read : bonus life alaways at 20000 */
974979
975980   PORT_MODIFY("DSW2")
976981   PORT_DIPUNUSED( 0x10, IP_ACTIVE_HIGH )                  /* always 3 lives - table at 0x4531 - 2 bytes */
r6233r6234
10761081   ROM_LOAD( "5b.bin",     0x0000, 0x0800, CRC(f055a624) SHA1(5dfe89d7271092e665cdd5cd59d15a2b70f92f43) )   \
10771082                                                                                 \
10781083   ROM_REGION( 0x0820, "proms", 0 )                                                   \
1079    ROM_LOAD( "82s185.10h", 0x0000, 0x0800, CRC(c205bca6) SHA1(ec9bd220e75f7b067ede6139763ef8aca0fb7a29) )   \
1084   ROM_LOAD( "82s185.10h", 0x0000, 0x0800, CRC(c205bca6) SHA1(ec9bd220e75f7b067ede6139763ef8aca0fb7a29) )   \
10801085   ROM_LOAD( "82s123.10k", 0x0800, 0x0020, CRC(b5221cec) SHA1(71d9830b33b1a8140b0fe1a2ba8024ba8e6e48e0) )   \
10811086
10821087#define CVS_ROM_REGION_SPEECH_DATA(name, len, hash)   \
src/mame/drivers/quasar.c
r6233r6234
152152
153153static ADDRESS_MAP_START( quasar, ADDRESS_SPACE_PROGRAM, 8 )
154154   AM_RANGE(0x0000, 0x13ff) AM_ROM
155    AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_ram_or_palette_r, quasar_bullet_w) AM_BASE(&cvs_bullet_ram)
156    AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_0_or_character_ram_r, cvs_s2636_0_or_character_ram_w) AM_BASE(&cvs_s2636_0_ram)
157    AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_1_or_character_ram_r, cvs_s2636_1_or_character_ram_w) AM_BASE(&cvs_s2636_1_ram)
158    AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_2_or_character_ram_r, cvs_s2636_2_or_character_ram_w) AM_BASE(&cvs_s2636_2_ram)
155   AM_RANGE(0x1400, 0x14ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_bullet_ram_or_palette_r, quasar_bullet_w) AM_BASE(&cvs_bullet_ram)
156   AM_RANGE(0x1500, 0x15ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_0_or_character_ram_r, cvs_s2636_0_or_character_ram_w) AM_BASE(&cvs_s2636_0_ram)
157   AM_RANGE(0x1600, 0x16ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_1_or_character_ram_r, cvs_s2636_1_or_character_ram_w) AM_BASE(&cvs_s2636_1_ram)
158   AM_RANGE(0x1700, 0x17ff) AM_MIRROR(0x6000) AM_READWRITE(cvs_s2636_2_or_character_ram_r, cvs_s2636_2_or_character_ram_w) AM_BASE(&cvs_s2636_2_ram)
159159   AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_READWRITE(cvs_video_or_color_ram_r, quasar_video_w) AM_BASE(&cvs_video_ram)
160160   AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM
161161   AM_RANGE(0x2000, 0x33ff) AM_ROM
r6233r6234
169169   AM_RANGE(S2650_DATA_PORT,  S2650_DATA_PORT) AM_READWRITE(cvs_collision_clear, quasar_sh_command_w)
170170   AM_RANGE(S2650_CTRL_PORT,  S2650_CTRL_PORT) AM_READWRITE(cvs_collision_r, SMH_NOP)
171171   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
172   AM_RANGE(S2650_FO_PORT, S2650_FO_PORT) AM_RAM AM_BASE(&cvs_fo_state)
172173ADDRESS_MAP_END
173174
174175/*************************************
r6233r6234
196197
197198static INPUT_PORTS_START( quasar )
198199   PORT_START("IN0")   /* Controls 0 */
199    PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
200    PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
200   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
201   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
201202   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 )
202203   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 )
203204   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
204205   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 )
205    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_TILT )
206   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_TILT )
206207   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 )         /* switch collaudo */
207208
208209   PORT_START("IN1")   /* Controls 1 */
r6233r6234
211212   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
212213   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL
213214   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
214    PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
215    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )
215   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
216   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )
216217   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 )            /* count enable */
217218
218219   PORT_START("DSW0")   /* DSW0 */
r6233r6234
313314   generic_pulse_irq_line_and_vector(device,0,0x03);
314315}
315316
316// ************************(***************
317
318// ****************************************
317319// Quasar S2650 Main CPU, I8035 sound board
318320// ****************************************
319321
r6233r6234
422424
423425GAME( 1980, quasar,        0, quasar,   quasar,   quasar, ROT90, "Zelco / Zaccaria", "Quasar",             GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
424426GAME( 1980, quasara,  quasar, quasar,   quasar,   quasar, ROT90, "Zelco / Zaccaria", "Quasar (Alternate)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
425
src/mame/drivers/sbrkout.c
r6233r6234
511511 *
512512 *************************************/
513513
514ROM_START( sbrkout )
514// see page 3-21 of schematics which explain the 2 versions.
515// the rev 01 and rev 02 are not mentioned in the tm-118 manual despite it being a first printing
516// hence they are probably prototypes. neither is dumped.
517
518ROM_START( sbrkout ) // rev 04
515519   ROM_REGION( 0x4000, "maincpu", 0 )
516520   ROM_LOAD( "033453.c1",    0x2800, 0x0800, CRC(a35d00e3) SHA1(53617ed1d362e82d6f45abd66056bffe23300e3b) )
517521   ROM_LOAD( "033454.d1",    0x3000, 0x0800, CRC(d42ea79a) SHA1(66c9b29226cde36d1ac6d1e81f34ebb5c79eded4) )
r6233r6234
530534ROM_END
531535
532536
537ROM_START( sbrkout3 ) // rev 03; main cpu roms are on 1024x4bit (82s137 or equiv) proms, otherwise seems identical to rev 04
538   ROM_REGION( 0x4000, "maincpu", 0 )
539   ROM_LOAD_NIB_HIGH( "33442-01.kl0",    0x2C00, 0x0400, CRC(FB5CB68A) SHA1(301E8E47F6A82D6C2290A890BCD5C53D61D58FF7) )
540   ROM_LOAD_NIB_LOW( "33448-01.kl1",    0x2C00, 0x0400, CRC(B1D2B269) SHA1(46DE71F1F9695F03465FD9B2289B5C5FFE19B3A2) )
541   ROM_LOAD_NIB_HIGH( "33443-01.l0",    0x3000, 0x0400, CRC(1E7D059F) SHA1(E1831FEBFD26CF2560351D45F37763A7498C029E) )
542   ROM_LOAD_NIB_LOW( "33449-01.l1",    0x3000, 0x0400, CRC(F936918D) SHA1(9D62FE75D39F95085A4380059C4980F3AFFE1BBF) )
543   ROM_LOAD_NIB_HIGH( "33444-01.m0",    0x3400, 0x0400, CRC(5B7E0E3B) SHA1(4DBD62B23249FBB05E1FFFE50B89A5E280A2DDE9) )
544   ROM_LOAD_NIB_LOW( "33450-01.m1",    0x3400, 0x0400, CRC(430CF9E8) SHA1(8E6075F12DBE0B973500D4E38E0090E40EE47260) )
545   ROM_LOAD_NIB_HIGH( "33445-01.n0",    0x3800, 0x0400, CRC(CDF19919) SHA1(13623BDE69E7F352BEAEF33524F69D74C540E1CC) )
546   ROM_LOAD_NIB_LOW( "33451-01.n1",    0x3800, 0x0400, CRC(19F7C50D) SHA1(91BA9EF7AB4B200A55AE7B7979F4A01E617DD9AD) )
547   ROM_LOAD_NIB_HIGH( "33446-01.p0",    0x3C00, 0x0400, CRC(9553663C) SHA1(6C28B3A11B7FF0AA224BF262C664A62166DC9CDF) )
548   ROM_LOAD_NIB_LOW( "33452-01.p1",    0x3C00, 0x0400, CRC(6DC0439A) SHA1(9CC0B735935A610519EB1B53ED303223E69AF0B7) )
533549
550   ROM_REGION( 0x0400, "gfx1", 0 )
551   ROM_LOAD( "033280.p4",    0x0000, 0x0200, CRC(5a69ce85) SHA1(ad9078d12495c350738bdb0b1e1b6120d9e01f60) )
552   ROM_LOAD( "033281.r4",    0x0200, 0x0200, CRC(066bd624) SHA1(cfb86c7013a70b8375126b23a4e66df5f3b9186b) )
553
554   ROM_REGION( 0x0020, "gfx2", 0 )
555   ROM_LOAD( "033282.k6",    0x0000, 0x0020, CRC(6228736b) SHA1(bc176261dba11521df19d545ce604f8cc294287a) )
556
557   ROM_REGION( 0x0120, "proms", 0 )
558   ROM_LOAD( "006400.m2",    0x0000, 0x0100, CRC(b8094b4c) SHA1(82dc6799a19984f3b204ee3aeeb007e55afc8be3) )   /* sync (not used) */
559   ROM_LOAD( "006401.e2",    0x0100, 0x0020, CRC(857df8db) SHA1(06313d5bde03220b2bc313d18e50e4bb1d0cfbbb) )   /* memory mapper */
560ROM_END
561
562
563
534564/*************************************
535565 *
536566 *  Game drivers
537567 *
538568 *************************************/
539569
540GAMEL( 1978, sbrkout, 0, sbrkout, sbrkout, 0, ROT270, "Atari", "Super Breakout", GAME_SUPPORTS_SAVE, layout_sbrkout )
570GAMEL( 1978, sbrkout, 0, sbrkout, sbrkout, 0, ROT270, "Atari", "Super Breakout (rev 04)", GAME_SUPPORTS_SAVE, layout_sbrkout )
571GAMEL( 1978, sbrkout3, 0, sbrkout, sbrkout, 0, ROT270, "Atari", "Super Breakout (rev 03)", GAME_SUPPORTS_SAVE, layout_sbrkout )
src/mame/drivers/pbaction.c
r6233r6234
426426   ROM_LOAD( "pinball_12.bin",     0x04000, 0x2000, CRC(af6e9817) SHA1(56f47d25761b3850c49a3a81b5ea35f12bd77b14) )
427427ROM_END
428428
429ROM_START( pbaction5 )
430   ROM_REGION( 0x10000, "maincpu", 0 )
431   ROM_LOAD( "p16.bin",     0x0000, 0x4000, CRC(ad20b360) SHA1(91e3cdceb1c170580d926b2ed8359c3100f71b11) )
432   ROM_LOAD( "c15.bin",     0x4000, 0x4000, CRC(057acfe3) SHA1(49c184d7caea0c0e9f0d0e163f2ef42bb9aebf16) )
433   ROM_LOAD( "p14.bin",     0x8000, 0x2000, CRC(e7412d68) SHA1(e75731d9bea80e0dc09798dd46e3b947fdb54aaa) )
429434
435   ROM_REGION( 0x10000, "audiocpu", 0 )   /* 64k for sound board */
436   ROM_LOAD( "p1.bin",     0x0000,  0x2000, CRC(8b69b933) SHA1(eb0762579d52ed9f5b1a002ffe7e517c59650e22) )
437
438   ROM_REGION( 0x06000, "fgchars", 0 )
439   ROM_LOAD( "p7.bin",     0x00000, 0x2000, CRC(9a74a8e1) SHA1(bd27439b91f41db3fd7eedb44e828d61b793bda0) )
440   ROM_LOAD( "p8.bin",     0x02000, 0x2000, CRC(5ca6ad3c) SHA1(7c8eff087f18cc2ff0572ea45e681a3a1ec94fad) )
441   ROM_LOAD( "p9.bin",     0x04000, 0x2000, CRC(9f00b757) SHA1(74b6d926b8f456c8d0101f0232c5d3662423b396) )
442
443   ROM_REGION( 0x10000, "bgchars", 0 )
444   ROM_LOAD( "p2.bin",     0x00000, 0x4000, CRC(21efe866) SHA1(0c0a05a26d793ba98b0f421d464ff4b1d301ff9e) )
445   ROM_LOAD( "p3.bin",     0x04000, 0x4000, CRC(7f984c80) SHA1(18795ecbcd2da94f1cfcce5559d652388d1b8bc0) )
446   ROM_LOAD( "p4.bin",     0x08000, 0x4000, CRC(df69e51b) SHA1(52ab15c63332f0fa98884fa9adc8d35b93c939c4) )
447   ROM_LOAD( "p5.bin",     0x0c000, 0x4000, CRC(0094cb8b) SHA1(58f48d24903b797e8451bf231f9e8df621685d9f) )
448
449   ROM_REGION( 0x06000, "sprites", 0 )
450   ROM_LOAD( "p11.bin",     0x00000, 0x2000, CRC(d1795ef5) SHA1(69ad8e419e340d2f548468ed7838102789b978da) )
451   ROM_LOAD( "p12.bin",     0x02000, 0x2000, CRC(f28df203) SHA1(060f70ed6386c808303a488c97691257681bd8f3) )
452   ROM_LOAD( "p13.bin",     0x04000, 0x2000, CRC(af6e9817) SHA1(56f47d25761b3850c49a3a81b5ea35f12bd77b14) )
453ROM_END
454
430455static READ8_HANDLER( pbactio3_prot_kludge_r )
431456{
432457   /* on startup, the game expect this location to NOT act as RAM */
r6233r6234
466491GAME( 1985, pbaction2,pbaction, pbaction, pbaction, 0,        ROT90, "Tehkan", "Pinball Action (set 2)", 0 )
467492GAME( 1985, pbaction3,pbaction, pbaction, pbaction, pbactio3, ROT90, "Tehkan", "Pinball Action (set 3, encrypted)", 0 )
468493GAME( 1985, pbaction4,pbaction, pbaction, pbaction, pbactio4, ROT90, "Tehkan", "Pinball Action (set 4, encrypted)", 0 )
494GAME( 1985, pbaction5,pbaction, pbaction, pbaction, pbactio4, ROT90, "Tehkan", "Pinball Action (set 5, encrypted)", 0 )
src/mame/drivers/taitogn.c
r6233r6234
834834   dip_timer = timer_alloc(machine,  dip_timer_fired, NULL );
835835
836836   memset(cis, 0xff, 512);
837   chd_get_metadata(get_disk_handle(machine, "card"), PCMCIA_CIS_METADATA_TAG, 0, cis, 512, 0, 0, 0);
837   if (get_disk_handle(machine, "card") != NULL)
838      chd_get_metadata(get_disk_handle(machine, "card"), PCMCIA_CIS_METADATA_TAG, 0, cis, 512, 0, 0, 0);
838839}
839840
840841static DRIVER_INIT( coh3002t_mp )
r6233r6234
851852   control = 0;
852853   psx_machine_init(machine);
853854   devtag_reset(machine, "card");
854   ide_set_gnet_readlock (devtag_get_device(machine, "card"), 1);
855   ide_set_gnet_readlock(devtag_get_device(machine, "card"), 1);
855856}
856857
857858static ADDRESS_MAP_START( zn_map, ADDRESS_SPACE_PROGRAM, 32 )
858   AM_RANGE(0x00000000, 0x003fffff) AM_RAM AM_SHARE(1) AM_BASE(&g_p_n_psxram) AM_SIZE(&g_n_psxramsize) /*
859 ram */
859   AM_RANGE(0x00000000, 0x003fffff) AM_RAM AM_SHARE(1) AM_BASE(&g_p_n_psxram) AM_SIZE(&g_n_psxramsize) /* ram */
860860   AM_RANGE(0x00400000, 0x007fffff) AM_RAM AM_SHARE(1) /* ram mirror */
861861   AM_RANGE(0x1f000000, 0x1f1fffff) AM_READWRITE(flash_s1_r, flash_s1_w)
862862   AM_RANGE(0x1f200000, 0x1f3fffff) AM_READWRITE(flash_s2_r, flash_s2_w)
src/tools/src2html.c
r6233r6234
22
33    MAME source code to HTML converter
44
5    Copyright Nicola Salmoria and the MAME Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
5****************************************************************************
76
7    Copyright Aaron Giles
8    All rights reserved.
9
10    Redistribution and use in source and binary forms, with or without
11    modification, are permitted provided that the following conditions are
12    met:
13
14        * Redistributions of source code must retain the above copyright
15          notice, this list of conditions and the following disclaimer.
16        * Redistributions in binary form must reproduce the above copyright
17          notice, this list of conditions and the following disclaimer in
18          the documentation and/or other materials provided with the
19          distribution.
20        * Neither the name 'MAME' nor the names of its contributors may be
21          used to endorse or promote products derived from this software
22          without specific prior written permission.
23
24    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
25    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
28    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34    POSSIBILITY OF SUCH DAMAGE.
35
836****************************************************************************
937
1038    Template file format:
src/tools/jedutil.c
r6233r6234
44
55    JEDEC file utilities.
66
7    Copyright Nicola Salmoria and the MAME Team.
8    Visit http://mamedev.org for licensing and usage restrictions.
7****************************************************************************
98
9    Copyright Aaron Giles
10    All rights reserved.
11
12    Redistribution and use in source and binary forms, with or without
13    modification, are permitted provided that the following conditions are
14    met:
15
16        * Redistributions of source code must retain the above copyright
17          notice, this list of conditions and the following disclaimer.
18        * Redistributions in binary form must reproduce the above copyright
19          notice, this list of conditions and the following disclaimer in
20          the documentation and/or other materials provided with the
21          distribution.
22        * Neither the name 'MAME' nor the names of its contributors may be
23          used to endorse or promote products derived from this software
24          without specific prior written permission.
25
26    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36    POSSIBILITY OF SUCH DAMAGE.
37
1038****************************************************************************
1139
1240    Binary file format:
src/tools/unidasm.c
r6233r6234
44
55    Generic MAME disassembler.
66
7    Copyright Nicola Salmoria and the MAME Team.
8    Visit http://mamedev.org for licensing and usage restrictions.
7****************************************************************************
98
10***************************************************************************/
9    Copyright Aaron Giles
10    All rights reserved.
1111
12    Redistribution and use in source and binary forms, with or without
13    modification, are permitted provided that the following conditions are
14    met:
15
16        * Redistributions of source code must retain the above copyright
17          notice, this list of conditions and the following disclaimer.
18        * Redistributions in binary form must reproduce the above copyright
19          notice, this list of conditions and the following disclaimer in
20          the documentation and/or other materials provided with the
21          distribution.
22        * Neither the name 'MAME' nor the names of its contributors may be
23          used to endorse or promote products derived from this software
24          without specific prior written permission.
25
26    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36    POSSIBILITY OF SUCH DAMAGE.
37
38****************************************************************************/
39
1240#include "cpuintrf.h"
1341#include <ctype.h>
1442
r6233r6234
5381   UINT8               norawbytes;
5482   UINT8               lower;
5583   UINT8               upper;
84   UINT8               flipped;
5685   int                  mode;
5786   const dasm_table_entry *dasm;
5887};
r6233r6234
351380            pending_arch = TRUE;
352381         else if (tolower((UINT8)curarg[1]) == 'b')
353382            pending_base = TRUE;
383         else if (tolower((UINT8)curarg[1]) == 'f')
384            opts->flipped = TRUE;
354385         else if (tolower((UINT8)curarg[1]) == 'l')
355386            opts->lower = TRUE;
356387         else if (tolower((UINT8)curarg[1]) == 'm')
r6233r6234
417448   return 0;
418449
419450usage:
420   printf("Usage: %s <filename> -arch <architecture> [-basepc <pc>] [-mode <n>] [-norawbytes] [-upper] [-lower]\n", argv[0]);
451   printf("Usage: %s <filename> -arch <architecture> [-basepc <pc>] \n", argv[0]);
452   printf("   [-mode <n>] [-norawbytes] [-flipped] [-upper] [-lower]\n");
421453   printf("\n");
422454   printf("Supported architectures:");
423455   numrows = (ARRAY_LENGTH(dasm_table) + 6) / 7;
r6233r6234
487519      else
488520         numbytes = pcdelta >> opts.dasm->pcshift;
489521
490      // round to the nearest display chunk
491      numbytes = ((numbytes + displaychunk - 1) / displaychunk) * displaychunk;
492      if (numbytes == 0)
493         numbytes = displaychunk;
494      numchunks = numbytes / displaychunk;
495
496      // output the address
497      printf("%08X: ", curpc);
498
499      // output the raw bytes
500      if (!opts.norawbytes)
501      {
502         int firstchunks = (numchunks < maxchunks) ? numchunks : maxchunks;
503         int chunknum, bytenum;
504         for (chunknum = 0; chunknum < firstchunks; chunknum++)
505         {
506            for (bytenum = 0; bytenum < displaychunk; bytenum++)
507               printf("%02X", oprom[displayendian ? (displaychunk - 1 - bytenum) : bytenum]);
508            printf(" ");
509            oprom += displaychunk;
510         }
511         for ( ; chunknum < maxchunks; chunknum++)
512            printf("%*s ", displaychunk * 2, "");
513         printf(" ");
514      }
515
516      // output the disassembly
522      // force upper or lower
517523      if (opts.lower)
518524      {
519525         for (p = buffer; *p != 0; p++)
r6233r6234
524530         for (p = buffer; *p != 0; p++)
525531            *p = toupper((UINT8)*p);
526532      }
527      printf("%s\n", buffer);
528533
529      // output additional raw bytes
530      if (!opts.norawbytes && numchunks > maxchunks)
534      // round to the nearest display chunk
535      numbytes = ((numbytes + displaychunk - 1) / displaychunk) * displaychunk;
536      if (numbytes == 0)
537         numbytes = displaychunk;
538      numchunks = numbytes / displaychunk;
539
540      // non-flipped case
541      if (!opts.flipped)
531542      {
532         for (numchunks -= maxchunks; numchunks > 0; numchunks -= maxchunks)
543         // output the address
544         printf("%08X: ", curpc);
545
546         // output the raw bytes
547         if (!opts.norawbytes)
533548         {
534549            int firstchunks = (numchunks < maxchunks) ? numchunks : maxchunks;
535550            int chunknum, bytenum;
536            printf("          ");
537551            for (chunknum = 0; chunknum < firstchunks; chunknum++)
538552            {
539553               for (bytenum = 0; bytenum < displaychunk; bytenum++)
r6233r6234
541555               printf(" ");
542556               oprom += displaychunk;
543557            }
544            printf("\n");
558            for ( ; chunknum < maxchunks; chunknum++)
559               printf("%*s ", displaychunk * 2, "");
560            printf(" ");
545561         }
562
563         // output the disassembly
564         printf("%s\n", buffer);
565
566         // output additional raw bytes
567         if (!opts.norawbytes && numchunks > maxchunks)
568         {
569            for (numchunks -= maxchunks; numchunks > 0; numchunks -= maxchunks)
570            {
571               int firstchunks = (numchunks < maxchunks) ? numchunks : maxchunks;
572               int chunknum, bytenum;
573               printf("          ");
574               for (chunknum = 0; chunknum < firstchunks; chunknum++)
575               {
576                  for (bytenum = 0; bytenum < displaychunk; bytenum++)
577                     printf("%02X", oprom[displayendian ? (displaychunk - 1 - bytenum) : bytenum]);
578                  printf(" ");
579                  oprom += displaychunk;
580               }
581               printf("\n");
582            }
583         }
546584      }
547585
586      // flipped case
587      else
588      {
589         // output the disassembly and address
590         printf("\t%-40s ; %08X", buffer, curpc);
591
592         // output the raw bytes
593         if (!opts.norawbytes)
594         {
595            int chunknum, bytenum;
596            printf(": ");
597            for (chunknum = 0; chunknum < numchunks; chunknum++)
598            {
599               for (bytenum = 0; bytenum < displaychunk; bytenum++)
600                  printf("%02X", oprom[displayendian ? (displaychunk - 1 - bytenum) : bytenum]);
601               printf(" ");
602               oprom += displaychunk;
603            }
604         }
605         printf("\n");
606      }
607
548608      // advance
549609      curpc += pcdelta;
550610   }
src/tools/ldverify.c
r6233r6234
44
55    Laserdisc AVI/CHD verifier.
66
7    Copyright Nicola Salmoria and the MAME Team.
8    Visit http://mamedev.org for licensing and usage restrictions.
7****************************************************************************
98
10***************************************************************************/
9    Copyright Aaron Giles
10    All rights reserved.
1111
12    Redistribution and use in source and binary forms, with or without
13    modification, are permitted provided that the following conditions are
14    met:
15
16        * Redistributions of source code must retain the above copyright
17          notice, this list of conditions and the following disclaimer.
18        * Redistributions in binary form must reproduce the above copyright
19          notice, this list of conditions and the following disclaimer in
20          the documentation and/or other materials provided with the
21          distribution.
22        * Neither the name 'MAME' nor the names of its contributors may be
23          used to endorse or promote products derived from this software
24          without specific prior written permission.
25
26    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36    POSSIBILITY OF SUCH DAMAGE.
37
38****************************************************************************/
39
1240#include <stdio.h>
1341#include <ctype.h>
1442#include "aviio.h"
src/tools/regrep.c
r6233r6234
22
33    Regression test report generator
44
5    Copyright Nicola Salmoria and the MAME Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
5****************************************************************************
76
8***************************************************************************/
7    Copyright Aaron Giles
8    All rights reserved.
99
10    Redistribution and use in source and binary forms, with or without
11    modification, are permitted provided that the following conditions are
12    met:
13
14        * Redistributions of source code must retain the above copyright
15          notice, this list of conditions and the following disclaimer.
16        * Redistributions in binary form must reproduce the above copyright
17          notice, this list of conditions and the following disclaimer in
18          the documentation and/or other materials provided with the
19          distribution.
20        * Neither the name 'MAME' nor the names of its contributors may be
21          used to endorse or promote products derived from this software
22          without specific prior written permission.
23
24    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
25    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
28    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34    POSSIBILITY OF SUCH DAMAGE.
35
36****************************************************************************/
37
1038#include <stdio.h>
1139#include <stdlib.h>
1240#include <string.h>
src/tools/tools.mak
r6233r6234
44#
55#   MAME tools makefile
66#
7#   Copyright Nicola Salmoria and the MAME Team.
8#   Visit http://mamedev.org for licensing and usage restrictions.
7###########################################################################
98#
9#   Copyright Aaron Giles
10#   All rights reserved.
11#
12#   Redistribution and use in source and binary forms, with or without
13#   modification, are permitted provided that the following conditions are
14#   met:
15#
16#       * Redistributions of source code must retain the above copyright
17#         notice, this list of conditions and the following disclaimer.
18#       * Redistributions in binary form must reproduce the above copyright
19#         notice, this list of conditions and the following disclaimer in
20#         the documentation and/or other materials provided with the
21#         distribution.
22#       * Neither the name 'MAME' nor the names of its contributors may be
23#         used to endorse or promote products derived from this software
24#         without specific prior written permission.
25#
26#   THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27#   IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28#   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29#   DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30#   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31#   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32#   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33#   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34#   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35#   IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36#   POSSIBILITY OF SUCH DAMAGE.
37#
1038###########################################################################
1139
1240
src/tools/ldresample.c
r6233r6234
44
55    Laserdisc audio synchronizer and resampler.
66
7    Copyright Nicola Salmoria and the MAME Team.
8    Visit http://mamedev.org for licensing and usage restrictions.
7****************************************************************************
98
10***************************************************************************/
9    Copyright Aaron Giles
10    All rights reserved.
1111
12    Redistribution and use in source and binary forms, with or without
13    modification, are permitted provided that the following conditions are
14    met:
15
16        * Redistributions of source code must retain the above copyright
17          notice, this list of conditions and the following disclaimer.
18        * Redistributions in binary form must reproduce the above copyright
19          notice, this list of conditions and the following disclaimer in
20          the documentation and/or other materials provided with the
21          distribution.
22        * Neither the name 'MAME' nor the names of its contributors may be
23          used to endorse or promote products derived from this software
24          without specific prior written permission.
25
26    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36    POSSIBILITY OF SUCH DAMAGE.
37
38****************************************************************************/
39
1240#include <stdio.h>
1341#include <ctype.h>
1442#include <math.h>
src/tools/chdman.c
r6233r6234
22
33    CHD compression frontend
44
5    Copyright Nicola Salmoria and the MAME Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
5****************************************************************************
76
8***************************************************************************/
7    Copyright Aaron Giles
8    All rights reserved.
99
10    Redistribution and use in source and binary forms, with or without
11    modification, are permitted provided that the following conditions are
12    met:
13
14        * Redistributions of source code must retain the above copyright
15          notice, this list of conditions and the following disclaimer.
16        * Redistributions in binary form must reproduce the above copyright
17          notice, this list of conditions and the following disclaimer in
18          the documentation and/or other materials provided with the
19          distribution.
20        * Neither the name 'MAME' nor the names of its contributors may be
21          used to endorse or promote products derived from this software
22          without specific prior written permission.
23
24    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
25    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
28    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34    POSSIBILITY OF SUCH DAMAGE.
35
36****************************************************************************/
37
1038#include "osdcore.h"
1139#include "corefile.h"
1240#include "chdcd.h"
src/tools/srcclean.c
r6233r6234
44
55    Basic source code cleanear.
66
7    Copyright Nicola Salmoria and the MAME Team.
8    Visit http://mamedev.org for licensing and usage restrictions.
7****************************************************************************
98
10***************************************************************************/
9    Copyright Aaron Giles
10    All rights reserved.
1111
12    Redistribution and use in source and binary forms, with or without
13    modification, are permitted provided that the following conditions are
14    met:
15
16        * Redistributions of source code must retain the above copyright
17          notice, this list of conditions and the following disclaimer.
18        * Redistributions in binary form must reproduce the above copyright
19          notice, this list of conditions and the following disclaimer in
20          the documentation and/or other materials provided with the
21          distribution.
22        * Neither the name 'MAME' nor the names of its contributors may be
23          used to endorse or promote products derived from this software
24          without specific prior written permission.
25
26    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36    POSSIBILITY OF SUCH DAMAGE.
37
38****************************************************************************/
39
1240#include <stdio.h>
1341#include <string.h>
1442
src/tools/split.c
r6233r6234
44
55    Simple file splitter/joiner with hashes.
66
7    Copyright Aaron Giles. Released under the MAME license.
8    Visit http://mamedev.org for licensing and usage restrictions.
7****************************************************************************
98
10***************************************************************************/
9    Copyright Aaron Giles
10    All rights reserved.
1111
12    Redistribution and use in source and binary forms, with or without
13    modification, are permitted provided that the following conditions are
14    met:
15
16        * Redistributions of source code must retain the above copyright
17          notice, this list of conditions and the following disclaimer.
18        * Redistributions in binary form must reproduce the above copyright
19          notice, this list of conditions and the following disclaimer in
20          the documentation and/or other materials provided with the
21          distribution.
22        * Neither the name 'MAME' nor the names of its contributors may be
23          used to endorse or promote products derived from this software
24          without specific prior written permission.
25
26    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
30    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
35    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36    POSSIBILITY OF SUCH DAMAGE.
37
38****************************************************************************/
39
1240#include <stdio.h>
1341#include <stdlib.h>
1442#include <string.h>
src/emu/cpu/z180/z180.c
r6233r6234
122122   UINT8   rtemp;
123123   UINT32   ioltemp;
124124   int icount;
125   const UINT8 *cc[6];
125   UINT8 *cc[6];
126126};
127127
128128INLINE z180_state *get_safe_token(const device_config *device)
r6233r6234
20182018   if (device->static_config)
20192019      cpustate->daisy = z80daisy_init(device, (const z80_daisy_chain *)device->static_config);
20202020   cpustate->irq_callback = irqcallback;
2021   cpustate->device = device;
2022   cpustate->program = memory_find_address_space(device, ADDRESS_SPACE_PROGRAM);
2023   cpustate->iospace = memory_find_address_space(device, ADDRESS_SPACE_IO);
2024   memcpy(cpustate->cc, cc_default, sizeof(cpustate->cc));
20252021
20262022   /* set up the state table */
20272023   cpustate->state = state_table_template;
r6233r6234
21442140   save_irqcallback = cpustate->irq_callback;
21452141   save_table = cpustate->state;
21462142   memset(cpustate, 0, sizeof(*cpustate));
2143
2144   memcpy(cpustate->cc, (UINT8 *)cc_default, sizeof(cpustate->cc));
21472145   cpustate->daisy = save_daisy;
21482146   cpustate->irq_callback = save_irqcallback;
21492147   cpustate->state = save_table;
r6233r6234
21642162   cpustate->read_tcr_tmdr[1] = 0;
21652163   cpustate->tmdr_value[0] = 0xffff;
21662164   cpustate->tmdr_value[1] = 0xffff;
2167   cpustate->device = device;
21682165
21692166   /* reset io registers */
21702167   cpustate->IO_CNTLA0  = Z180_CNTLA0_RESET;
r6233r6234
25182515      case CPUINFO_INT_INPUT_STATE + Z180_INT0:      set_irq_line(cpustate, Z180_INT0, info->i);         break;
25192516
25202517      /* --- the following bits of info are set as pointers to data or functions --- */
2521      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_op:       cpustate->cc[Z180_TABLE_op] = (const UINT8 *)info->p;            break;
2522      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_cb:       cpustate->cc[Z180_TABLE_cb] = (const UINT8 *)info->p;            break;
2523      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_ed:       cpustate->cc[Z180_TABLE_ed] = (const UINT8 *)info->p;            break;
2524      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_xy:       cpustate->cc[Z180_TABLE_xy] = (const UINT8 *)info->p;            break;
2525      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_xycb:    cpustate->cc[Z180_TABLE_xycb] = (const UINT8 *)info->p;            break;
2526      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_ex:       cpustate->cc[Z180_TABLE_ex] = (const UINT8 *)info->p;            break;
2518      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_op:       cpustate->cc[Z180_TABLE_op] = info->p;      break;
2519      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_cb:       cpustate->cc[Z180_TABLE_cb] = info->p;      break;
2520      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_ed:       cpustate->cc[Z180_TABLE_ed] = info->p;      break;
2521      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_xy:       cpustate->cc[Z180_TABLE_xy] = info->p;      break;
2522      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_xycb:    cpustate->cc[Z180_TABLE_xycb] = info->p;   break;
2523      case CPUINFO_PTR_Z180_CYCLE_TABLE + Z180_TABLE_ex:       cpustate->cc[Z180_TABLE_ex] = info->p;      break;
25272524   }
25282525}
25292526
src/emu/cpu/dsp56k/dsp56ops.c
r6233r6234
66
77***************************************************************************/
88
9// NOTES For register setting:
10// FM.3-4 : When A2 or B2 is read, the register contents occupy the low-order portion
11//          (bits 7-0) of the word; the high-order portion (bits 16-8) is sign-extended. When A2 or B2
12//          is written, the register receives the low-order portion of the word; the high-order portion is not used
13//        : ...much more!
14//        : ...shifter/limiter/overflow notes too.
15//
16//
9/* NOTES For register setting:
10   FM.3-4 : When A2 or B2 is read, the register contents occupy the low-order portion
11            (bits 7-0) of the word; the high-order portion (bits 16-8) is sign-extended. When A2 or B2
12            is written, the register receives the low-order portion of the word; the high-order portion is not used
13          : ...much more!
14          : ...shifter/limiter/overflow notes too.
1715
16*/
17
1818/*
1919TODO:
2020    - 0x01ee: should this move sign extend?  otherwise the test-against-minus means nothing.
r6233r6234
190190static void      decode_IIII_table(dsp56k_core* cpustate, UINT16 IIII, typed_pointer* src_ret, typed_pointer* dst_ret, void* working);
191191static void      decode_JJJF_table(dsp56k_core* cpustate, UINT16 JJJ, UINT16 F, typed_pointer* src_ret, typed_pointer* dst_ret);
192192static void      decode_JJF_table(dsp56k_core* cpustate, UINT16 JJ, UINT16 F, typed_pointer* src_ret, typed_pointer* dst_ret);
193static void      decode_JF_table(dsp56k_core* cpustate, UINT16 JJ, UINT16 F, typed_pointer* src_ret, typed_pointer* dst_ret);
193194static void      decode_KKK_table(dsp56k_core* cpustate, UINT16 KKK, typed_pointer* dst_ret1, typed_pointer* dst_ret2, void* working);
194195static void      decode_QQF_table(dsp56k_core* cpustate, UINT16 QQ, UINT16 F, void **S1, void **S2, void **D);
195196static void      decode_QQF_special_table(dsp56k_core* cpustate, UINT16 QQ, UINT16 F, void **S1, void **S2, void **D);
r6233r6234
321322      }
322323
323324      /* Now evaluate the parallel data move */
324      // TODO // decode_x_memory_data_write_and_register_data_move(op, parallel_move_str, parallel_move_str2);
325      /* TODO // decode_x_memory_data_write_and_register_data_move(op, parallel_move_str, parallel_move_str2); */
325326      logerror("DSP56k: Unemulated Dual X Memory Data And Register Data Move @ 0x%x\n", PC);
326327   }
327328
r6233r6234
10881089   if (size == 0x1337)
10891090   {
10901091      logerror("DSP56k: Unimplemented opcode at 0x%04x : %04x\n", PC, op);
1091      size = 1 ;                  // Just to get the debugger past the bad opcode
1092      size = 1 ;                  /* Just to get the debugger past the bad opcode */
10921093   }
10931094
10941095   /* Must have been a good opcode */
r6233r6234
14671468   /* Save some data for the parallel move */
14681469   *p_accum = *((UINT64*)D.addr);
14691470
1471   /* Make sure the destination is a real 40-bit value */
1472   *((UINT64*)D.addr) &= U64(0x000000ffffffffff);
1473
14701474   /* Increment */
14711475   *((UINT64*)D.addr) = *((UINT64*)D.addr) + 1;
14721476
1473   /* And out the bits that don't live in the register */
1474   *((UINT64*)D.addr) &= U64(0x000000ffffffffff);
1475
14761477   d_register->addr = D.addr;
14771478   d_register->data_type = D.data_type;
14781479
14791480   /* S L E U N Z V C */
14801481   /* * * * * * * * * */
1481   /* TODO: S, L, E, U, V, C */
1482   /* TODO: S, L, E, U */
14821483   if ( *((UINT64*)D.addr) & U64(0x0000008000000000))       N_SET(); else N_CLEAR();
14831484   if ((*((UINT64*)D.addr) & U64(0x000000ffffff0000)) == 0) Z_SET(); else Z_CLEAR();
1485   if ((*((UINT64*)D.addr) & U64(0xffffff0000000000)) != 0) V_SET(); else V_CLEAR();
1486   if ((*((UINT64*)D.addr) & U64(0xffffff0000000000)) != 0) C_SET(); else C_CLEAR();
14841487
14851488   cycles += 2;   /* TODO: +mv oscillator cycles */
14861489   return 1;
r6233r6234
15001503   /* TODO: I wonder if workBits24 should be signed? */
15011504   workBits24 = ((*((UINT64*)D.addr)) & U64(0x000000ffffff0000)) >> 16;
15021505   workBits24++;
1503   workBits24 &= 0x00ffffff;      /* Solves -x issues */
1506   //workBits24 &= 0x00ffffff;     /* Solves -x issues - TODO: huh? */
15041507
15051508   /* Set the D bits with the dec result */
15061509   *((UINT64*)D.addr) &= U64(0x000000000000ffff);
r6233r6234
15111514
15121515   /* S L E U N Z V C */
15131516   /* * * * * * ? * * */
1514   /* TODO: S, L, E, U, V, C */
1517   /* TODO: S, L, E, U */
15151518   if ( *((UINT64*)D.addr) & U64(0x0000008000000000))       N_SET(); else N_CLEAR();
15161519   if ((*((UINT64*)D.addr) & U64(0x000000ffffff0000)) == 0) Z_SET(); else Z_CLEAR();
1520   if ((workBits24 & 0xff000000) != 0) V_SET(); else V_CLEAR();
1521   if ((workBits24 & 0xff000000) != 0) C_SET(); else C_CLEAR();
15171522
15181523   cycles += 2;      /* TODO: + mv oscillator clock cycles */
15191524   return 1;
r6233r6234
16711676   if ((S.data_type == DT_WORD) && useVal & U64(0x0000000080000000))
16721677      useVal |= U64(0x000000ff00000000);
16731678
1679   /* Make sure they're both real 40-bit values */
1680   useVal &= U64(0x000000ffffffffff);
1681   *((UINT64*)D.addr) &= U64(0x000000ffffffffff);
1682
16741683   /* Operate*/
16751684   *((UINT64*)D.addr) -= useVal;
16761685
r6233r6234
16791688
16801689   /* S L E U N Z V C */
16811690   /* * * * * * * * * */
1682   /* TODO S, L, E, U, V, C */
1683   if (*((UINT64*)D.addr) & U64(0x0000008000000000)) N_SET(); else N_CLEAR();
1684   if (*((UINT64*)D.addr) == 0)                 Z_SET(); else Z_CLEAR();
1691   /* TODO S, L, E, U */
1692   if ( *((UINT64*)D.addr) & U64(0x0000008000000000)) N_SET(); else N_CLEAR();
1693   if ( *((UINT64*)D.addr) == 0)                 Z_SET(); else Z_CLEAR();
1694   if ((*((UINT64*)D.addr) & U64(0xffffff0000000000)) != 0) V_SET(); else V_CLEAR();
1695   if ((*((UINT64*)D.addr) & U64(0xffffff0000000000)) != 0) C_SET(); else C_CLEAR();
16851696
16861697   cycles += 2;      /* TODO: + mv oscillator cycles */
16871698   return 1;
r6233r6234
17401751
17411752   /* S L E U N Z V C */
17421753   /* * * * * * * * * */
1743   /* TODO: S, L, E, U, N, V, C */
1744   if (result == 0) Z_SET(); else Z_CLEAR();
1754   /* TODO: S, L, E, U */
1755   if ( result & U64(0x0000008000000000)) N_SET(); else N_CLEAR();
1756   if ( result == 0) Z_SET(); else Z_CLEAR();
1757   if ((result & U64(0xffffff0000000000)) != 0) V_SET(); else V_CLEAR();
1758   if ((result & U64(0xffffff0000000000)) != 0) C_SET(); else C_CLEAR();
17451759
17461760
17471761   cycles += 2;      /* TODO: + mv oscillator clock cycles */
r6233r6234
18531867/* ABS : .... .... 0111 F001 : A-18 */
18541868static size_t dsp56k_op_abs(dsp56k_core* cpustate, const UINT16 op_byte, typed_pointer* d_register, UINT64* p_accum, UINT8* cycles)
18551869{
1870   INT64 opD = 0;
1871   typed_pointer D = {NULL, DT_LONG_WORD};
1872
1873   decode_F_table(cpustate, BITS(op_byte,0x0008), &D);
1874
1875   *p_accum = *((UINT64*)D.addr);
1876
1877   /* Sign extend D into a temp variable */
1878   opD = *p_accum;
1879   if (opD &  U64(0x0000008000000000))
1880      opD |= U64(0xffffff0000000000);
1881   else
1882      opD &= U64(0x000000ffffffffff);
1883
1884   /* Take the absolute value and clean up */
1885   opD = abs(opD);
1886   opD &= U64(0x000000ffffffffff);
1887
1888   /* Reassign */
1889   *((UINT64*)D.addr) = opD;
1890
1891   /* Special overflow case */
1892   if ((*p_accum) == U64(0x0000008000000000))
1893      *((UINT64*)D.addr) = U64(0x0000007fffffffff);
1894
18561895   /* S L E U N Z V C */
18571896   /* * * * * * * * - */
1858   return 0;
1897   /* TODO: S, L, E, U */
1898   if ( *((UINT64*)D.addr) & U64(0x0000008000000000))       N_SET(); else N_CLEAR();
1899   if ((*((UINT64*)D.addr) & U64(0x000000ffffffffff)) == 0) Z_SET(); else Z_CLEAR();
1900   if ((*p_accum)         == U64(0x0000008000000000))       V_SET(); else V_CLEAR();
1901
1902   cycles += 2;         /* TODO: + mv oscillator clock cycles */
1903   return 1;
18591904}
18601905
18611906/* ROR : .... .... 0111 F010 : A-192 */
r6233r6234
19321977
19331978   /* S L E U N Z V C */
19341979   /* * * * * * * * * */
1935   /* TODO: S, L, E, U, V, C */
1980   /* TODO: S, L, E, U */
19361981   if ( (absResult) & U64(0x0000008000000000))        N_SET(); else N_CLEAR();
19371982   if (((absResult) & U64(0x000000ffffffffff)) == 0) Z_SET(); else Z_CLEAR();
1983   if ( (absResult  & U64(0xffffff0000000000)) != 0)  V_SET(); else V_CLEAR();
1984   if ( (absResult  & U64(0xffffff0000000000)) != 0)  C_SET(); else C_CLEAR();
19381985
19391986   cycles += 2;      /* TODO: +mv oscillator cycles */
19401987   return 1;
r6233r6234
28152862   else if (S.addr == &B) lValue = *((UINT16*)(&B1));
28162863   else               lValue = *((UINT16*)S.addr);
28172864
2865   /* HACK */
2866    if (lValue >= 0xfff0)
2867   {
2868      lValue = 0x0000;
2869      logerror("Dsp56k : DO_2 operation changed %04x to 0000.\n", lValue);
2870   }
2871
28182872   /* TODO: Fix for special cased SP S */
28192873   if (S.addr == &SP)
28202874      logerror("DSP56k: do with SP as the source not properly implemented yet.\n");
r6233r6234
29152969/* IMAC : 0001 0101 1010 FQQQ : A-100 */
29162970static size_t dsp56k_op_imac(dsp56k_core* cpustate, const UINT16 op, UINT8* cycles)
29172971{
2972   INT64 opD = 0;
2973   INT64 result = 0;
2974
2975   INT32 s1 = 0;
2976   INT32 s2 = 0;
2977
2978   void* D = NULL;
2979   void* S1 = NULL;
2980   void* S2 = NULL;
2981
2982   decode_QQQF_table(cpustate, BITS(op,0x0007), BITS(op,0x0008), &S1, &S2, &D);
2983
2984   /* Cast both values as being signed */
2985   s1 = *((INT16*)S1);
2986   s2 = *((INT16*)S2);
2987
2988   /* Integral multiply doesn't require the shift */
2989   result = (s1 * s2);
2990
2991   /* Shift result 16 bits to the left before adding to destination */
2992   result = (result << 16) & 0xffff0000;
2993
2994   /* Sign extend D into a temp variable */
2995   opD = (*((UINT64*)D));
2996   if (opD & U64(0x0000008000000000))
2997      opD |= U64(0xffffff0000000000);
2998   else
2999      opD &= U64(0x000000ffffffffff);
3000
3001   /* Accumulate */
3002   opD += result;
3003
3004   /* And out the bits that don't live in the register */
3005   opD &= U64(0x000000ffffffffff);
3006
3007   (*((UINT64*)D)) = (UINT64)opD;
3008
29183009   /* S L E U N Z V C */
29193010   /* - * ? ? * ? ? - */
2920   /* Z - Set if the 24 most significant bits of the destination result are all zeroes. */
3011   /* TODO: L */
29213012   /* U,E - Will not be set correctly by this instruction*/
2922   /* V - Set to zero regardless of the overflow */
2923   return 0;
3013   if ( *((UINT64*)D) & U64(0x0000008000000000))      N_SET(); else N_CLEAR();
3014   if ((*((UINT64*)D) & U64(0x000000ffffff0000)) == 0) Z_SET(); else Z_CLEAR();
3015   V_CLEAR();
3016
3017   cycles += 2;
3018   return 1;
29243019}
29253020
29263021/* IMPY : 0001 0101 1000 FQQQ : A-102 */
r6233r6234
35423637/* MOVE(P) : 0000 110W RRmp pppp : A-156 */
35433638static size_t dsp56k_op_movep_1(dsp56k_core* cpustate, const UINT16 op, UINT8* cycles)
35443639{
3545   // X:<Rx> and X:<pp>
3640   /* X:<Rx> and X:<pp> */
35463641   UINT16 W;
35473642   UINT16 pp;
35483643
r6233r6234
35713666      fatalerror("dsp56k : move(p) NOTHING HERE (yet)\n") ;
35723667   }
35733668
3574   // Postincrement
3669   /* Postincrement */
35753670   execute_m_table(cpustate, BITS(op,0x00c0), BITS(op,0x0020));
35763671
35773672   /* S L E U N Z V C */
r6233r6234
38513946/* TFR(2) : 0001 0101 0000 F00J : A-214 */
38523947static size_t dsp56k_op_tfr2(dsp56k_core* cpustate, const UINT16 op, UINT8* cycles)
38533948{
3949   typed_pointer S = {NULL, DT_BYTE};
3950   typed_pointer D = {NULL, DT_BYTE};
3951
3952   decode_JF_table(cpustate, BITS(op,0x0001), BITS(op,0x0008), &S, &D);
3953
3954   SetDestinationValue(S, D);
3955
38543956   /* S L E U N Z V C */
38553957   /* - * - - - - - - */
3856   return 0;
3958   /* TODO: L */
3959   cycles += 2;
3960   return 1;
38573961}
38583962
38593963/* TFR(3) : 0010 01mW RRDD FHHH : A-216 */
r6233r6234
38753979   /* (L,E,U should be set to 0) */
38763980   L_CLEAR();
38773981   E_CLEAR();
3878   // U_CLEAR();   /* TODO: Conflicting opinions?  "Set if unnormalized."  Documentation is weird (A&B?) */
3982   /* U_CLEAR(); */ /* TODO: Conflicting opinions?  "Set if unnormalized."  Documentation is weird (A&B?) */
38793983   if ((*((UINT16*)D.addr)) &  0x8000) N_SET(); else N_CLEAR();
38803984   if ((*((UINT16*)D.addr)) == 0x0000) Z_SET(); else Z_CLEAR();
3881   // V_CLEAR();   /* Unaffected */
3985   /* V_CLEAR(); */ /* Unaffected */
38823986   C_CLEAR();
38833987
38843988   cycles += 2;
r6233r6234
39284032   switch (cccc)
39294033   {
39304034      /* Arranged according to mnemonic table - not decoding table */
3931      case 0x0: if( C() == 0)                     retVal = 1;  break;  // cc(hs)
3932      case 0x8: if( C() == 1)                     retVal = 1;  break;  // cs(lo)
3933      case 0x5: if( E() == 0)                     retVal = 1;  break;  // ec
3934      case 0xa: if( Z() == 1)                     retVal = 1;  break;  // eq
3935      case 0xd: if( E() == 1)                     retVal = 1;  break;  // es
3936      case 0x1: if((N() ^  V()) == 0)               retVal = 1;  break;  // ge
3937      case 0x7: if((Z() | (N() ^ V())) == 0)         retVal = 1;  break;  // gt
3938      case 0x6: if( L() == 0)                     retVal = 1;  break;  // lc
3939      case 0xf: if((Z() | (N() ^ V())) == 1)         retVal = 1;  break;  // le
3940      case 0xe: if( L() == 1)                     retVal = 1;  break;  // ls
3941      case 0x9: if((N() ^  V()) == 1)               retVal = 1;  break;  // lt
3942      case 0xb: if( N() == 1)                     retVal = 1;  break;  // mi
3943      case 0x2: if( Z() == 0)                     retVal = 1;  break;  // ne
3944      case 0xc: if((Z() | ((!U()) & (!E()))) == 1)   retVal = 1;  break;  // nr
3945      case 0x3: if( N() == 0)                     retVal = 1;  break;  // pl
3946      case 0x4: if((Z() | ((!U()) & (!E()))) == 0)   retVal = 1;  break;  // nn
4035      case 0x0: if( C() == 0)                     retVal = 1;  break;  /* cc(hs) */
4036      case 0x8: if( C() == 1)                     retVal = 1;  break;  /* cs(lo) */
4037      case 0x5: if( E() == 0)                     retVal = 1;  break;  /* ec */
4038      case 0xa: if( Z() == 1)                     retVal = 1;  break;  /* eq */
4039      case 0xd: if( E() == 1)                     retVal = 1;  break;  /* es */
4040      case 0x1: if((N() ^  V()) == 0)               retVal = 1;  break;  /* ge */
4041      case 0x7: if((Z() | (N() ^ V())) == 0)         retVal = 1;  break;  /* gt */
4042      case 0x6: if( L() == 0)                     retVal = 1;  break;  /* lc */
4043      case 0xf: if((Z() | (N() ^ V())) == 1)         retVal = 1;  break;  /* le */
4044      case 0xe: if( L() == 1)                     retVal = 1;  break;  /* ls */
4045      case 0x9: if((N() ^  V()) == 1)               retVal = 1;  break;  /* lt */
4046      case 0xb: if( N() == 1)                     retVal = 1;  break;  /* mi */
4047      case 0x2: if( Z() == 0)                     retVal = 1;  break;  /* ne */
4048      case 0xc: if((Z() | ((!U()) & (!E()))) == 1)   retVal = 1;  break;  /* nr */
4049      case 0x3: if( N() == 0)                     retVal = 1;  break;  /* pl */
4050      case 0x4: if((Z() | ((!U()) & (!E()))) == 0)   retVal = 1;  break;  /* nn */
39474051   }
39484052
39494053   return retVal;
r6233r6234
39814085      case 0x18: ret->addr = &SSH; ret->data_type = DT_WORD;       break;
39824086      case 0x19: ret->addr = &SSL; ret->data_type = DT_WORD;       break;
39834087      case 0x1a: ret->addr = &LA;  ret->data_type = DT_WORD;       break;
3984      //no 0x1b
4088      /*no 0x1b  */
39854089      case 0x1c: ret->addr = &N0;  ret->data_type = DT_WORD;       break;
39864090      case 0x1d: ret->addr = &N1;  ret->data_type = DT_WORD;       break;
39874091      case 0x1e: ret->addr = &N2;  ret->data_type = DT_WORD;       break;
r6233r6234
41354239   }
41364240}
41374241
4242static void decode_JF_table(dsp56k_core* cpustate, UINT16 J, UINT16 F, typed_pointer* src_ret, typed_pointer* dst_ret)
4243{
4244   UINT16 switchVal = (J << 1) | F ;
4245
4246   switch (switchVal)
4247   {
4248      case 0x0: src_ret->addr = &A;  src_ret->data_type = DT_LONG_WORD;  dst_ret->addr = &X;  dst_ret->data_type = DT_DOUBLE_WORD;  break;
4249      case 0x1: src_ret->addr = &B;  src_ret->data_type = DT_LONG_WORD;  dst_ret->addr = &X;  dst_ret->data_type = DT_DOUBLE_WORD;  break;
4250      case 0x2: src_ret->addr = &A;  src_ret->data_type = DT_LONG_WORD;  dst_ret->addr = &Y;  dst_ret->data_type = DT_DOUBLE_WORD;  break;
4251      case 0x3: src_ret->addr = &B;  src_ret->data_type = DT_LONG_WORD;  dst_ret->addr = &Y;  dst_ret->data_type = DT_DOUBLE_WORD;  break;
4252   }
4253}
4254
41384255static void   decode_KKK_table(dsp56k_core* cpustate, UINT16 KKK, typed_pointer* dst_ret1, typed_pointer* dst_ret2, void* working)
41394256{
41404257   void *opposite = 0x00 ;
r6233r6234
44024519   switch(q)
44034520   {
44044521      case 0x0: /* No permanent changes */ ; return (*rX)+(*nX);
4405      case 0x1: (*rX)--;                  return (*rX);   // This one is special - it's a *PRE-decrement*!
4522      case 0x1: (*rX)--;                  return (*rX);   /* This one is special - it's a *PRE-decrement*! */
44064523   }
44074524
44084525   /* Should not get here */
r6233r6234
47034820   UINT16 temp = 0x0000 ;
47044821   int offsetCount = 0 ;
47054822
4706   // Shift everything right, eliminating 'whitespace'...
4823   /* Shift everything right, eliminating 'whitespace' */
47074824   for (i = 0; i < 16; i++)
47084825   {
4709      if (mask & (0x1<<i))      // If mask bit is non-zero
4826      if (mask & (0x1<<i))      /* If mask bit is non-zero */
47104827      {
47114828         temp |= (((retVal >> i) & 0x1) << offsetCount) ;
47124829         offsetCount++ ;
r6233r6234
47834900      case DT_WORD:        memory_write_word_16le(cpustate->data, destinationAddr, (UINT16)( (*((UINT16*)source.addr) & 0xffff)             ) ) ; break ;
47844901      case DT_DOUBLE_WORD: memory_write_word_16le(cpustate->data, destinationAddr, (UINT16)( (*((UINT32*)source.addr) & 0x0000ffff)         ) ) ; break ;
47854902
4786      // !!! Is this universal ???
4787      // !!! Forget not, yon shift-limiter !!!
4903      /* !!! Is this universal ??? */
4904      /* !!! Forget not, yon shift-limiter !!! */
47884905      case DT_LONG_WORD:   memory_write_word_16le(cpustate->data, destinationAddr, (UINT16)( ((*((UINT64*)source.addr)) & U64(0x00000000ffff0000)) >> 16) ) ; break ;
47894906   }
47904907}
r6233r6234
47984915      case DT_WORD:        memory_write_word_16le(cpustate->program, destinationAddr, (UINT16)( (*((UINT16*)source.addr) & 0xffff)             ) ) ; break ;
47994916      case DT_DOUBLE_WORD: memory_write_word_16le(cpustate->program, destinationAddr, (UINT16)( (*((UINT32*)source.addr) & 0x0000ffff)         ) ) ; break ;
48004917
4801      // !!! Is this universal ???
4802      // !!! Forget not, yon shift-limiter !!!
4918      /* !!! Is this universal ??? */
4919      /* !!! Forget not, yon shift-limiter !!! */
48034920      case DT_LONG_WORD:   memory_write_word_16le(cpustate->program, destinationAddr, (UINT16)( ((*((UINT64*)source.addr)) & U64(0x00000000ffff0000)) >> 16) ) ; break ;
48044921   }
48054922}
src/emu/cpu/tms32010/32010dsm.c
r6233r6234
255255   }
256256   if (op == -1)
257257   {
258      sprintf(buffer,"???? dw %04Xh",code);
258      sprintf(buffer, "dw   $%04X (invalid op)", code);
259259      return cnt | DASMFLAG_SUPPORTED;
260260   }
261261   buffertmp = buffer;
src/emu/cpu/z80/z80.c
r6233r6234
33163316      /* if neither of these were found we assume a 1 byte opcode */
33173317      /* was placed on the databus                                */
33183318      LOG(("Z80 '%s' IM0 $%04x\n", z80->device->tag, irq_vector));
3319
3320      /* check for nop */
3321      if (irq_vector != 0)
3319      switch (irq_vector & 0xff0000)
33223320      {
3323         switch (irq_vector & 0xff0000)
3324         {
3325            case 0xcd0000:   /* call */
3326               PUSH(z80, pc);
3327               z80->PCD = irq_vector & 0xffff;
3328                /* CALL $xxxx cycles */
3329               z80->icount -= z80->cc_op[0xcd];
3330               break;
3331            case 0xc30000:   /* jump */
3332               z80->PCD = irq_vector & 0xffff;
3333               /* JP $xxxx cycles */
3334               z80->icount -= z80->cc_op[0xc3];
3335               break;
3336            default:      /* rst (or other opcodes?) */
3337               PUSH(z80, pc);
3338               z80->PCD = irq_vector & 0x0038;
3339               /* RST $xx cycles */
3340               z80->icount -= z80->cc_op[0xff];
3341               break;
3342         }
3321         case 0xcd0000:   /* call */
3322            PUSH(z80, pc);
3323            z80->PCD = irq_vector & 0xffff;
3324             /* CALL $xxxx + 'interrupt latency' cycles */
3325            z80->icount -= z80->cc_op[0xcd] + z80->cc_ex[0xff];
3326            break;
3327         case 0xc30000:   /* jump */
3328            z80->PCD = irq_vector & 0xffff;
3329            /* JP $xxxx + 2 cycles */
3330            z80->icount -= z80->cc_op[0xc3] + z80->cc_ex[0xff];
3331            break;
3332         default:      /* rst (or other opcodes?) */
3333            PUSH(z80, pc);
3334            z80->PCD = irq_vector & 0x0038;
3335            /* RST $xx + 2 cycles */
3336            z80->icount -= z80->cc_op[0xff] + z80->cc_ex[0xff];
3337            break;
33433338      }
3344
3345      /* 'interrupt latency' cycles */
3346      z80->icount -= z80->cc_ex[0xff];
33473339   }
33483340   z80->WZ=z80->PCD;
33493341}
src/emu/attotime.h
r6233r6234
433433
434434INLINE int attotime_is_never(attotime _time)
435435{
436   return (attotime_to_double(_time) == (double)ATTOTIME_MAX_SECONDS);
436   return (_time.seconds >= ATTOTIME_MAX_SECONDS);
437437}
438438
439
439440#endif   /* __ATTOTIME_H__ */
docs/messnew.txt
r6233r6234
10.134.1
10.135
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
r6233r6234
298298
299299Source Changes:
300300----------------
301- The core is based on MAME 0.134u4.  This incorporates all features of the
301- The core is based on MAME 0.135.  This incorporates all features of the
302302  update to this core.  [MAME team]
303303
304304- Moved floppy implementation to device.  [Miodrag Milanovic]
r6233r6234
317317  implemented inside machine software not a MESS code [Miodrag Milanovic]
318318
319319
320
3203210.134
321322
322323New System Drivers Supported (in no particular order):
whatsnew.txt
r6233r6234
10.134
10.135
22-----
33
44
55MAMETesters Bugs Fixed
66----------------------
7- 03433: [Misc.] Jolly Card, Royal Card, Lucky Lady, Royal Vegas sets
8         (and others)...: All games that need NVRAM initialized aren't
9         working anymore. (Roberto Fresca)
10- 03434: [Sound] dingo: Sound is messed up (couriersud)
11- 03432: [Sound] circusc and clones: Partially missing sounds.
12         (couriersud)
13- 03430: [Crash/Freeze] Drivers having empty INPUT definitions:
14         Access Violation (Curt Coder)
7- 03378: [DIP/Input] kamakazi3: Unable to use normal coin slots (coin
8         lockout) (Luigi30)
9- 03496: [Sound] mouja: Sound Effects/Voice missing (Mamesick)
10- 03423: [Crash/Freeze] acpsx, atpsx, atluspsx, cpzn1, cpzn2, psarc95,
11         taitofx1, tps, vspsx : Access Violation (Fabio Priuli)
12- 03425: [Crash/Freeze] taitogn: Access Violation before typing OK.
13         (Fabio Priuli)
14- 03424: [Crash/Freeze] chihiro, triforce: Access Violation before
15         typing OK (Fabio Priuli)
16- 03490: [Crash/Freeze] quasar, quasara: Segmentation Fault after OK
17         (Fabio Priuli)
18- 03491: [Crash/Freeze] dynobop, sstrike, slikshot, slikshot17,
19         slikshot16 : Access Violation after OK (Phil Bennett)
20- 03487: [Crash/Freeze] All Drivers using z180 cpu: Access Violation
21         (Phil Bennett)
1522
1623
1724
1825Source Changes
1926--------------
20Partial fix to CIA timer: avoid timer's desync in read count
21operation. [robiza]
27Changed sound banking on Shogun Warriors/B.Rap Boys to use an
28OKIM6295 address map and banks [David Haywood]
2229
23Fixed access violation in MESS skeleton drivers with empty
24INPUT_PORT sections. [Curt Coder]
30Removed the MCU comm hack from namcofl/namconb. This now fixes the
31music tempo in most games. [Phil Bennett]
2532
26[Z8] Fixed disassembler argument order. [Curt Coder]
33Fixed vroulet controls so that the Red column can be selected.
34[luigi30]
2735
28MAMEUI uses input_seq_from_tokens() outside the context of a running
29emulation, so this code will crash if machine == NULL and the
30keycode was not a built in keycode. Changed this so that it will
31gracefully fail if machine == NULL. [Nathan Woods]
36680x0 update: [R. Belmont]
37 - Support PMOVE modes from PMMU
38 - Allow the FPU to be used for both '030 and '040
39 - Add byte and word FPU loads/stores
40 - Fixed buggy FPU 64-bit stores in the (An) addressing mode
3241
33Naomi/AW: Enforce read-only status of PowerVR ID registers.
42chdman: add option to create uncompressed writeable HD images for MESS
3443[R. Belmont]
3544
36Added debug_global_input_code_pressed() for use in debugging.
37[Aaron Giles]
45scsihd: don't crash if no media is attached [R. Belmont]
3846
39Remove remaining references to machine->cpu[n]. Removed cpu[n] array.
40Replaced with machine->firstcpu which is a fast access to the head
41of the list of CPUs. [Aaron Giles]
47More goldstar.c improvements... [Roberto Fresca]
48 * Completed the New Lucky 8 Lines / New Super 8 Lines hardware/PCB
49    layout.
50 * Added New Lucky 8 Lines (set 3, extended gfx).
51    This set has the New Lucky 8 Lines / New Super 8 Lines program, so
52    bets are up to 64. Same extended tileset for reels, but lacks of
53    the New Super 8 Lines title tiles. Maybe is a hidden feature,
54    maybe just graphics for another hack.
55 * Added technical notes.
4256
43Minor cleanup of machine/generic.c. Changed watchdog_read handlers to
44return the address space's unmapped value rather than 0xff.
45[Aaron Giles]
57Added abort button to sfrush [Arthur Peale]
4658
47Fixed CIA PRA, PRB, DDRA, DDRB ports. [robiza]
59Updated mt_tout CRC/SHA1 and added note about old, likely bad dump
60[David Haywood]
4861
49Added discrete sound to the Noraut Poker games.
50[Derrick Renaud, Roberto Fresca]
62Added missing dependencies for video/model2.c and video/model3.c
63[Phil Bennett]
5164
52Funworld.c changes: [Roberto Fresca]
53 * Discovered and documented new features in Jolly Card (Evona
54    Electronics).
55 * Removed the commented hack for joly980 driver init since is not
56    needed anymore.
57 * Fixed a bug introduced with the massive input change, that didn't
58    allow initialize all sets that need the normal procedure to do it.
59 * Updated technical notes.
65Fixed recent sprite breakage in some toaplan2 video HW-based games.
66[Phil Bennett]
6067
61PIC16C5x CPU - Fixed the T0CKI count input being controlled by the
62wrong edge sensing. [Quench]
68Added later version of Naomi analog I/O board program [Alex]
6369
64SNES: Added emulation for the DSP-3 and DSP-4 add-on chips, based on
65latest ZSNES [ZSNES Team, Fabio Priuli]
70Changes to the dsp56156 cpu core. [Andrew Gardner]
71 * Added JF table decode function.
72 * Added ABS, IMAC, and TFR2 opcodes.
73 * Fixed various flags for TST, INC24, SUB, CMP, and CMPM.
74 * Added hack to DO function to accommodate for the CPU core's
75    inaccurate math.
6676
67G65816: Fixed a bug with SBC opcode N flag behaviour in Decimal Mode.
68[Angelo Salese]
77Galaxian driver changes: [luigi30]
78 * Crystallized some clock speeds, put ?s near ones that didn't look
79    correct
80 * Changed references to galaxiaj in game names to galaxiana
6981
70Segas24 rom games don't have NVRAM; fixed nvram_save writing 0KB
71file. [hap]
82Re-added 2nd button back to ddayc [David Haywood]
7283
7368681/2681 duart: When a channel is in loopback mode, do not actually
74transmit bytes sent to that duart channel over the TX pin.
75[Lord Nightmare]
84Documentation update for the Seibu COPDX-based games. Renamed
85sdgndmrb to grainbow. [David Haywood]
7686
77Hooked up F6 again as a global cheat enable/disable. [Pugsy]
87Updated most tools in src/tools to be straight BSD license.
88[Aaron Giles]
7889
79i386 fixes: [Gabriele Gorla]
80 - Add missing arpl instruction
81 - Fixed BCD carry
82 - Fixed disassembly of group D8 when modrm > 0xc0
83 - Add fucompp instruction to disassembler
90Added -flipped option to unidasm to output with disassembly first and
91address/data bytes afterwards in comment form. [Aaron Giles]
8492
85Added "increase or equal" and "decrease or equal" options to the new
86cheat commands. [Sandro Ronco]
93Changed 32010 unknown opcode to output in $xxx format like all other
94hex values. [Aaron Giles]
8795
88Added helper function core_i64_hex_format. Replaced several printf
89cases in the debugger with this function to avoid runtime differences
90on older Windows systems. Also fixed up some error logging messages
91to output the correct number of characters for addresses and data,
92using the new function. [Aaron Giles]
9396
94Added missing static and const qualifiers, and fixed up some header
95files. [Atari Ace]
9697
97
98
9998New games added or promoted from NOT_WORKING status
10099---------------------------------------------------
101Povar / Sobrat' Buran / Agroprom [Mariusz Wojcieszek]
102Czernyj Korabl [Mariusz Wojcieszek]
103Brodjaga [Mariusz Wojcieszek]
100Mahjong Seiryu Densetsu [Luca Elia, Guru, Dyq, Bnathan]
101Mahjong Daimyojin [Luca Elia, Guru, Dyq, Bnathan]
104102
105103
106104
1070.133u5
108-------
105New clones added
106----------------
107Pinball Action (set 5, encrypted) [f205v]
108Hyper Sports (bootleg) [f205v, David Haywood]
109Darkstalkers: The Night Warriors (Hispanic 940818) [Artemio]
110Gran Premio F1 (Italian bootleg of Pole Position II)
111   [f205v, David Haywood]
112Scramble (Karateko, French bootleg) [Joachim Bassmann]
113Super Breakout (rev 03) [Andy Welburn, Lord Nightmare]
114New Lucky 8 Lines (set 3, extended gfx)
115   [Roberto Fresca, Darklord & Team Europe]
109116
110117
111MAMETesters Bugs Fixed
112----------------------
113- 03240: [Crash/Freeze] topracra: Error Message: devcb_resolve_read8:
114         unable to find input port 'IN0L' (couriersud)
115- 03426: [Sound] wtennis: Missing ball sound (Tafoid)
116- 03422: [Graphics] porter: Missing in-game graphics (Tafoid)
117- 03421: [Crash/Freeze] samuraia, sngkace: Access Violation (hap)
118- 03420: [Crash/Freeze] espial, espialu, netwars: Access Violation
119         (hap)
120- 03416: [Crash/Freeze] bradley: Exits with DISCRETE_ADJUSTMENT_TAG -
121         NODE_88 has invalid tag. (couriersud)
122- 03418: [Crash/Freeze] dday, ddayc: Access Violation after coin
123         insertion (M.A.S.H.)
124- 03025: [Sound] bzone, bzone2, bzonec: inaccurate sound effects
125         (couriersud)
126- 03413: [Compiling] 64-bit compiler warnigs (Aaron Giles)
127- 03391: [Misc.] popn2 & bmclubmx: CHD version is V3 for the two new
128         added sets (hap)
129- 03073: [Sound] scorpion, scorpiona, scorpionb: Sound Missing
130         (couriersud)
131- 03075: [Sound] explorer: Sound Missing (couriersud)
132118
119New games marked as GAME_NOT_WORKING
120------------------------------------
121Tournament Solitaire [Angelo Salese, Siftware]
122Airline Pilots DX [ANY, The Dumping Union]
133123
134124
135Source Changes
136--------------
137Discrete sound updates: [couriersud]
138 - Fix comments for DISCRETE_TRANSFORM
139 - FatalError if formula is bad
140 - Fixed two bugs in DISCRETE_RCDISC3
141 - Fix some ugly bugs around DISCRETE_FILTER_SW:
142    - No more iterations
143    - The CD4066 internal resistance largely determines sound
144       amplitude. This may vary significantly depending on VCC and
145       type (74HC, 74HCV, CD4066, ...). The current choice makes
146       scramble sound "about right".
147 - Added some profiling code for discrete tasks
148 - Added DISCRETE_INPUT_BUFFER to use a stream to buffer an input
149    node. For input nodes with a lot of writes this prevents a
150    stream_update on the whole discrete module which is very
151    ineffective. Instead, the data is buffered and the discrete
152    emulation can process a lot of samples in one go later.
153 - Added disc_syc.c as a container for core modules (output, task)
154 - Discrete wav and csv logs now are treated as nodes
155 - Added DISCRETE_START and DISCRETE_STOP functions to be called at
156    device start/stop
157 - As a side effect, profiling measures log overhead as well
158 - DSO_TASK_END now builds it's own dependence list.
159    - now simply DSO_TASK_END() ends a task
160 - added node parameter to RC_(DIS)CHARGE_EXP
161 - added const where appropriate
162 - removed some dead code
163125
164Color bprom verified correct Royal Card Pro v2. [Team Europe]
1260.134u4
127-------
165128
166De-globalified sound.c and input.c. [Atari Ace]
167129
168Improvements to Noraut Poker driver.... [Roberto Fresca]
169 * Corrected CPU clock to Xtal/8.
170 * Discovered 3 new I/O lines coming from PPI-2, PC0-PC2. They are
171    mixed with the handshake ones.
172 * Added the READOUT button to noraut12 games.
173 * Splitted the main machine driver to cover 2 different Noraut
174    systems.
175 * Added partial support for PPI-2, PC0-PC2 output lines on noraut11
176    games.
177 * Figured out other remaining I/O lines.
178 * Added new handlers to simulate the handshake lines. Still need
179    real support through PPI-2.
180 * Updated technical notes.
181 * Rerouted norautp and norautjp READOUT button to its own place.
182 * Routed the whole video RAM access through PPI-2.
183   (bypassed the handshake lines for now).
184 * Merged back the noraut machine drivers after the 3rd PPI connection.
185 * Added Low Level Hopper manual input.
186 * Added a new machine driver for extended hardware.
187   It has 2 jumpers that cut the a14 and a15 addressing lines.
130MAMETesters Bugs Fixed
131----------------------
132- 03475: [Crash/Freeze] exprraid: Game freezes after insert coins
133  while playing (Angelo Salese)
188134
189Fixed i386 carry/borrow flag in ADC/SBB [Gabriele Gorla]
190135
191Fixes to the PIC16C5x CPU core: [Quench]
192 - Indirect addressing was not taking into account special purpose
193    memory mapped locations.
194 - 'iorlw' instruction was saving the result to memory instead of
195    the W register.                               
196 - 'tris' instruction no longer modifies Port-C on PIC models that do
197    not have Port-C implemented.
136Source Changes
137--------------
138Discrete sound improvements: [couriersud]
139 - DSS_INVERTER_OSC optimizations
140 - OSD_PROFILING is now an environment variable. No more recompiling
141    to turn profiling on
142 - Added two asserts to task processing
198143
199Added difficulty DIP to BigTwin. [Quench]
144Updated beaminv.c driver, in attempt to fix MT bug 03473. [stephh]
200145
201Battery backed 2KB RAM, fixing the default high-scores in speedbal.
202[Pierpaolo Prazzoli]
146Draw Poker Hi-Lo - added discrete sound. [Derrick Renaud]
203147
204Shogun Warriors - various fixes:
205 - Extracted tables required for Shogun Warriors to work
206    [Tomasz Slanina]
207 - Decrypted + verified table data for Shogun Warriors [David Haywood]
208 - Marked 2 graphic roms in Shogun Warriors as BAD_DUMP [David Haywood]
209 - Temporarily added a hack to the collision function to only use the
210    B.Rap Boys code if the game is B.Rap Boys until we have a single
211    function that works with both [David Haywood]
148Relaxed romcmp filename length restriction. [Philip Bennett]
212149
213SuperFX updates [Anonymous]
214 - Fixed disassembly of LMULT/FMULT ops
215 - Fixed reads using LDW/LDB
216 - Fixed writes using STW/STB
217 - Fixed SBC carry behavior
218 - Fixed GETC ROM access behavior
219 - Some SuperFX games begin to show things in MESS
220 - At least partly fixed PLOT and RPIX behavior. This fixes many gfxs
221    in Star Fox and Vortex, but no polys yet.
150Blue Shark - added shark sound. [Derrick Renaud]
222151
223Simplified kaneko16 decryption functions by working out what each of
224the bits does and removing game specific references. Re-based the
225decryption tables as a result. End result is verified to be the same.
226[David Haywood]
152Fixed Sega System 16 ROM names according to real machine, and
153corrected game version description for Alien Syndrome and SDI.
154[Team Japump!!!]
227155
228Added redumped u6 GFX rom to kaneko16, fixes Geisya and Sumo [Guru]
156Fixed TRIG3 register handling in GTIA for Atari XL/XE.
157[Mariusz Wojcieszek]
229158
230Fix circus charly slowdowns: [couriersud]
231 - use SOUND_DAC device to "buffer" data and avoid 1 sample updates
232    for discrete part
233 - this is related to "03401: circusc and clones: Slowdown in
234    attract mode with DIP SW "Demo Sounds=ON"" though I do not
235    consider it a bug, but a implementation optimization.
159Noraut/DPHL driver improvements: [Roberto Fresca]
160 * Added Draw Poker Hi-Lo (japanese), based on 8080A CPU.
161 * Merged the gtipoker memory map and machine driver with dphl.
162 * Created a base machine driver and then derivatives by hardware.
163 * Splitted the regular RAM and NVRAM systems.
164 * Added 'Hi-Lo Double Up Joker Poker' from SMS Manufacturing.
165 * Added smshilo hardware details and PCB layout.
166 * Added smshilo discrete sound circuitry scheme/documentation.
236167
237Fixed sound banking for Shogun Warriors [David Haywood]
168i386: implemented SLDT & STR opcodes. [Angelo Salese]
238169
239Added different TOD implementation for CIA6526 and CIA8520. [robiza]
170scsihd updates: [R. Belmont]
171 - Fixed parameter interpretation for READ(10) and READ(12)
172 - Added WRITE(10)
240173
241Fixed a small bug with kaneko16 graphic decoding and removed old
242comment about bad sound banking. [David Haywood]
243
244SuperFX updates: [Harmony]
245 - Inlined a number of functions for possible speed increase
246 - Removed some memory buffering cruft, to be re-added later
247 - Fixed behavior of ASR opcode
248 - With additional MESS-side changes, Stunt Race FX is playable, and
249    Vortex shows much more.
250 - Hooked up RAM and ROM buffering
251 - Inlined several more functions
252 - Removed debug spew
253 - Added the ability to define an external IRQ line callback, and
254    hooked it up to the 65C816
255 - Fixed flag calculation for HIB opcode
256 - Hooked SuperFX chip up to the SNES machine driver
257 - Fixed carry handling in ADC, ADCI, SBC and SBCI opcodes. Fixes many
258    SNES SuperFX bugs.
259
260Added some basic cheat search functionality to the debugger, allowing
261searches on various memory sizes. [Sandro Ronco]
262
263Added 'Reload All' option to the cheat menu. [Pugsy]
264
265Enabled display of cheat comments from within the cheat menu. Press
266the SPACE key to toggle display. [Pugsy]
267
268Tweaked the shadows in twin16 to be slightly darker. [hap]
269
270Added new function mame_fclose_and_open_next() which will close a
271file and then keep searching the searchpath for the next valid file.
272Did some internal rearranging in fileio.c to make this work.
273[Aaron Giles]
274
275Changed cheat search so that it loads *all* cheat files in all search
276paths. Note that it is easy to end up with duplicate entries this way.
277Some currently disabled code is present which filters out duplicates,
278but the logic for doing this is quite unclear with the presence of
279text-only cheats, which is why the code is disabled for now.
280[Aaron Giles]
281
282M377xx: fix CLB/SEB when not in bank 0. [R. Belmont]
283
284Fixed numerous opcodes in the AVR8 core [Harmony]
285
286Enabled alternate register naming in the MIPS core [Harmony]
287
288Add loopback mode and counter/timer modes 3 and 6 to 68681 DUART,
289self-tests now pass in dectalk in MESS. [Lord Nightmare]
290
291SNES updates: [R. Belmont, Harmony]
292 - Corrected ROM loading behavior for SuperFX games
293 - Added more ROM mirroring needed by certain SuperFX 2 games
294 - Corrected the behavior of certain bit-restricted SuperFX registers. 
295    Doom, Yoshi's Island, Dirt Trax FX and Voxel Demo show things now.
296 - Improved S-DD1 emulation, neither game using S-DD1 boots yet
297
298Added preliminary Zilog Z8 CPU core for MESS. [Curt Coder]
299
300Cleaned up drivers that write files which are not being actively
301developed. Also, commented our or changed the printf-ing of some
302messages to LOGERROR. [Tafoid]
303
304Made numerous corrections to SNES S-DD1 chip emulation, SFA2 and
305Star Ocean still do not boot [Harmony]
306
307Golden Poker driver... [Roberto Fresca]
308 * Added 2 new Witch Card sets.
309 * Reworked inputs for Witch Card (german set 1).
310 * Created new inputs for Witch Card (english, witch game, lamps).
311 * Added and connected lamps for both sets.
312 * Added minimal bet and 50/60 Hz. switches to both sets.
313 * Added DIP switches info for Witch Card (german, set 2).
314
315Added missing rom to a GEI Poker set [Team Europe, Dumping Union]
316
317Naomi/Atomiswave video hardware update: [David Haywood]
318
319  Basically the region array is processed, and the data from the
320  accumulation buffer where we render is now copied into the
321  framebuffer depending on the tiles specified in the tile list. 
322  This isn't full 'tile-based rendering' as that would require more
323  work on the preprocessing side, and writing out the data pointers
324  and data in real formats, however it's a step in the right direction
325
326  Currently only 565 formats are supported for both framebuffer write
327  and framebuffer read.  The accumulation buffer is alwys 8888, data
328  is converted down to the specified format.  The real accumulation
329  buffer is 32x32 and filled per tile, ours is still full screen.
330
331  The video update now just displays the framebuffer using the
332  framebuffer read parameters specified (again only 565 is currently
333  supported)  This allows the Atomiswave bios screens and the
334  rendered output to co-exist.
335
336Added proms to scherrym [Team Europe]
337
338Jaguar updates: [Robbbert]
339 - Added RGB 24-bit pixels (for Iron Soldier)
340 - Added depth 0 and 1 to scaled bitmaps (for Val Disere Skiing)
341 - Preliminary work on PIT support
342
343Got vandykeb up and running. [iq_132]
344
345Added verbose debug logging for the little robin 'vdp' writes in
346preparation for looking at it further. [David Haywood]
347
348Improved the connect4 layout. [AGEMAME]
349
350Fixed the plane order in the gfx deodes for Black Touch '96 sprites,
351and Poke Champ sprites. [David Haywood]
352
353Improveed the sprite emulation in Black Touch '96 (still wrong tho).
354[David Haywood]
355
356Fixed LOOP instructions in 16-bit mode in the i386 core.
357[Gabriele Gorla]
358
359Added various notes + checksums for Chihiro board.
360[Alex's Rom Dumping Project, Mr Mudkips, Philip Burke]
361
362Fixed stupid unidasm bug that double-counted bytes. [Aaron Giles]
363
364Major Naomi/Atomiswave update:
365 - Emulated Atomiswave coin slots and standard Dreamcast controller.
366    Non-lightgun games without other problems are now playable.
174Naomi updates:
175 - Hackish support for 8888 tiles (Shootout Pool displays something).
367176    [R. Belmont]
368 - Added protection data to Moero Justice Gakuen, Heavy Metal
369    Geomatrix, WWF Royal Rumble, Gigawing 2, Toy Fighter, and Guilty
370    Gear X (all are now playable but still marked GAME_NOT_WORKING
371    due to general Naomi concerns).
372    [R. Belmont, Guru, Deunan Knute, Cah4e3]
373 - Completed partial dumps: Derby Owners Club II, Slashout, WWF
374    Royal Rumble, Gigawing 2, Moero Justice Gakuen, Wild Riders,
375    Virtua Fighter 4 (cartridge) [Guru]
177 - Increased number of JVS analog channels for driving games
178    [R. Belmont]
179 - Protection data added for Crazy Taxi, Jambo! Safari, and Virtua
180    Tennis 2 [Deunan Knute, ANY]
376181
377Rename osd_profiling_ticks() to get_profile_ticks(). Moved
378implemention into inline functions in eminline.h and the ei*
379functions. [couriersud, Aaron Giles]
182Added PCB layouts of Bingo Roll / Bell Star (4 sets) [Team Europe]
380183
381Added 'options' parameter to the CPU_DISASSEMBLE prototype. For now,
382the debugger always passes 0 for this. unidasm has been updated to
383accept a mode parameter, which is passed for the options.
384[Aaron Giles]
184Added Xtal location and values to Bingo Roll / Bell Star hardware/PCB
185layouts. [Roberto Fresca]
385186
386Added PORT_CROSSHAIR_MAPPER() allowing you to specify an alternate,
387non-linear mapping function from the raw crosshair value to its
388position onscreen. [Aaron Giles]
187Added Multi Game I (V.Ger 2.4) PCB layout. [Team Europe]
389188
189Mario - converted final mixing stage to DISCRETE_MIXER. This adds the
190missing filtering on the walking sounds. [Derrick Renaud]
390191
192Fixed dsp56156 DO & BSCC opcode bugs.  [Andrew Gardner]
391193
392New games added or promoted from NOT_WORKING status
393---------------------------------------------------
394Shogun Warriors / Fujiyama Buster
395  [David Haywood, Tomasz Slanina, Luca Elia]
396Cal Omega - Game 7.4 (Gaming Poker, W.Export)
397  [Roberto Fresca, Team Europe]
398Kero Kero Keroppi no Issyoni Asobou [Team Japump!!!, Hau]
399Dolphin Blue [R. Belmont, Guru]
400The Rumble Fish [R. Belmont, Guru]
401Knights of Valour: The Seven Spirits [R. Belmont, Guru]
194Refactored Z80CTC to use devcb. Emulated coin flag flip-flop in
195Cosmic Chasm. [Curt Coder]
402196
197DISCRETE_RC_CIRCUIT_1 - promoted skyraid custom charge to it's own
198module so it could be used with the same circuit in Battlezone.
199[Derrick Renaud]
403200
201Battlezone - updated to use new module. Adjusted sound levels.
202Adjusted engine frequency. Remember there is a slider to adjust the
203frequency. [Derrick Renaud]
404204
405New clones added
406----------------
407Karate Champ (US, VS version set 2) [Siftware]
408Strong X (Strategy X bootleg) [Siftware]
409Mortal Kombat (Turbo 3.1 09/09/93, hack)
410  [Jonathan Hughes, Patrick McCarron]
411Narc (Rev 2.0) [Volker Hann, Team Europe]
412Witch Card (english, witch game, lamps) [Roberto Fresca, Team Europe]
413Master Ninja (bootleg of Ninja Gaiden) [f205v, David Haywood]
414  (NOT WORKING)
205Donkey Kong Jr. - set noise clock to a fixed measured frequency.
206(Speed optimization) [Derrick Renaud]
415207
208Removed most remaining instances of statically initialized variables,
209improving multisession support. [Atari Ace]
416210
417New games marked as GAME_NOT_WORKING
418------------------------------------
419Mr. Driller 2 (DR22 Ver.A) [Guru]
420The House of the Dead 2 [Guru]
421Super Major League '99 [Guru]
422Gun Survivor 2: Bio Hazard Code Veronica [Guru]
423Club Kart: European Session [Guru]
424The King of Fighters Neowave [R. Belmont, Guru]
425Neo Geo Battle Coliseum [R. Belmont, Guru]
211Removed dead function prototypes. [Atari Ace]
426212
213Swapped ddp2/ddp2a program ROMs around to match set descriptions.
214[Lei Wu]
427215
216Fixed a couple of source typos. [Christophe Jaillet]
428217
4290.133u4
430-------
218Added Chihiro BIOS loading. [Alex, Paul Hogger, David Alves,
219   Hugo Cesar Somellera Calderon, Jeremy Ostrowski, Daniel Palmer]
431220
221Fixed crimfght 4P version inputs. [Arthur Peale]
432222
433MAMETesters Bugs Fixed
434----------------------
435- 03405: [Misc.] trckydoc trckydoca: Default hiscore wrong
436         (Pierpaolo Prazzoli)
437- 03412: [Gameplay] goindol and clones: Unable to control and graphics
438         corrupted (Tafoid)
439- 03404: [Crash/Freeze] Some drivers using mc6845.c: Access Violation
440         (hap)
441- 01043: [DIP/Input] m79amb: There's considerable difficulty in aiming
442         in the game. (hap)
443- 01754: [Graphics] tm7k, tm, tm3k, tm4k, tm5k: Background Color/
444         Palette Incorrect (Luca Elia)
445- 02191: [Sound] wseries, basebal2, dblplay, strkzone: Speech quality
446         regression (couriersud)
447- 02608: [Color/Palette] machomou: Colors are wrong. (hap)
223Added colour proms to Seta / Visco Roulette. [Team Europe]
448224
225Sped up ertictac driver VIDEO_UPDATE. [Christophe Jaillet]
449226
227Minor speed improvement to the e132xs core - don't pass opcode
228parameter when calling instruction handlers. [Christophe Jaillet]
450229
451Source Changes
452--------------
453Intel 8085: [Curt Coder]
454 - refactored callbacks to use devcb
455 - added 8080A variant
230Added two-sided polygon flag and back-face culling to Model 3 video
231emulation. [Naibo Zhang]
456232
457Added helper macros to devcb for input lines tied to GND/Vcc.
458[Curt Coder]
233Changed stepstag set description to Stepping Stage Special.
234[Naibo Zhang]
459235
460Added Dirt Dash wave ROM redumps [Guru]
236Added verified PAL dump to Tokio/Scramble Formation.
237[Corrado Tomaselli]
461238
462Battle Zone discrete sound & discrete sound additions: [couriersud]
463 - added discrete sound to battle zone
464 - engine frequency (resistor R11) can be changed with slider
465 - discrete sound may be disabled by setting BZONE_DISCRETE to 0 in
466    bzone.h
239Verified on PCB all the clocks for Mikie, changed the M6809 clock to
2401.536MHz and Vsync to 60.59Hz. Changed the sound chips to variant
241SN76489A which are the ones on the PCB. [Corrado Tomaselli]
467242
468Discrete sound improvements: [couriersud]
469 - DISCRETE_RCDISC3: added diode junction voltage; junction voltage
470    also indicates polarity
471 - DISCRETE_OPAMP_FILTER: added type
472    DISC_OP_AMP_FILTER_IS_LOW_PASS_1M; INP2 takes role of v_ref in
473    this type
474 - DISCRETE_OPAMP: fixed a bug (possible divide by 0)
475 - DISCRETE_LFSR: fixed bug preventing output of shift reg to sub
476    node 1
243Naomi: add protection data for 18 Wheeler [Deunan Knute, ANY]
477244
478SNES improvements: [Angelo Salese]
479- Fixed half colour blending behaviour
245DISCRETE_COUNTER - added MIN parameter and optimized speed.
246[Derrick Renaud]
480247
481Added infrastructure to compile universal standalone disassembler:
482[Aaron Giles]
483 - added unidasm to the tools build
484 - split the disassemblers out of libcpu and into new libdasm
485 - ensured the disassembly entry points for all disassemblers are
486    in the source file for the disassembler (sometimes new generic
487    versions were created)
248naomi: added 18 Wheeler JVS I/O and motor controller dumps.
249[Gerald (COY)]
488250
489Improvements to Noraut Poker driver... [Roberto Fresca]
490 * Switched to pre-defined Xtal clock.
491 * Changed the way how graphics are banked/accessed.
492 * Fixed the graphics offset and number of tiles per bank.
493 * Added new set: Noraut Red Hot Joker Poker.
494 * Added new set: Noraut Poker (NTX10A).
495 * Added new set: Noraut Joker Poker (V3.010a).
496 * Fixed the tile size/decode for the first GFX bank.
497 * Added proper norautrh inputs, including the readout button.
498 * Added partial DIP switches to norautrh.
499 * Added an extra DIP switch to Noraut Red Hot Joker Poker.
500 * Also added DIP locations to the whole bank.
501 * Added a default NVRAM for Noraut Joker Poker
502 * Executed a trojan on 2 noraut systems to confirm the way 16x32
503    tiles are decoded.
504 * Fixed the x-offset for 32x32 tiles lines.
505 * Fixed the screen aspect and visible area.
506 * Confirmed correct colors. No bipolar PROM involved.
507 * Added Noraut Joker Poker hardware and PCB layouts.
508 * Documented the discrete audio circuitry. Added a full diagram.
509 * Fixed the coin counters.
510 * Documented all the output ports.
511 * Added a scheme with descriptions for every existent port.
512 * Added full lamps support to naroutp, naroutjp, naroutrh and naroutpn.
513 * Created lamps layouts for 11 and 12-lamps scheme.
514 * Rerouted some inputs to mantain the inputs layout.
515 * Renamed some inputs to match the text with the real cab buttons.
516 * Removed the imperfect colors flag from the existent sets.
517 * Added 2 different control panel layouts to the source.
518 * Updated technical notes.
251Added helper macro for CDP1864 screen creation. [Curt Coder]
519252
520Fixed redundancy in clock speed assignments in some drivers by
521cleaning all divided by 1 (/1) instances. [Tafoid]
253Added PROM dumps to starfire and fireone. [TrevEB]
522254
523Argonaut SuperFX core improvements: [Anonymous]
524 - Hooked up Branch instructions
525 - Fixed numerous SuperFX core bugs.
526 - Improved disassembler to more gracefully handle ALT* opcode effects.
527 - Corrected instruction behaviors: STOP, SUB, SBC, SUBI, CMP
528 - Added LSR and ROL opcodes
529 - Updated instructions to use the safer superfx_gpr_write: LOOP,
530    PLOT, INC, DEC
531 - Added missing register writeback to LMS
532 - Corrected carry flag behavior in ROL opcode
533 - Corrected BRA target address calculation (maybe still wrong)
534 - Corrected LOOP target address calculation
535 - Made sure that FROM sets cpustate->sreg_idx
536 - Disabled RAM/ROM clocking, going with instant transfer for now
537 - Understood and re-enabled pipelined instruction architecture, Star
538    Fox runs farther
539 - Fixed a ridiculous typo in ROL instruction
540 - Fixed overflow flag calculation on ADDI / ADCI
541 - Fixed lack of register reset after ADD / ADC / ADDI / ADCI
255Battlezone - set unclipped volume to 50% slider position. This allows
256you to drive the audio into clipping like a real game.
257[Derrick Renaud]
542258
543tmaster.c update [Luca Elia]
544- implemented carts banking and multiple EEPROMs
545- added "pen replacement" blit mode
546- fixed palette size
259Added helper macro for CDP1869. [Curt Coder]
547260
548Discrete work [couriersud]
549 - change the way custom modules are handled
550 - updated drivers mario and dkong accordingly
551 - minor change to stream input handling
552 - no more linear lists for nodes. All node processing switched to
553    linked lists.
554 - module step and reset now only get a node pointer passed
555 - Added discrete_info * pointer to node
556 - Only nodes with a step routine actually get processed.
557 - Fixed a bug: discrete logs did not work since some time
558 - preliminary parallel task constants; depending on results these may
559    vanish again.
560 - Overall slight performance increase. dkong 940% to 960%, galaxian
561    740% to 790%
261Naomi: add revision G export BIOS. [R. Belmont]
562262
563Fix NULL timers crash in the mc6845. [hap]
263Goldstar driver improvements: [Roberto Fresca]
264 * Added new game: New Lucky 8 Lines / New Super 8 Lines.
265 * Inputs and DIP switches from the scratch.
266 * Added Hopper service button to all New Lucky 8 Lines sets.
267 * Added Paytable settings DIP switch to all New Lucky 8 Lines sets.
268 * Minor clean-ups.
269 * Created a new machine driver for wcat3.
270 * Mapped the missing d000-efff ROM space range.
271 * Added PCB & DIP switches banks layouts for ns8lines.
564272
565Fixed IM2 interrupt cycles in the Z80 core. [eke]
273Changed CPU clock display in the UI to display multiplied/divided
274clocks instead of raw clocks. [Dirk Best]
566275
567kaneko16 updates:
568 - Decoded all protection data for B.Rap Boys
569    [David Haywood, Tomasz Slanina]
570 - Cleaned up decryption function for B.Rap Boys external Rom
571    [David Haywood]
572 - Improved video emulation for B.Rap Boys [David Haywood]
573 - Marked several GFX roms as bad on B.Rap Boys [David Haywood]
574 - Improved protection simulation logic w/regards to writeback
575    addresses, allowing B.Rap Boys to boot [Tomasz Slanina]
576 - Redumped GFX Roms [Guru]
577 - Added hitbox simulation based on suprnova / game requirements
578    [Tomasz Slanina]
579 - Converted MCU writes to use write_byte [David Haywood]
580 - Added kludge to reset MCU data write address to prevent game from
581    running out of ram and crashing [David Haywood]
582 - Added DSWs [David Haywood]
583 - Added eeprom support to the B Rap Boys protection simulation
584    [David Haywood]
585 - Change to priorities to fix some visibility problems.
586    [David Haywood]
276Changed device callback system to look up devices owned by the same
277parent if a child device references another device. [Dirk Best]
587278
588Added correct U2 sound ROM to the mk3 sets [MK3Fan - Mike]
279Fixed a couple of unbalaced profiling calls, and added output to help
280identify the source of unbalanced calls. [Christophe Jaillet]
589281
590Discrete sound parallel tasks support: [couriersud]
591 - Introduced DISCRETE_TASK_START, DISCRETE_TASK_END
592 - DISCRETE_TASK_START: Start a new task. A task is a set of nodes
593    which only depend on input nodes and nodes in the set
594 - DISCRETE_TASK_END(task_output_node): Marks the end of the task.
595    task_output_node is the node whose output over time should be
596    preserved. This node can be accessed by nodes in the main thread.
597 - Illustrated the concept in the dkong discrete emulation. This also
598    has been enhanced to buffer DAC output.
599 - Discrete tasks now support multiple task output nodes
600282
601Further discrete changes: [couriersud]
602 - DISCRETE_OUTPUT now is a stepping node.
603 - DISCRETE_STREAM_INPUT now advances input pointer in step.
604 - More linked_list usage.
605283
606Pit Boss driver updates: [Brian Troha]
607 - Corrected rom names for the Megastar & Supertouch 30
608 - Added missing rom to Supertouch 30 and verified old bad_dumps
609 - Added documentation about the Megastar sets
610 - Made pbst30b a clone of pbst30 and added program versions to the
611    name, IE: Pit Boss Supertouch 30 (9234-10-01)
612
613Fixed B-Rap Boys sound banking [Phil Bennett]
614
615Sigma Poker: Fixed duplicated definition of Hold 2 button. Added the
616missing Hold 3 button. [Roberto Fresca]
617
618Continued discrete sound system "list-ification": [couriersud]
619 - No more constraints on number of input and output nodes
620 - input nodes now make use of a context
621
622Removed osd_is_bad_read_ptr function. [Aaron Giles]
623
624
625
626284New games added or promoted from NOT_WORKING status
627285---------------------------------------------------
628Noraut Red Hot Joker Poker [Roberto Fresca, Alan Griffin]
629Galaxy Games StarPak 2 [Luca Elia, Siftware]
630Great Football
631  [Kevin Eshbach, Charles MacDonald, Smitdogg, Dumping Union]
632Pit Boss Megastar (9244-00-01) [Mariusz Wojcieszek]
633 B.Rap Boys / B.Rap Boys Special
634   [David Haywood, Tomasz Slanina, Luca Elia]
635Billiard [Alexander Stakhanov, CaH4e3, Black1972]
286Turbo Outrun (Mega-Tech) [Any, Dumping Union]
287Mahjong Gekisha [Luca Elia, Guru, Dyq, Bnathan]
288Miracle Derby - Ascot [Stefan Lindberg, David Haywood]
289New Lucky 8 Lines / New Super 8 Lines
290  [Roberto Fresca, Darklord & Team Europe]
636291
637292
638293
639294New clones added
640295----------------
641Kollon (V2.04JC)  [Joerg Hartenberger, Frank Berlt]
642Mortal Kombat Turbo Ninja (rev 3.1 T-Unit 03/19/93, hack)
643  [MK3Fan - Mike]
644Pit Boss Megastar (9244-00-01) [Brian Troha, Dumping Union]
296Alien Syndrome (System 16B, Japan, New version) [Team Japump!!!]
297Hana Jingi (Japan, Bet) [Luca Elia, Guru, Brian Troha, Yasuhiro Ogawa]
298Super Hang-On (Japan, FD1094 317-0038) [The Dumping Union]
299Zaxxon (set 3) [Team Europe]
3001942 (Revision A, bootleg) [Darran]
301Street Fighter II' - Champion Edition (Double K.O. Turbo II, bootleg)
302  [J. Bijl, krick, Smitdogg]
303Sonic Championship [Brian Troha, Dumping Union]
645304
646305
647306
648307New games marked as GAME_NOT_WORKING
649308------------------------------------
650Noraut Poker (NTX10A) [Roberto Fresca, Alan Griffin]
651Noraut Joker Poker (V3.010a) [Roberto Fresca, Alan Griffin]
309Criss Cross (Sweden) [Tormod]
310Shootout Pool [ANY, The Dumping Union]
311Virtua Tennis 2 (cartridge) [ANY, The Dumping Union]
312Draw Poker Hi-Lo (Japanese) [Roberto Fresca]
313Hi-Lo Double Up Joker Poker [Roberto Fresca, Alan Griffin]
314Ten Spot [Smitdogg, N. Francfort, David Haywood]
315Crazy Taxi [ANY, The Dumping Union]
31618 Wheeler [ANY, The Dumping Union]
317Jambo! Safari [ANY, The Dumping Union]
318F355 Challenge (Twin) [ANY, The Dumping Union]
319F355 Challenge 2 (Twin) [ANY, The Dumping Union]
320Go! Go! Connie chan Jaka Jaka Janken
321  [Mariusz Wojcieszek, Dumping Union]
652322
653323
654324
6550.133u3
3250.134u3
656326-------
657327
658328
659329MAMETesters Bugs Fixed
660330----------------------
661- 03389: [DIP/Input] amspdwy: Both cars steer with Player 1 controls
662- 03120: [Color/Palette] nss_lwep: Wrong colors during gameplay
663         (Angelo Salese)
664- 02701: [Core] z80.c: SCF CCF X and Y flags (hap)
665- 02959: [Crash/Freeze] kinstb: Killer Instinct (SNES Bootleg) no
666         longer starts up, freezes at blank screen. (R. Belmont)
667- 03275: [Sound] gradius4: Gradius IV Fukkatsu sound has the wrong
668         pitch (R. Belmont)
669- 03387: [DIP/Input] galmedes: Demo Sound Dip Inverted (Tafoid)
331- 03470: [Crash/Freeze] backfirea: Game mode setting error on startup
332         (Fabio Priuli)
333- 03465: [Crash/Freeze] batrid, bgaregga, bkraidu and clones: Reset after
334         rom check (R. Belmont)
335- 03463: [DIP/Input] kingball, kingballj: Wrong coinage DIP options.
336         (Tafoid)
670337
671338
672339
673340Source Changes
674341--------------
675Added a lot of new clones to multfish and cleaned up the driver.
676[Vampirz, Fabio Priuli, Brian Troha]
342Multifish driver update [MetalliC]
343 - Hooked up RTC (real time clock)
344 - Added documentation about backdoor / bootleg / hacks
677345
678Further ROM name fixes and driver name changes [Yasuhiro Ogawa]
679 - renamed digdugb to digdug1 (it's a rev1, not a bootleg)
680 - renamed digduga1 to digdugat1
346Space Encounter - fixed enemy shot sound. [Derrick Renaud]
681347
682SNES Updates: [Angelo Salese]
683 - Fixed direct color gfxs in mode 7
684 - Fixed direct color gfxs in mode 3/4
685 - Fixed a vram out-of-bounds bug
686 - Fixed a blending bug involving main/sub color maths
687 - Fixed interlace mode gfxs when not in gfx modes 5/6
688 - Fixed a GDMA boundary bug
689 - Made the OAM address reset more accurate.
690 - Fixed HDMA mid-frame inits.
691 - Added clip colors to black window function
692 - Converted color clipping to use struct entries
693 - Made dynamic H resolutions to be called only at vblank start and and fixed gfx mode switching 1/5 and 5/1
694 - Made the gfx mode switches more accurate.
695 - Corrected a bunch of SPC registers behaviour
696 - improved joypad read/write handling and fixed a serial port quirk.
697 - Fixed serial port for player 2 as well
698 - Improved cart mode 20 reserved access behaviour
699 - added OBJ interlace support
348Space Walk - started Springboard Miss sound. [Derrick Renaud]
700349
701ST-V: Improved timer 1 irq behaviour. Pebble Beach still have issues
702with gameplay start though (writes lots of garbage for whatever
703reason, really worked for random chances before). [Angelo Salese]
350Added color prom to Omega. [Andy Welburn]
704351
705Corrected name from Devil's Island to Devil Island. Filled in year
706for Fruit Bonus 2006 SE & Bug Fever. [Brian Troha]
352m68k updates: [R. Belmont]
353 - throw F-line trap correctly when PMMU instructions are hit on
354    non-equipped CPUs.
355 - Added working PMMU address translation (not feature complete, but
356    sufficient to boot several 68030 Macs in MESS)
357 - Fixed up disassembly of some PMMU instructions
358 - Added "68020 with 68851" CPU type
707359
708Discrete sound update: [couriersud]
709 - removed global variable discrete_current_context
710 - discrete_info is now passed instead of device, we may get device by
711    using disc_info->device
712 - Added DISCRETE_IMPORT(*block): imports another discrete block
713 - Added DISCRETE_REMOVE(node1, node2): removes a range of nodes
714 - Added DISCRETE_REPLACE: next node replaces existing node, thus
715    preserving run order
716 - Added DISCRETE_NOP(node): does nothing, to be replaced.
717 - Added a prescanning stage to build final block list after execution
718    of the above.
719 - The additions provide an easy way to document subtle difference
720    between boards.
721 - Please see audio/galaxian.c for an example
360Added correct 64Mb CROM dumps to spikeout. [Phil Bennett]
722361
723Galaxian sound updates: [couriersud]
724 - Moon Cresta and Galaxian now have their respective schematics
725    emulated, i.e. Moon Cresta has a slightly different mixing stage.
726 - Cleaned up driver, added some section titles and comments, removed
727    old code.
728 - Removed emu_timer, this was causing a stream of stream_updates only
729    updating 3 samples
730 - Replaced with discrete timer module DSS_TIMER now.
731 - Use DISCRETE_NOTE for pitch generation; it is more accurate
732    (within the one ms where the pitch changes :-) ) and saves a node
733 - Use DISCRETE_BITS_DECODE and save 2 nodes.
362Added EXPECTED macro to complement the already existing UNEXPECTED
363macro. [couriersud]
734364
735YM2612/3834 updates [Eke-Eke, Nemesis]
736 - Split YM2612/3834 to a separate file to avoid disturbing other OPN
737    chips
738 - SSG-EG, envelope, LFO, and CSM behavior all improved to better
739    match tested behavior on real YM2612 chips
740   
741DSS_COUNTER updates: [couriersud]
742 - clock_node no longer needs to be static for DISC_CLK_IS_FREQ
743 - rewrote inc/dec logic to avoid loop
365Discrete update [couriersud]
366 - fix some "const" weirdness I introduced
367 - fix VREF in CRFILTER_VREF and RCFILTER_VREF. VREF never got used
368    since it was only a static parameter.
369 - Removed enable from CR_FILTER* and RC_FILTER*
370 - Updated drivers accordingly.
371 - Use EXPECTED/UNEXPECTED to help the compiler
744372
745Added DISCRETE_BIT(S)_DECODE: [couriersud]
746 - decodes individual bits from input values
747 - Updated drivers which had macro DISCRETE_BITSET (which was a bit
748    misleading)
749 - This should be slightly faster than using DISCRETE_TRANSROM
373DISCRETE_CRFILTER, DISCRETE_RCFILTER updates: [Derrick Renaud]
374 - revert vref change from rev 6979.
375 - added capability for all values to be nodes.
750376
751Discrete sound enhancements: [couriersud]
752 - Put some life into RCDISC5 enable mode. This now acts as a switch
753    between R and C. Capacitor voltage will be preserved if disabled.
754 - Made galaxian use the above. Saved 2 nodes and increased accuracy.
755 - Added DISC_LFSR_FLAG_OUTPUT_SR_SN1 flag to shift register noise
756    generator. This will output the value of the shift register to
757    sub-node 1. This is needed for future bzone discrete sound
758    emulation. BTW: RCDISC5 will be used as well.
759 - Left a note on RCDISC3 on what is needed to be implemented for
760    bzone.
761 - Optimized the LFSR a bit. LFSRs running at high frequency
762    (> sample_freq) should benefit.
377Starship 1 - fixed motor sounds. [Derrick Renaud]
763378
764Verified and fixed deniam.c M68K, Z80, YM3812 and OKIM6295 clocks
765and OKI pin 7 for logic pro and logic pro 2.  Fixed visible area on
766logic pro and logic pro 2 to match real PCBs. Add comment about what
767ym3812 clone is used. Add note about missing graphical effect in
768logic pro (screen dim on coin insert) and marked as
769IMPERFECT_GRAPHICS. Add note about 4 pixels at left edge of screen.
770[Charles MacDonald, Lord Nightmare]
379Shuffleboard - started discrete sounds. [Derrick Renaud]
771380
772Attempt to define an I64FMT string that can be used for printf'ing
77364-bit integers. This is defined to be "I64" on MSVC and recent mingw
774compilers, and "ll" for all others. Updated all instances of 64-bit
775prints to use the new macro. [Aaron Giles]
381Fixed DMA write mask register in 8237dma. [Mariusz Wojcieszek]
776382
777Added spacwalk extended time setting and DIP locations. [gregf, hap]
383Blue Shark - added octopus sound. [Derrick Renaud]
778384
779Merged 5110intf into tms5110, and 5220intf into tms5220. [Aaron Giles]
385Corrected rom names for Frogger (Sega set 2) [Derrick Renaud]
780386
781Z80 changes: [hap]
782- Fixed X/Y flags in CCF/SCF/BIT, ZEXALL is happy now
783- Simplified DAA, renamed MEMPTR (3.8) to WZ (same temp register as
784   the officially named WZ in the 8080), added TODO
387Adds PCB layout for Igrosoft's Gambling hardware in the multfish.c
388driver. [Brian Troha]
785389
7868085 changes: [hap]
787 - fixed cycle deduction on unconditional CALL / RET, it took about
788    half too many cycles
789 - added cycle tables and cleaned up source layout. This was done
790    very carefully, it should be errorfree.
791 - removed HLT cycle eating (earlier, HLT after EI could theoretically
792    fail)
793 - fixed parity flag on add/sub/cmp. Bug was caused by z80 overflow
794    detection accidentally left in
795 - renamed temp register XX to official name WZ
796 - renamed flags from Z80 style S Z Y H X V N C  to  S Z X5 H X3 P V C
797    and fixed X5 / V flags where accidentally broken due to flag names
798    confusion
390Removed some old and duplicate code for genesis/megadrive from MAME.
391Also, moved some megaplay/megatech constant to a struct and
392refactored some code (work in progress). Updated bootlegs to use
393latest genesis code and finally removed src/mame/drivers/genesis.c!
394[Fabio Priuli]
799395
800Fixed MSVC 64-bit compile errors. [Aaron Giles]
396Asserted copyright ownership of core library and OSD files, and
397relicensed them under the standard BSD license, with permission of the
398original authors. The files in question all live under src/lib/util
399and src/osd. [Aaron Giles]
801400
802Added rgb[a]int_sh[l|r] operations to the rgbutils. rgbvmx needs to be
803updated. (Nobody is using them yet.) [Aaron Giles]
401Device memory spaces are now visible in the debugger. [Aaron Giles]
804402
805Added color PROM for Triple Draw Poker. [David Haywood]
403Better task processing for discrete sounds: [couriersud]
404 - tasks are now processed according to their dependency lists. Tasks
405    can now start early and will only process samples which are
406    already available. This has most impact on drivers which have
407    significant variance in the run-time of individual tasks.
408 - tasks now process samples in slices, currently max 240 samples /
409    slice.
410 - TASK_GROUP is now obsolete - Will update drivers at a later stage.
411 - step function pointer now back in node, modules may register
412    optimized step functions.
413 - profiling code now always compiled, introduced static int
414    profiling = ...
415 - some more EXPECTED/UNEXPECTED usage.
806416
807Changed profiler to separate start/stop cases. [Christophe Jaillet]
417Fixed Dip Switches for 'attckufo'. [stephh]
808418
809taito_z DIPSW fixes [kanikani]
419Improvements to Noraut poker driver... [Roberto Fresca]
420 * Added Draw Poker Hi-Lo hardware support, based on 8080A CPU.
421 * Mirrored the PPI's offsets to simplify/merge the hardware emulation.
422 * Added hardware documentation and PCB layouts from both DPHL sets.
423 * Added DPHL discrete sound circuitry scheme/documentation.
424 * Added Turbo Poker 2 from Micro Manufacturing.
425 * Added PMA poker.
426 * Documented the Turbo Poker 2 hardware.
427 * Added Turbo Poker 2 PCB layout from hi-res picture.
428 * Switched to the new PPI core.
429 * Commented out the 3rd PPI device till handshaked strobe lines can
430    be properly emulated. For now, all VRAM access is through direct
431    handlers. This allow to remove the hacks per set needed to boot
432    the games.
810433
811Added decryption key for Extreme Hunting 2. [Andreas Naive]
812434
813Naomi update:
814  [R. Belmont, Deunan Knute, Alex, Mr. Mudkips, Frank Bukor]
815- Use new dump for ic31/32, ROM board test passes now
816- Add protection hookup for Marvel vs. Capcom 2, game is playable
817   w/sound
818435
819Added support TMS1000 family models TMS1000/1070/1100/1200/1270/1300.
820Added support for configuration of output PLA to the tms0980/tms1000
821interface. [Wilbert Pol]
822
823Implemented transparent mode access for some 6845 model sy6845.
824[Roberto Lavarone]
825
826Verified clocks + Vsyncs on Downtown, Caliber 50 and Xmen (2-4
827players). [Corrado Tomaselli]
828
829Changed to mono both Downtown and Caliber 50: these pcbs don't have a
830stereo connector.  [Corrado Tomaselli]
831
832Verified and added correct xtals values for cps1 boards. Added correct
833xtal and divisor for OKI6295 taken from Forgotten Worlds schematics.
834[Corrado Tomaselli]
835
836Decrypted several tables from the B-Rap Boys ROM. [David Haywood]
837
838
839
840436New games added or promoted from NOT_WORKING status
841437---------------------------------------------------
842WOW New Fantasia [Irongiant, David Haywood]
843Island 2 (060529) [Vampirz]
844Pirate (060210) [Vampirz]
845Keks (several sets) [Vampirz]
438Pirate 2 (061005) [Metallic]
439Phoenix Part 2 [Andy Welburn, Dumping Union]
440Danchi de Quiz [Guru]
846441
847442
443
848444New clones added
849445----------------
850Fruit Cocktail (060111) [Vampirz]
851Saulabi Spirits / Jin Saulabi Tu Hon (Korean release of Samurai
852   Shodown II) [Guru / David Haywood]
446Pirate (060803) [MetalliC]
447Battle of Atlantis (bootleg) [David Haywood, Dumping Union]
448Multi Fish (031124) [MetalliC]
449Block 2 (Arkanoid bootleg) [Andy Welburn, stephh]
450Go For The Gold (Japan) [Darran]
853451
854452
855453
856454New games marked as GAME_NOT_WORKING
857455------------------------------------
858Colorama (english) [Roberto Fresca, Angelo Salese]
859Roulette V75 (spanish) [Roberto Fresca, Angelo Salese]
860Rabbit Poker (Arizona Poker v1.1?)
861   [Roberto Fresca, Andreas Naive, Tomasz Slanina]
862Coinmaster Keno (Y2K, spanish, 2000-12-14) [Roberto Fresca]
863Coinmaster Keno (Y2K, spanish, 2000-12-02) [Roberto Fresca]
864Extreme Hunting 2 [Guru]
865Dirt Dash (Rev. DT2) [Guru]
456Bingo Roll / Bell Star V3 [Roberto Fresca, Team Europe]
457Draw Poker Hi-Lo (M.Kramer) [Roberto Fresca]
458Draw Poker Hi-Lo (alt) [Roberto Fresca, Alan Griffin]
459PMA Poker [Roberto Fresca, Siftware]
460Turbo Poker 2 [Roberto Fresca, Siftware]
866461
867462
868463
8690.133u2
4640.134u2
870465-------
871466
872467
873468MAMETesters Bugs Fixed
874469----------------------
875- 00191: [Graphics] miaj: some text of the boot-up screen is not
876         correctly displayed (hap)
877- 02267: [Graphics] devilw, darkadv, majuu: Some rogue sprites (hap)
878- 03370: [Sound] gng and clones: Music slows down while shooting
879         (Corrado Tomaselli)
880- 03373: [Misc.] looping: Unmapped I/O read/writes result in large
881         error log and major performance drop (robiza)
882- 03381: [Crash/Freeze] pc_moglf, pc_mtoid: Crashes with access
883         violation a short time after boot. (hap)
884- 03376: [Crash/Freeze] All Sets with Rev 1 Sound Board in gottlieb.c:
885         Access Violation (hap)
886- 03175: [Crash/Freeze] cham24: Game doesn't start correctly
887- 03354: [DIP/Input] cobram3: Infinite lives dip switch triggers service mode
888- 03352: [DIP/Input] cobram3: No demo (attract) sound (Xander)
889- 03370: gng and clones: Music slows down while shooting
470- 03403: [DIP/Input] rollfr_2: Can't init Roll Fruit game. (MetalliC)
471- 03458: [Sound] bzone and clones: Broken engine sound (couriersud)
890472
891473
892474
893475Source Changes
894476--------------
895Add PCB locations to the rom names for Dream Land (Bubble Bobble
896bootleg). [Briah Troha]
477Added genuine sets of Rally-X and New Rally-X [Team Japump!!!]
897478
898Added preliminary sound to 39in1, still buggy. [MooglyGuy]
479discrete_sound_r now can inquiry any node: [couriersud]
480 - the return type is UINT8, consequently the designer needs to ensure
481    that the node delivers adequately scaled data.
482 - input nodes allow the input data to be scaled. The return value is
483    the node value *after* scaling.
899484
900Hand-tuned BGM tempo in Tryout thanks to a side-by-side reference.
901[Angelo Salese]
485DISCRETE_74LS624 - optimized for some more speed. [Derrick Renaud]
902486
903SNES fixes (mostly MESS specific) [Angelo Salese]
904 - Fixed Super Kick Boxing booting and sound.
905 - Preliminary open bus emulation for allowing Shien's Revenge /
906    Shien the Blade Chaser to boot
907 - Fixed mode 5/6 bg drawing cutted in half bug
908 - Fixed (presumably) broken gfxs in nss_sten
909 - More accurate behaviour of the last scroll register.
910 - Improved mode 5/6 gfxs when tile size = 16x16.
911 - Fixed rowscroll line bugs in many games
912 - Made the unsupported reads on i/o open bus, fixed a layer enable
913    in Super Kick Boxing
914 - Fixed vram size when in hires mode
915 - Hooked up interlace mode
916 - Fixed doubled y-axis sprites when in interlace mode
917 - Improved window effects when in H-512 mode.
918 - Removed a kludge with color windows.
919 - Fixed buggy layer clearance when in H-512 modes
920 - Fixed the x scrolling wrap around bug when hscroll == 0
921 - Fixed a bug that were causing a row of corrupted tiles during
922    scrolling situations
923 - Fixed irq ack and fixed TIMEUP register open bus behaviour.
924 - Even more aggressive open bus fixes.
925 - Fixed a partial update bug when the screen is in interlace mode
926 - Fixed 8bpp layer colors.
487DISCRETE_566 - started making a more accurate simulation based on
488testing of a real IC. This makes the rest of Sky Raider sounds work.
489[Derrick Renaud]
927490
928Patched progolfa rom like progolf. Removed bad dump flag in progolf;
929with progolfa you get the same rom error in test mode and progolfa
930have different encryption. [robiza]
491Completed dump of Gun Survivor 2 cart [Guru]
931492
932Added a stop4 input to slot default and remapped slot default keys to
933better suit Amcoe games. [Fabio Priuli]
493Hacked in the dsp56156's "Long Interrupts."  Added SUB opcode.
494Polygonet Commanders now goes in-game! [Andrew Gardner]
934495
935Updated sfbonus.c to use the new gambling inputs. Fixed many years
936and descriptions. Reworked parent/clone relationships so that parent
937is the higher revision and/or the Export version. Also, tried to
938establish common rules in the choice of the romset names.
939[Fabio Priuli]
496plygonet.c: hooked up 53936 roz layer. [R. Belmont, David Haywood]
940497
941Added default input mappings for Hanafuda games. Updated most of the
942Hanafuda games to use them. Like for Mahjong games, keys A->H are used.
943"Yes" is mapped to M, "No" is mapped to N. [Fabio Priuli]
498Fleshed out SCC68070 definition in m68k core, for CD-i use in MESS
499[Harmony]
944500
945Add correct color PROM for panther. [Mr. Do, Angelo Salese]
501m68k: disassemble PMOVE instruction (move to/from PMMU). [R. Belmont]
946502
947Removed fake P3 Start from Nichibutsu mahjong games and properly
948called "Credit Clear" that input. Also, added back Bet button in
949nb1413m3.c fixing omotesnd. [Fabio Priuli]
503exp is slow, but pow is even slower [couriersud]
504 - more LS624 optimization, replace pow(10, x) by pow10(x)
505 - mixer loop optimizations
950506
951nmk16.c driver documentation update / clean up: [Briah Troha]
952 - Moved the PCB layout for S.B.S Gomorrah (Bio-Ship Paladin) down by
953    the game's romdef.
954 - Added PCB layout for Spectrum 2000 & corrected company name to
955    YONA Tech
956 - Added PCB layout for Red Hawk
957 - Moved decryption routines (if needed) to between the info/PCB
958    layout header and game romdef.
507Impromved discrete performance for mario: [couriersud]
508 - pow to exp : 5%
509 - parallel tasks : 45%
510 - minor tweaks
959511
960Added the 8751 MCU code to Saigo no Nindou (nspiritj).
961[Guru, David Haywood]
512M680x0 update: [R. Belmont]
513 - Add CPU types 68EC030, 68030, and 68EC040
514 - Start of 030/040 PMMU, including stubbed PMOVE
962515
963Implemented preliminary bg map banking in 18 Holes Pro Golf.
964[Angelo Salese, Robiza]
516Fixed up RAM bank names to prevent crashes with memdump. Extended
517explicit banks to 96. [Aaron Giles]
965518
966Fixed a mapping error with Maikobana [BET] (mmaiko) which caused the
967NVRAM not to save correctly. [Tafoid]
519multfish.c driver fixes and improvements: [MetalliC]
520 - Hooked up inputs for Roll Fruit
521 - Added hopper emulation, payout now works
522 - Added information on how to initialize Roll Fruit
523 - Added in missing rom to a few MultiFish sets
968524
969Aristocrat MK-4 HW: Hooked up mc6845, fixed a rom crc in goldenc and
970implemented flip y. [Angelo Salese]
525DISCRETE_555_MSTABLE - optimized speed and added new operating modes.
526[Derrick Renaud]
971527
972DIP switch cleanups in gberet, mainevt, ninjakd2, and taito_z.
973[kanikani]
528Fixed ROM name of warpwarp. Also removed 4th program ROM which is not
529present on real board. [Team Japump!!!]
974530
975Added GAME_IMPERFECT_SOUND flag to all sets that use external samples
976which were not already flagged for sound. Flagged Speed Freak
977(speedfrk) as GAME_SUPPORTED_SAVE to match the rest of the driver.
978[Tafoid]
531Memory references can now explicitly specify logical or physical
532access by prepending with an 'l' or 'p'. Logical remains the default.
533Example: ppb@1000 = physical program space byte at address $1000.
534ldw@2000 = logical data space word at address $2000. Changed cheat
535finder to explicitly reference physical memory when writing out new
536cheats. [Aaron Giles]
979537
980SNES video updates: [Fabio Priuli]
981 * re-enabled video debug functionalities in debug build (to toggle
982    background layers)
983 * added proper priority tables for various bg/obj layers
984 * largely simplified tile and line drawing routines, and fixed small
985    bits here and there
986 * further simplification of tile drawing routines
987 * added palette index to 8bpp tiles (correct color_shift still unsure,
988    though)
989 * reworked video drawing routine to simplify the various graphic
990    mode drawing and to allow proper implementation of priority orders
991    (especially bg3 priority bit and mode 7 priority order)
992 * improved mode 7 extbg (still missing mosaic)
993 * added some more debugging options
994 * improved Mode 7 math precision (but still some issues remain) and
995    added a few elements to PPU struct
996 * implemented Mosaic in Mode 7
997 * merged OAM functions
998 * added a few elements to PPU struct (this might be handy if we ever
999    come to convert SNES PPU to a device)
1000 * fixed Mode 7 shared scrolling/matrix registers
1001 * slightly optimized Mode 7 math (by using Anomie's recursive
1002    formula)
1003 * moved some more register contents to PPU struct
1004 * added PPU1/PPU2 Open Bus support, STAT77/STAT78 registers should be
1005    more accurate (even if still not perfect)
1006 * simplified window masking code and moved some more regs to PPU
1007    struct
538Added simple system for auto-detecting cheat-worthy RAM areas.
539[Sandro Ronco]
1008540
1009More NES work: [Robert Bohms]
1010 * Fixed bug in nes_apu that caused errors reading $4015
1011 * Added length counter status bits to $4015
1012 * Fixed 4-screen mirroring (PPU regression)
1013 * Fixed cham24
1014 * Improved Sprite Overflow emulation of NES PPU (this fixes the first
1015    of blargg's Sprite Overflow tests)
541Added NULL check to prevent MAME from crashing if a new input device
542was connected at runtime. [David Haywood]
1016543
1017Added remaining PCB "U" locations to roms that didn't have for
1018G-Stream G2020. [Brian Troha]
544Expanded PROFILER_USERx to support up to 8 custom profiler areas.
545[Christophe Jaillet]
1019546
1020Atomiswave updates: [R. Belmont, Cah4e3]
1021 - Hooked up flash ROM at 0
1022 - Use proper AW memory map
1023 - Emulate AW ROM board (different from Naomi)
547Added more _NAME macros to be consistent with the standard naming
548conventions. [Atari Ace]
1024549
1025Fixed buggy breakpoints in the g65816 cpu core. [Angelo Salese]
550Removed old master system code from megaplay.c, megatech.c, segae.c
551and updated the drivers to use more recent implementation (from
552HazeMD) [David Haywood]
1026553
1027Fixed Atomiswave COIN ERROR. [Wind]
554Sped up mario_custom_run() discrete sound. [Derrick Renaud]
1028555
1029n8080 update [Team Japump!!!]
1030 - corrected ROM names for Space Fever and SF High Splitter
1031 - renamed spacefeva to spacefevo2
1032 - added spacefevo
1033 - added highspltb
556Added discrete sound to Sprint 8. [Derrick Renaud]
1034557
1035Updated Sega Hikaru readme [Guru]
558Removed capacitor aging code and assumed range input is gnd for all
55974LS629. [couriersud]
1036560
1037Discrete sound update: [couriersud]
1038 - Added "abs" function to DISCRETE_TRANSFORM
1039 - Fixed a bug in DISCRETE_RCDISC5
561Omplemented m:n logic for buffered task nodes in discrete sound
562[couriersud]
563 - preparation work so that a task node output buffer may be read by
564    more than one following task.
565 - target: implementation of task groups: tasks in a task group run
566    parallel, task groups serial. The current main task may than just
567    be task (in the last task group)
1040568
1041Added 1 missing sample to safarir.c [Team Japump!!!]
569Space Walk - started discrete sounds. [Derrick Renaud]
1042570
1043Created discrete sound emulation for galaxian [couriersud]
1044 - Changed all audio related AM_WRITE to AM_DEV_WRITE
1045 - Moved discrete sound related pieces such as initialization into
1046    audio/galaxian.h
1047 - Split some memory maps into sound related and not sound related
1048    parts.
1049 - Added possibility in discrete.h to select hardware (galaxian/moon
1050    cresta) at compile time. This leads to slightly different volume
1051    levels. Hit sound (explosion) has been hacked to increase volume.
1052    Currently, we can not accurately model the switch/opamp filter
1053    circuit.
1054 - Rewrote timer code so that the pitch timer is only used when it
1055    produces audible results.
1056
1057Cojag/jaguar video updates (primarily for MESS) [Robbbert]
1058 * Added variable pixel width.
1059 * Fixed display of screens wider than 360 pixels.
1060 * Enabled use of RGB16.
1061
1062looping: modified the cop420 rom region, fixed mcu rom region in clone
1063set, added mcu support. [robiza]
1064
1065Redumped bingor2 program roms [Klaus Sommers]
1066
1067Corrected Kamakazi III's dipswitch setting (the same as superg) and
1068relabeled it a superg hack. Also the dipswitch setting for the Taito
1069license was the same as superg so I eliminated one. [Brian Troha]
1070
1071Improved speaker-toggle emulation with alias filter.
1072[Anders Hallstrom]
1073
1074NES: Fixed bank switching in multigm3 (broken due to a mistake of
1075mine when including original Rob Bohms' code). The game still refuses
1076to work, unfortunately. [Fabio Priuli]
1077
1078vsnes update [Team Japump!!!]
1079 - fixed ROM names
1080 - added vssoccerj
1081
1082ROM name fixes for sicv, sisv, and sisv2 [Team Japump!!!]
1083
1084Corrected TNZS vsync to 59.15 as verified on pcb. [Corrado Tomaselli]
1085
1086Fixed bootleg description inconsistency in goldnpkr.c. [hap]
1087
1088Fixed sprite wrapping in sonson. [hap]
1089
1090Added Intel 4004 CPU core. [Miodrag Milanovic]
1091
1092Converted the tilemap lists to be private information held by the
1093running_machine instead of global variables. Added new APIs to the
1094tilemap code to handle the "ALL_TILEMAPS" cases, and removed the
1095old ALL_TILEMAPS definition. [Atari Ace]
1096
1097Added redumped gfx rom on Shogun Warrior [Guru]
1098
1099Updated romload.c and validity.c to not rely on global variables.
571Added static qualifiers where possible throughout the code.
1100572[Atari Ace]
1101573
1102Corrected resistor values in Cliff Hanger discrete sound based on
1103actual PCB values. [Ruben Panossian]
574Discrete task groups [couriersud]
575 - DISCRETE_TASK_START now requires a parameter TASK_GROUP (>=0, <=9)
576 - Tasks are scheduled in the order of their task group
577 - Nodes are automatically buffered between task groups
578 - Discrete core determines nodes which need buffering to minimize
579    overhead (information in DISCRETE_LOG)
580 - A discrete block list now must put each stepped node into a task
581    if it uses tasks
582 - Drivers not using tasks will get one task allocated automatically
583 - Updated drivers accordingly
584 - Some more constification
1104585
1105Removed DAA tables from the 8085 and Z180 implementations in favor of
1106just computing the values. Also fixed code in 8085 to prevent
1107accidental multiple reads due to macro overuse. [hap]
586Optimized tab removal in srcclean. [Atari Ace]
1108587
1109Added game time and coinage DIP switches to Space Walk, along with
1110service mode and test. Also added support for the 2nd controller and
1111coin counter. Removed GAME_NOT_WORKING as it is working fine. Added
1112color overlay based on photo. [hap]
588Centralized color definitions and made some colors more specific.
589[Mamesick]
1113590
1114Added a simple color overlay for Depthcharge based on flyers. [hap]
591Hooked up Polynet Warriors joystick properly. [Andrew Gardner]
1115592
1116Updated the Konami twin16 driver. Functional changes: [hap]
1117 - improved sprite status register, this fixed the rogue sprites
1118    problem in devilw
1119 - added fround coin counters
1120 - lowered k007232 volume
1121 - added savestate support
1122 - added shadows
1123 - fixed devilw and gradius2 sprite lag
1124 - added text layer x/y flipping
1125 - reverted gradius2 sprite-background priority hack, this fixes
1126    severe priority problems in devilw, but reintroduces bugs on
1127    gradius2 level 7 and ending
1128593
1129594
1130
1131595New games added or promoted from NOT_WORKING status
1132596---------------------------------------------------
113318 Holes Pro Golf [robiza, Angelo Salese]
1134Python (Photon System) [Mick, Mariusz Wojcieszek]
1135Pop n' Music 2 [Guru]
1136beatmania ClubMIX [Team Japump!!!, The Guru]
1137Ridge Racer (3 screen? Rev. RR2, World) [Guru, Smitdogg]
1138Sky Love [bbmmamoh, David Haywood]
1139Triple Draw Poker [Team Europe, David Haywood] (Wrong Colours)
597Othello (version 3.0) [Tomasz Slanina, Stefan Lindberg]
1140598
1141599
1142600
1143601New clones added
1144602----------------
1145Gun Bullet (World, GN3 Rev B) [Brian Troha, Dumping Union]
1146Megatouch 5 (9255-60-01 ROI, Standard version)
1147   [Brian Troha, Dumping Union]
1148Dragon World (V021O) [f205v, Olivier Galibert, David Haywood]
1149Winding Heat (JAA, JPN v2.11) [Guru]
1150Qix (set 2, smaller roms) [Team Europe]
11519-Ball Shootout Championship [SiftWare]
603Total Vice (ver UAC) [Phil Bennett]
604Street Fighter II - The World Warrior (Quicken Pt-I, bootleg)
605   [D. Beneke, Guru, Smitdogg, The Dumping Union]
606Street Fighter II' - Champion Edition (Accelerator!, bootleg)
607   [D. Beneke, Guru, Smitdogg, The Dumping Union]
608Ironman Ivan Stewart's Super Off-Road Track-Pak (2 Players) [Darran]
609Gals Panic 4 (Korea) [Choi Sung Ho]
610Mortal Kombat II (rev L3.1 (European)) [Andy Welburn]
611Cadash (Germany) [Volker Hann, Team Europe]
612Space Empire (bootleg) [Team Europe]
613Target Hits (ver 1.0) [Andrew Conroy]
614Vulcan Venture (Older) [Irongiant]
615Astro Blaster (German) [Volker Hann & Team Europe]
616Pac-Man (Galaxian hardware, set 2) [Team Europe]
617Zaxxon (Japan) [Team Japump!!!]
1152618
1153619
1154620
11550.133u1
621New games marked as GAME_NOT_WORKING
622------------------------------------
623Virtua Fighter 4 Evolution (Cartridge) [f205v, David Haywood]
62448-in-1 MAME bootleg (ver 3.09) [Guru]
62548-in-1 MAME bootleg (ver 3.02) [Guru]
626Seta Roulette? [Team Europe]
627
628
629
6300.134u1
1156631-------
1157632
1158633
1159634MAMETesters Bugs Fixed
1160635----------------------
1161- 03352: [DIP/Input] cobram3: No demo (attract) sound (Xander)
1162- 03354: [DIP/Input] cobram3: Infinite lives dip switch triggers
1163         service mode (Xander)
1164- 02377: [Graphics] fourtrax: There are some graphics glitches
1165         (POSIRQ-related?). (hap)
1166- 02645: [Gameplay] sbrkout: Super Breakout paddle not reaching left
1167         hand side (hap)
1168- 03317: [Graphics] starblad: No Large polygons displayed (hap)
1169- 02378: [Graphics] fourtrax: Sprite banking (for rear view mirror)
1170         isn't working. (hap)s
1171- 01119: [Color/Palette] finehour: [possible] Some bigger enemies
1172         seems to have bad colors. (hap)
1173- 03242: [Graphics] fantzone, fantzon1: Background scroll is
1174         completely broken. (hap)
1175- 03314: [Documentation] mrdrillr, mrdrilr2: Title should be "Mr.
1176         Driller" (dot), not "Mr Driller" (Fabio Priuli)
1177- 03349: [Sound] mpatrol, mpatrolw: Wimpy explosion sound (couriersud)
1178- 03366: [Compiling] Default mametiny build no longer compiles
1179         (Fabio Priuli)
1180- 02715: [Crash/Freeze] sokyugrt, shienryu: sokyugrt freezes after
1181         the loading and patent screens. shienryu allows coins but
1182         that's it. (Angelo Salese)
1183- 03359: [Graphics] sonson: unsupported negative sprite positions
1184         (Angelo Salese)
1185- 03358: [Misc.] sonson: Unimplemented coincounter (Angelo Salese)
1186- 03348: [Graphics] jjsquawb: Background Graphics Incorrectly mapped
1187         (robiza)
1188- 03320: [Sound] cliffhgr: dip switch setting reversed for demo sound
1189         play (Tafoid)
1190- 03316: [Sound] burglarx: The main music is distorted (Osso)
1191- 03313: [Misc.] cliffhgr, cliffhga: Missing parent/clone
1192         relationship (smf)
636- 02565: [Sound] All Sets in zaccaria.c: TMS5200 hookup is currently
637         kludged to work. (couriersud)
638- 03443: [Sound] brapboys, brapboysj: Music samples looping
639         incorrectly / ending too soon (Kitsune Sniper, Haze, Guru, hap)
640- 03439: [Sound] chinagat and clones: OKI6295 sound pitch is too high.
641         (sasuke)
642- 03435: [Compiling] gcc warning for src/emu/sound/ymf271.c with
643         OPTIMIZE=3 on openSUSE 11.1 x86 (hap)
1193644
1194645
1195646
1196647Source Changes
1197648--------------
1198Made cliffhga a clone of cliffhgr. [smf]
649Added CDP1863/CDP1864 sound devices for MESS. [Curt Coder]
1199650
1200ARM7 updates: [R. Belmont]
1201 - Preliminary PXA255 support, including Intel-specific CP14
1202 - Hooked up TLB
651Noraut discrete sound system: Changed C1 value (from PPI-1 PC6 line
652and Darlington array) to match the real value, as seen on the pcb.
653This should reproduce the 555 output accurately. [Roberto Fresca]
1203654
1204Fixed player 2 input port in photon.c. Fixed bad CRC/SHA1 in photon.c.
1205[Mariusz Wojcieszek]
655Remove Enable input from a number of discrete sound modules.
656[couriersud, Derrick Renaud]
1206657
1207Naomi/AW updates: [Deunan Knute, CaH4e3, R. Belmont]
1208 - DMA protection emulation for qmegamis, fixes in-game graphics
1209 - Correct decryption key for Extreme Hunting
1210 - Added protection emulation for Cosmic Smash
1211 - Added protection emulation for Capcom vs. SNK (cartridge ver)
658Reverted driftout workaround, see latest comments here for reason:
659http://www.mametesters.org/view.php?id=3356. [hap]
1212660
1213DIPSW fixes: [kanikani]
1214 - argus: fixed service switch (was defined to port that does not
1215    exist), and fixed DIPLOCATION order.
1216 - valtric: fixed note for how to enter test mode. coin1 and coin2
1217    were swapped, and fixed DIPLOCATION order.
1218 - butasan: coin1 and coin2 were swapped, and fixed DIPLOCATION order.
661Naomi/AW updates:
662 * Hooked up protection for Power Stone 2 and Toy Fighter
663    [R. Belmont, Guru, Cah4e3]
664 * Redumped bad rom in Heavy Metal Geomatrix [Guru]
665 * Redumped bad roms in Virtua Fighter 4 (cartridge version) [Guru]
666 * Redumped Club Kart: European Session [Guru]
667 * Updated Atomiswave hardware documentation [Guru]
1219668
1220The 6532 RIOT timer should keep spinning after a timeout (regression
1221introduced in 0.126u2). [Wilbert Pol]
669Verified CPU clocks for Atomic Point [Stefan Lindberg]
1222670
1223Did the following changes to the tankbatt.c driver [Angelo Salese]:
1224 * Cleaned-up the irq / nmi firing and fixed irq acks;
1225 * Cleaned-up the memory map;
1226 * Added coin counter, coin lockouts and added a second coin chute;
1227 * Documented some unclear i/os;
1228 * Flagged the game as GAME_IMPERFECT_SOUND since it uses samples
1229    instead of proper discrete sound emulation;
671New driver for Amatic encryped gambling hardware. This system is based
672on a custom CPU. Graphics are decoded but only 2 bitplanes hooked. All
673the needed devices are in the driver, but commented out till can
674properly decrypt the program ROMs and identify the CPU. About the
675encryption scheme, see the driver notes about my findings.
676[Roberto Fresca]
1230677
1231Fixed DEMO_SOUND Dip assignment in cliffhgr to work correctly when
1232turned ON. [Tafoid]
678Added device_find_child_by_tag helper function. [Curt Coder]
1233679
1234Improved colors in Merit Poker [Angelo Salese]
680i386: improved handling of override prefixes after a rep instruction
681[Gabriele Gorla]
1235682
1236Fixed the version number of 2 sound roms for Mortal Kombat 4 and
1237made U2 1MB in size which is correct. The actual rom type is a 27C800
1238and has been verified on 2 seperate PCBs. All the rest of the roms
1239are 27C160 as per the driver. [Brian Troha]
683Corrected Mirax clock frequencies [Stefan Lindberg]
1240684
1241Added license information to the 2 Red Hawk sets (IE: the US & Italy).
1242[Brian Troha]
685lr35902 cpu core changes: [Wilbert Pol]
686 - Improved handling of the DI+HALT bug.
687 - Do not clear the interrupt flag when the cpu is halted and no
688    interrupt is taken.
1243689
1244Added Screen Raw Params hook-up to the ST-V driver, fixes some of the
1245current issues [Angelo Salese]
690m68k: don't save signal contexts on *BSD and Mac OS X.
691  [scarlet, R. Belmont]
1246692
1247Added dip port locations to Glass, Alligator Hunt, Touch & Go, World
1248Rally 2: Twin Racing & Maniac Square [Brian Troha]
693Correct bprom name in Hellfire sets and added documentation of the
694type of bprom used. [Brian Troha]
1249695
1250Added dip port locations to Big Karnak, Biomechanical Toy, Maniac
1251Square (prototype), Squash & Thunder Hoop [Brian Troha]
696Added deletion of MSVC specific files to clean task. [Curt Coder]
1252697
1253Updated many clone names to use more than 8 characters.
1254[Yasuhiro Ogawa, Brian Troha, Tafoid, Fabio Priuli]
698z80dma improvements: [Angelo Salese]
699 - Added Initiate read sequence command and hooked up basic status
700    reading
701 - Added continue and reset port A/B timing commands
702 - Added enable/disable irq, force ready and reinitialize status byte
703    commands
704 - Fixed Initiate read command
705 - Implemented reset command
706 - Implemented fixed port transfer behaviour
707 - Added decrement step mode and fixed a conceptual bug with portA
708    writes
709 - Added preliminary search mode support and fixed a bug with WR3
710    mask byte
711 - Fixed ready flag when the DMA disabled/enabled commands are used
1255712
1256Added dip port locations to Sky Soldier, Time Soldiers and Paddle
1257Mania. [Brian Troha]
713"=A" inline assembly seems to be only supported on 32bit gcc. Provide
714a 64bit safe version of _get_profile_ticks. [couriersud]
1258715
125939 in 1 improvements: [MooglyGuy, R. Belmont]
1260 - Fleshed out some Intel PXA255 peripherals.
1261 - Improved PXA255 DMA controller emulation.
1262 - Fixed FBARx register accesses to wait until the current DMA
1263    transfer has completed before triggering another interrupt.
1264 - Hooked up 93C66 EEPROM.
1265 - Fixed LCD DMA behavior
1266 - Fixed EEPROM byte order
1267 - Video, inputs, and flash data ROM hooked up
1268 - Improved PXA255 LCDC, DMA and I2S emulation
1269 - Working but not great CPLD protection simulation
1270 
1271ST-V: Hand-tuned pixel-clock to match measured fps from the pcb
1272[Angelo Salese, Corrado Tomaselli]
716Ported Capcom CX4 implementation over from bsnes (original code by
717zsKnight, anomie and Nach). Mega Man X2 and X3 are now playable in
718MESS, with bugs. [Harmony]
1273719
1274Improved hblank duration behaviour [Angelo Salese]
720Partially implemented TMS5110_CMD_TEST_TALK: [couriersud]
721 - according to the documentation, this needs to be issued to read
722    status on CTL1
723 - cvs driver needs this
1275724
1276Added PCB location to 4 roms in a Head Panic clone. [Brian Troha]
725[SNES] Fixed a bug in our DSP1 emulation. Super Mario Kart can be
726played again in MESS. [Fabio Priuli]
1277727
1278Corrected rom names for Four Trax. Added the Guru's readme for Four
1279Trax. Derived all CPU clocks based on actual OSC timing.
1280[Guru, Brian Troha]
728CVS improvements: [couriersud]
729 - hook up speech cpu
730 - get rid of "temporary" code which hardwire ctl & pdc writes
731 - use tms rom clock as sense input for the s2650. darkwar now speaks
732    again on startup.
733 - only one latch used for sound & speech.
734 - hooked up 393Hz signal to "dac3"
735 - pcb pictures indicate discrete logic on the sound board. Marked
736    all games as GAME_IMPERFECT_SOUND since we seem to miss some sounds
737 - 4bit dac remains mysterious
1281738
1282Added basic PCB layout and added "U" locations to as many rom names
1283as I could identify in a hi-res pic of the PCB for G-Stream G2020.
1284[Brian Troha]
739tms5110 improvements: [couriersud]
740 - Implement ctl port input/output for status reads.
741 - Input/output is switched by clocking pdc after a TALK STATUS
742    command.
743 - update drivers to support new tms5110_ctl_r
744 - now exhibits Rom Clock signal
1285745
1286Updated sonson DIP locations and defaults to match those of the game
1287upgrade manual. [Tafoid]
746ym2612/3834: updates to track latest knowledge [Eke-Eke, Nemesis]
747 - Moved LFO vars inside the chip struct
748 - Changed SSG-EG to update before channel calcs
1288749
1289Added dip port locations to: [Brian Troha]
1290 * Gaplus / Galaga 3 and clones
1291 * Funny Bubble and clone
1292 * Gang Busters and clones
1293 * Green Beret plus clones and Mr. Goemon (also cleaned up)
1294 * GI Joe and clones
1295 * Gladiator and clones (also corrected to match factory settings)
1296 * Ghosts'n Goblins and clones (also restated bonus descriptions)
1297 * Goindol and clones
1298 * Grand Champion
1299 * MX5000 / Flack Attack
1300 * Food Fight and clones
1301 * Got-cha Mini Game Festival and clone
1302 * Aquarium, Gun Dealer plus clones and Wise Guy plus clone
1303 * Haunted Castles and clones
1304 * The Main Event, Devastators and various clones
1305 * Magical Cat Adventure, Nostradamus and various clones
1306 * Multi Champ and clone (also added support for coinage mode 1 & 2)
1307 * Dragon Master
1308 * B-Wings and clones
1309 * DECO Cassette System driver (also split out settings for specific
1310    games where appropriate)
1311 * Vandyke, Blackheart, Many Block, Task Force Harrier, US AFF
1312    Mustang, Hacha Mecha Fighter, Koutetsu Yousai Strahl, Bio-Ship
1313    Paladin, Acrobat Mission, Super Spacefortress Macross, Super
1314    Spacefortress Macross II, Thunder Dragon, Thunder Dragon 2,
1315    GunNail, Sabotan Bombers, Bombjack Twin, Nouryoku Koujou Iinkai,
1316    Guardian Storm
1317 * Stagger I & clones, Bubble 2000, Fire Hawk and Spectrum 2000
1318 * Air Attack, SS Mission and Twin Action
1319 * Super Pac-Man, Pac & Pal, Grodbda, Phozon, Mappy, Tower of Druaga,
1320    Dig Dug II and Motos as well as clones
750Fixed various issues with the dsp56156 disassembler.  [Andrew Gardner]
1321751
1322Various improvements to Yumefuda / Alba ZG driver [Angelo Salese]
1323 * Hooked up basic mc6845 crtc, fixing resolution and refresh rate;
1324 * Hooked up the ppi8255;
1325 * Hooked up some previously unemulated system inputs;
1326 * Added coin counter / coin lockout and added proper flip screen bit;
1327 * Corrected system clock;
752Updated nova2001 driver to use DIP LOCATIONS.  Clarified and verified
753switch behavior, comparing to manuals where available. [Fujix, Tafoid]
1328754
1329Added dip port locations to Bosconian, Galaga, Xevious Dig Dug and
1330clones. Added proper conditional bonus (based on number of starting
1331fighters) to Bosconian and Galaga [Brian Troha]
755Fixed disassembly of NEG Rd,Rs instruction in ARM7TDMI Thumb mode.
756[Harmony]
1332757
1333More accurate program rom names for Polygonet Commanders (ver UAA)
1334set. [Brian Troha]
758Fixed S-DD1 support in SNES driver; Street Fighter Alpha 2 is
759playable, Star Ocean shows decompressed graphics before hanging.
760[Harmony]
1335761
1336Improved bonus verbiage for the galaga.c, gng.c, gberet.c & gbusters.c
1337drivers. Verbiage more like the actual manual. [Brian Troha]
762S2650 improvements: [couriersud]
763 - Added S2650_FO_PORT fake port for flag output line.
764 - Made CHECK_IRQ_LINE an inline
765 - Verified irq handling (with help from Quench)
1338766
1339Various improvements to the Speed Attack driver [Angelo Salese]
1340 * Hooked up basic mc6845 crtc, fixing resolution and refresh rate;
1341 * Added the watchdog;
1342 * Corrected system clock;
1343 * Removed a video quirkness (tilemap h/w values were bigger than its VRAM) and cleaned up some other minor stuff;
767Complete dump of Planet Harriers. [Guru]
1344768
1345Redumped bingor2 gfx roms. [Team Europe]
769Ported SPC7110 support from bsnes. [Harmony]
1346770
1347Simplified Atomiswave's decryption routine & keys. [Andreas Naive]
771Ported ST010 support from bsnes. [Fabio Priuli]
1348772
1349Added Guardian Storm PCB layout [Brian Troha]
773Fixes an issue where running ST010 games would hang MESS. [Harmony]
1350774
1351funworld.c improvements [Roberto Fresca]
1352 - Removed generic funworld DRIVER_INIT.
1353 - Added partial PIAs connection diagram.
1354 - Updated technical notes.
775Some progress with protection emulation for herbiedk and 8ballact.
776No more game specific program counter checks. [couriersud]
1355777
1356Rewrite of NES PPU: [Robert Bohms]
1357 - Ported ppu2c0x to use a device memory map
1358 - Ported all rendering to access PPU address space through memory
1359    map
1360 - Updated MAME drivers to install read handlers or memory banks in
1361    PPU memory map, as appropriate.
1362 - Removed all mirroring and banking code from the ppu, as the backing
1363    memory is documented to be external
1364 - Supplied replacement banking alternatives for all MAME drivers
1365    (vsnes.c, playch10.c, cham24.c, and multigam.c)
778Support external baud rates in the MC68681 DUART. [R. Belmont]
1366779
1367Sound map cleanup for the taito_x.c driver. [Tafoid]
780Implemented a RS and WS line interface for tms5220: [couriersud]
781 - this emulates the RS/WS and READY handshaking according
782    to the tms5220 manual. Drivers reading the ready line
783    should most probably use it.
784 - Note: For cases where the READY handshake is done by the cpu
785     sufficient cycles have to be burnt to simulate that the
786    cpu waited. This yet has to be implemented.
1368787
1369Improved Irem sound: [couriersud]
1370 - Better Moon Patrol sound
1371 - Revisited schematics
1372 - Found 10-Yard schematics as well
1373 - Corrected a bug, some discrete values and added two RC nodes from
1374    schematics
788zaccaria.c updates: [couriersud]
789 - Remove tms5220 kludge
790 - hooked up new RS/WS/READY tms5220 interface
791 - removed dac1 as well. Replaced it by attenuation control for ay2,
792    channel B
1375793
1376NMK16 driver clean ups. Merged some of the duplicated code in nmk16.c,
1377and attempting to handle the larger tilemaps used by Thunder Dragon 2,
1378Rapid Hero and Macross 2 in a more correct way. This has fixed some
1379glitches in the intro of Rapid Hero without breaking the ingame
1380graphics. [David Haywood]
794Made INI file order explicit via priorities. [Rene Single]
1381795
1382Added default input mappings for gambling / poker / slot games.
1383Converted many drivers to use the new mappings. [Fabio Priuli]
796Fixed F6 cheat toggle behavior. [Pugsy]
1384797
1385Some improvements to the meadows driver: [robiza]
1386 - set autocenter value to 0 in deadeye
1387 - implemented correct inputs in bowl3d and removed not working flag
798Corrected clocks for V-five pcb. [Corrado Tomaselli]
1388799
1389Unified sets with unknown manufacturer to use all the same
1390manufacturer <unknown>. [Fabio Priuli]
800Added byte swap to the cheat search. [Sandro Ronco]
1391801
1392Decrypted progolfa. [robiza]
802Now allow for banks to take up half of the available slots. Explicit
803banks now work up to bank 64. [Aaron Giles]
1393804
1394Documented what the "language" dipswitch actually does for Rapid Hero.
1395When set to "Japanese", the main characters text "talk" on the Stage
1396Clear screens. When set to "English" you simply see "Stage 'x' Clear"
1397(where 'x' is the current stage you just finished). [Brian Troha]
805Changed all tms5220 lines to (READ|WRITE)_LINE_DEVICE_HANDLER:
806[couriersud]
807 - Added q suffix to denote active low lines
808 - Updated all drivers accordingly.
809 - Removed some trampoline functions
1398810
1399Changed clocks on Trojan as verified on pcb. [Corrado Tomaselli]
811Added TMS5220C variant to tms5220.c [Lord Nightmare]
812 - implemented reset for TMS5220C if /RS and /WS are pulled down
813    together
814 - Inserted LNs email and corrections as comment into source
815 - Created a TODO section.
1400816
1401Changed quake CPU speed to 233MHz, added basic PC IO map, hooked up
14028259, corrected year to 1998, added some TODO statements. [Luigi30]
817Updated gauntlet and firefox to use "new" tms5220 interface.
818[couriersud]
1403819
1404Moved priority_bitmap from a global into the running_machine struct.
1405Updated all drivers accordingly. [Atari Ace]
820Discrete Updates: [Derrick Renaud]
821 - Added DISCRETE_LOGIC_SHIFT - generic shift register
822 - Fixed DISCRETE_BIT_DECODE to apply proper voltage instead of
823    clipping to INT.
1406824
1407Changed Scud Hammer analog controls from paddle to accelerometer.
1408Previously, if you did nothing, the paddle control caused the hammer
1409to smash automatically. [hap]
825Sky Raider - Partial discrete sound. [Derrick Renaud]
1410826
1411Verified and updated the vertical syncs on the following pcb:
1412[Corrado Tomaselli]
1413 - system18 motherboards
1414 - ninja ryukenden
1415 - tricky doc
1416 - raiden
1417 - Ninja Kid 2
1418 - atomic robokid
1419 - tiger road
1420 - stv motherboard
1421 - toki
1422 - raiden 2 / raiden dx (same pcb)
1423 - cabal
1424 - blood bros
1425 - tengai
1426 - gng
1427 - rally byke
1428 - vimana
827SNES: Fixed CG ram reading address. [Angelo Salese]
1429828
1430Fixed some inconsistencies with bootleg manufacturer names, eg. using
1431Bootleg (big B), or using the original company if the rom is a
1432bootleg. [hap]
829Converted 6532riot to devcb interfaces: [couriersud]
830 - updated all drivers
831 - converted drivers to RS/WS tms5220 interface where appropriate
832 - removed quite some trampoline functions
1433833
1434Changed sound z80 of ghost and goblins from 3mhz to 1.5mhz as verified
1435on pcb. [Corrado Tomaselli]
834Corrected incorrect XTAL value for XTAL_32_768kHz [ArcadeNUT]
1436835
1437Documented lamps/motor usage for Night Striker [Angelo Salese]
836Optimized DISCRETE_74LS624 making dkongjr and mario faster.
837[Derrick Renaud]
1438838
1439Made irqs more accurate in City Connection [Angelo Salese]
839SNES: Fixed an incorrectly setted DMA register read, fixes DMA Memory
840tin the test cartridge. [Angelo Salese]
1440841
1441Hooked up Cobra Command sound ROM. [Jim Hernandez, Aaron Giles]
842Further simplifications to Atomiswave's keys. [Andreas Naive]
1442843
1443Fixed cobram3 dip switch. [Xander]
844i8085: [Curt Coder]
845 - RIM instruction now shows the current status of RST5.5 and RST6.5
846    pins.
1444847
1445Fixed a bug related to eating cycles during 68k cpu reset. Previously,
1446initial_cycles had a wrong value after reset, and if cycles were < 0,
1447it'd always return 0. This change also happens to fix a scrolling bug
1448in Fantasy Zone, introduced when that cycle eating thing was added.
1449[hap]
848dkongjr now uses parallel discrete tasks. [couriersud]
1450849
1451Calc 3 update: [David Haywood]
1452 - Shuffled a few things around based on new findings
1453 - Added an extra decryption table used for the Brap Boys startup code
1454    (still doesn't do anything interesting)
1455 - Noted that one of the unknown parameters for the MCU Init command
1456    is where it reads / writes eeprom data from.
1457 - Noted that an additional parameter in the MCU commands may cause
1458   further displacement of the writeback address, as BRap Boys seems
1459   to rely on this (needs further testing) - added a hack for now so
1460   that BRap Boys places the writeback address of the initial table
1461   somewhere that causes it to get executed.
850Removed a number of #ifdef LSB_FIRST in favor of macros that do the
851equivalent. [Atari Ace]
1462852
1463Marked graphics ROMs on Led Storm Rally 2011 (US) as bad, as they
1464cannot possibly be the right ones for this set. [David Haywood]
853Neo Geo updates: [JohnBoy]
854 - Renamed sets based on them being used for the initial AES
855    production runs
856      Renamed tophuntra to tophuntrh, added correct s1
857      Renamed kof97a to kof97h
858      Renamed bstars to bstarsh
859 - Added correct c1 to neocup98
860 - Added correct m1 and v1 to androdun (MVS version layout)
861 - Tagged lastbld2 as newer revision
862 - Identified pbobblena as bootleg, renamed to pbobblenb, renamed roms
863    to 'correct' chip label
864 - Renamed p1 in mslug4, see notes
1465865
1466Properly added support for namcos2 multiple posirq anyway. Fixes
1467the following issues:[hap]
1468 - starblad polys
1469 - fourtrax track and mirror
1470 - dirtfoxj game start spotlight effect, game still locks up tho
1471 - burnforc 'hiccup' glitches when scrolling left/right
1472 - luckywld tunnel glitch (still a bit glitchy though)
1473 - finehour bad sprite colors
1474 
1475Changed vsyncs to the following games: truxton, demon's world, Pang,
1476super pang, block block, yie ar kungfu and kikikaikai.
1477[Corrado Tomaselli]
866Added dipswitches for the photon2 coins, you can now select between 1
867and 6 minutes per coin. Also added information about the original
868games that these have been bootlegged from. [David Haywood]
1478869
1479Corrected sn76459 clock to Ye Ar Kungfu and verified the other clocks.
1480[Corrado Tomaselli]
870listxml changes: [Oliver Stoeneberg]
871 - adds an "optional" flag for rom/disk entries to -listxml output
872 - removed the obsolete "dispose" flag from the DTD in the -listxml
873    output
1481874
1482Changed the main clock of Pang, Super Pang and Block Block.
1483[Corrado Tomaselli]
875Minor optimization/cleanup of Neo Geo rendering. [Christophe Jaillet]
1484876
1485Switched galaxian LFO sound to use the long-disabled NEW_LFO. It's not
1486entirely fixed, but it's closer. [hap]
1487877
1488Minor MCR documentation changes: [Kevin Eshbach]
1489 * Updated all of the TRON sets with location of the roms and the
1490    board they belong to
1491 * Updated the name of the PROM on the Super Sound I/O board
1492 * Added notes about PALs that need to be dumped (The same PAL part
1493    numbers are also  used on Xenophobe and probably other MCR II &
1494    III games.)
1495878
1496Fixed chdman -update to leave the write protect state alone when
1497updating uncompressed CHDs. [Michael Zapf]
1498
1499Changed default key for Mahjong P1 Bet to '3', because '2' was
1500conflicting with P2 Start in 2 players Mahjong games. [Fabio Priuli]
1501
1502
1503
1504879New games added or promoted from NOT_WORKING status
1505880---------------------------------------------------
1506Tetris (Photon System) [Miodrag Milanovic, Mariusz Wojcieszek]
1507Touchmaster 2000 [Mike Green, Dumping Union]
15083-D Bowling [robiza]
1509Panther [Angelo Salese, robiza, Mr. Do]
151039 in 1 [R. Belmont, MooglyGuy]
881Target Panic [Phil Bennett, Tormod, The Dumping Union]
1511882
1512883
1513884
1514885New clones added
1515886----------------
1516Royal Card Professional v2.0 [Team Europe / Dumping Project]
1517  (not working)
1518Guardian Storm [Christian Raftopol, David Haywood, Dumping Union]
1519Outrun (original revision) [Guru]
1520Touchmaster 5000 (v7.01 Standard) [Brian Troha, Dumping Union]
1521Cruis'n Exotica v2.0 [Smitdogg, Guru, Dumping Union] (not working)
1522Pinball Action (set 4, encrypted)  [Team Europe / Dumping Project]
1523Kamakazi III (Galaxian Clone) [Darran]
1524Enchanted Forest (2 sets) [Heihachi_73, AGEMAME] (not working)
1525Soccer Superstars (ver JAC) [f205v] (not working)
1526Dream Land / Super Dream Land (bootleg of Bubble Bobble)
1527  [Sean Clough, David Haywood]
887Battle Garegga (Taiwan / Germany) (Thu Feb 1 1996)
888  [Tormod, The Dumping Union]
889Undercover Cops (US) [Corrado Tomaselli]
890X-Men (2 Players ver EAA) [Corrado Tomaselli]
891Mirax (set 2) [Stefan Lindberg]
892Hellfire (1P Ver., alt) [Stefan Lindberg]
893Country Girl (Japan set 2 with Nichibutsu copyright) [Siftware]
894Vulcan Venture (Older Ver.) [Brian Troha, Dumping Union]
895Mortal Kombat II (rev L3.0) [bulldawg, Smitdogg, Dumping Union]
896Exzisus (Japan, dedicated) [Stefan Lindberg, Phil Bennett]
897Baseball Stars Professional (set 1) [JohnBoy]
898Metal Slug 4 (set 2) [JohnBoy]
1528899
1529900
1530901
1531902New games marked as GAME_NOT_WORKING
1532903------------------------------------
1533Extreme Hunting [Guru]
1534Photo Play [Klaus Sommers, Angelo Salese]
1535Capcom vs. SNK Millenium Fight 2000 (000904) [Deunan Knute]
1536Videotronics Poker [Angelo Salese, Siftware]
1537Bingo Roll (4 sets) [Team Europe, Dumping Project]
1538Space Walk [Siftware, David Haywood]
1539'98 NeoPri Best 44 (Neo Print) [JohnBoy]
1540Top Gear [Heihachi_73, AGEMAME]
1541K.G. Bird (2 sets) [Heihachi_73, AGEMAME]
1542Black Rhino [Heihachi_73, AGEMAME]
15433 Bags Full [Heihachi_73, AGEMAME]
1544Phantom Pays [Heihachi_73, AGEMAME]
1545Sweet Hearts II [Heihachi_73, AGEMAME]
1546Golden Canaries [Heihachi_73, AGEMAME]
1547Coral Riches II [Heihachi_73, AGEMAME]
1548
904Net Select Keiba Victory Furlong [Guru]
905Salary Man Kintarou [Guru]
906Amatic Unknown Slots Game [Roberto Fresca, Team Europe]
907Multi Game I (V.Ger 2.4) [Roberto Fresca, Team Europe]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team