Previous 15994 Revisions Next

r4963 Monday 8th June, 2009 at 11:26:44 UTC by Nathan Woods
Updated to MAME 0.132 core
[ROOT]whatsnew.txt
[docs]messnew.txt
[src]version.c
[src/emu]cpuexec.h crsshair.h devintrf.c devintrf.h devtempl.h sound.h timer.h video.c video.h watchdog.c
[src/emu/cpu/arm7]arm7.c arm7core.c
[src/emu/cpu/dsp56k]dsp56k.h dsp56mem.c dsp56pcu.c
[src/emu/cpu/esrip]esrip.c
[src/emu/cpu/h83002]h8_8.c
[src/emu/cpu/i860]i860dec.c i860dis.c
[src/emu/cpu/m37710]m37710.c
[src/emu/cpu/pdp1]tx0.c
[src/emu/cpu/ssem]ssem.c
[src/emu/cpu/tlcs900]dasm900.c
[src/emu/cpu/tms57002]tmsmake.c
[src/emu/cpu/z80]z80.c
[src/emu/machine]6522via.h 6526cia.h 6532riot.h 6821pia.c 6821pia.h 6840ptm.c 6840ptm.h 6850acia.h 68681.h 74123.h 8255ppi.h 8257dma.h adc083x.c adc083x.h adc1213x.c adc1213x.h at28c16.h cdp1852.h ds1302.c ds1302.h eepromdev.h i2cmem.c i2cmemdev.h i8243.h idectrl.h laserdsc.h latch8.h mb3773.c mb3773.h msm6242.h pd4990a.c pd4990a.h rp5h01.c rp5h01.h smc91c9x.h timekpr.h upd4701.c upd4701.h x2212.h z80ctc.h z80dma.h z80pio.h z80sio.h
[src/emu/sound]cdp1869.h okim6258.h okim6376.c pokey.c
[src/emu/video]mc6845.h tms9927.h tms9928a.c voodoo.c voodoo.h
[src/mame]mame.mak mamedriv.c
[src/mame/audio]atarijsa.c namco52.c namco52.h namco54.c namco54.h trackfld.c wiping.c
[src/mame/drivers]86lions.c aleck64.c aristmk4.c* aristmk5.c arkanoid.c atarisy2.c beaminv.c blktiger.c bogeyman.c bublbobl.c cliffhgr.c cps1.c cps2.c cubeqst.c darius.c ddragon.c dkong.c fantland.c fastfred.c gal3.c galaga.c galaxian.c galaxold.c galdrvr.c gameplan.c ghosteo.c goldstar.c gottlieb.c highvdeo.c hornet.c igs_blit.c itech32.c jangou.c junofrst.c kaneko16.c kyugo.c laserbas.c lasso.c m10.c maygay1b.c maygayv1.c mcr68.c megadriv.c megazone.c meritm.c metro.c mexico86.c mhavoc.c mirax.c mjkjidai.c model2.c mpu4.c naomi.c nbmj8688.c nightgal.c ninjakd2.c ninjaw.c nova2001.c pacman.c paradise.c phoenix.c plygonet.c powerins.c psikyo.c retofinv.c rockola.c royalmah.c scramble.c scregg.c segas16a.c segas16b.c seta.c sfbonus.c shadfrce.c shougi.c snk.c sprint2.c suna8.c suprgolf.c system1.c system16.c taito_z.c tokyocop.c trackfld.c triforce.c twinkle.c vcombat.c vegas.c warriorb.c williams.c wiping.c wiz.c
[src/mame/includes]archimds.h kaneko16.h m79amb.h naomi.h naomibd.h rockola.h sei_crtc.h seta.h suprnova.h system16.h tatsumi.h tetrisp2.h tnzs.h tx1.h wiping.h*
[src/mame/layout]connect4.lay
[src/mame/machine]archimds.c atari_vg.h mathbox.h namco06.c namco06.h namco50.c namco50.h namco51.c namco51.h namco53.c namco53.h pcecommn.c scramble.c seicop.c zs01.c
[src/mame/video]dc.c ninjakd2.c rockola.c system16.c trackfld.c tx1.c wiping.c
[src/mess]mess.mak
[src/mess/audio]mea8000.h
[src/mess/devices]cartslot.h cassette.h kermit.h snapquik.h xmodem.h
[src/mess/drivers]a7800.c ami1200.c amiga.c apf.c apple2gs.c c128.c c16.c c64.c c65.c cbmb.c cpschngr.c cybiko.c genesis.c intv.c lisa.c lynx.c mac.c nc.c pmd85.c ql.c thomson.c timex.c vc20.c vectrex.c z1013.c
[src/mess/includes]cbmieeeb.h cbmserb.h
[src/mess/machine]6525tpi.h 6530miot.h adc080x.h applefdc.h at45dbxx.h ay31015.h cdp1871.h com8116.h ctronics.h ins8250.h
[src/osd/winui]layout.c mameui.rc mui_opts.c mui_opts.h mui_util.c mui_util.h properties.c resource.h treeview.c treeview.h winui.mak
[src/osd/winui/help/docs]whatsnew.txt
[src/osd/winui/help/html]mameui_changes.txt
[src/osd/winui/res]mameui.ico

src/mame/audio/trackfld.c
r4962r4963
22#include "sound/vlm5030.h"
33#include "sound/msm5205.h"
44#include "sound/sn76496.h"
5#include "includes/trackfld.h"
56
67
78#define TIMER_RATE (4096/4)
src/mame/audio/atarijsa.c
r4962r4963
871871   MDRV_IMPORT_FROM(jsa_iii_mono)
872872
873873   /* sound hardware */
874   MDRV_SOUND_REMOVE("adpcm")
874   MDRV_DEVICE_REMOVE("adpcm")
875875MACHINE_DRIVER_END
876876
877877
src/mame/audio/namco52.c
r4962r4963
171171    DEVICE INTERFACE
172172***************************************************************************/
173173
174ADDRESS_MAP_START( namco_52xx_map_io, ADDRESS_SPACE_IO, 8 )
174static ADDRESS_MAP_START( namco_52xx_map_io, ADDRESS_SPACE_IO, 8 )
175175   AM_RANGE(MB88_PORTK,  MB88_PORTK)  AM_READ(namco_52xx_K_r)
176176   AM_RANGE(MB88_PORTO,  MB88_PORTO)  AM_WRITE(namco_52xx_O_w)
177177   AM_RANGE(MB88_PORTP,  MB88_PORTP)  AM_WRITE(namco_52xx_P_w)
r4962r4963
230230    device definition
231231-------------------------------------------------*/
232232
233static const char *DEVTEMPLATE_SOURCE = __FILE__;
233static const char DEVTEMPLATE_SOURCE[] = __FILE__;
234234
235235#define DEVTEMPLATE_ID(p,s)      p##namco_52xx##s
236236#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
src/mame/audio/namco54.c
r4962r4963
138138    DEVICE INTERFACE
139139***************************************************************************/
140140
141ADDRESS_MAP_START( namco_54xx_map_io, ADDRESS_SPACE_IO, 8 )
141static ADDRESS_MAP_START( namco_54xx_map_io, ADDRESS_SPACE_IO, 8 )
142142   AM_RANGE(MB88_PORTK,  MB88_PORTK)  AM_READ(namco_54xx_K_r)
143143   AM_RANGE(MB88_PORTO,  MB88_PORTO)  AM_WRITE(namco_54xx_O_w)
144144   AM_RANGE(MB88_PORTR0, MB88_PORTR0) AM_READ(namco_54xx_R0_r)
r4962r4963
186186    device definition
187187-------------------------------------------------*/
188188
189static const char *DEVTEMPLATE_SOURCE = __FILE__;
189static const char DEVTEMPLATE_SOURCE[] = __FILE__;
190190
191191#define DEVTEMPLATE_ID(p,s)      p##namco_54xx##s
192192#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG | DT_HAS_INLINE_CONFIG
src/mame/audio/namco52.h
r4962r4963
2020   MDRV_DEVICE_ADD(_tag, NAMCO_52XX, _clock) \
2121   MDRV_DEVICE_CONFIG(_interface)
2222
23#define MDRV_NAMCO_52XX_REMOVE(_tag) \
24   MDRV_DEVICE_REMOVE(_tag)
2523
26
2724WRITE8_DEVICE_HANDLER( namco_52xx_write );
2825
2926
src/mame/audio/namco54.h
r4962r4963
1717   MDRV_DEVICE_CONFIG_DATAPTR(namco_54xx_config, discrete, _discrete) \
1818   MDRV_DEVICE_CONFIG_DATA32(namco_54xx_config, firstnode, _firstnode)
1919
20#define MDRV_NAMCO_54XX_REMOVE(_tag) \
21   MDRV_DEVICE_REMOVE(_tag)
2220
23
2421WRITE8_DEVICE_HANDLER( namco_54xx_write );
2522
2623
src/mame/audio/wiping.c
r4962r4963
88
99#include "driver.h"
1010#include "streams.h"
11#include "includes/wiping.h"
1112
1213
1314/* 8 voices max */
src/mame/machine/atari_vg.h
r4962r4963
1313#define MDRV_ATARIVGEAROM_ADD(_tag) \
1414   MDRV_DEVICE_ADD(_tag, ATARIVGEAROM, 0)
1515
16#define MDRV_ATARIVGEAROM_REMOVE(_tag) \
17   MDRV_DEVICE_REMOVE(_tag)
1816
1917/***************************************************************************
2018    FUNCTION PROTOTYPES
src/mame/machine/namco06.c
r4962r4963
293293    device definition
294294-------------------------------------------------*/
295295
296static const char *DEVTEMPLATE_SOURCE = __FILE__;
296static const char DEVTEMPLATE_SOURCE[] = __FILE__;
297297
298298#define DEVTEMPLATE_ID(p,s)      p##namco_06xx##s
299299#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET | DT_HAS_INLINE_CONFIG
src/mame/machine/namco06.h
r4962r4963
2323   MDRV_DEVICE_CONFIG_DATAPTR(namco_06xx_config, chip2, _chip2) \
2424   MDRV_DEVICE_CONFIG_DATAPTR(namco_06xx_config, chip3, _chip3)
2525
26#define MDRV_NAMCO_06XX_REMOVE(_tag) \
27   MDRV_DEVICE_REMOVE(_tag)
2826
29
3027READ8_DEVICE_HANDLER( namco_06xx_data_r );
3128WRITE8_DEVICE_HANDLER( namco_06xx_data_w );
3229READ8_DEVICE_HANDLER( namco_06xx_ctrl_r );
src/mame/machine/scramble.c
r4962r4963
120120   cavelon_banksw(space->machine);
121121
122122   if      ((offset >= 0x0100) && (offset <= 0x0103))
123      return ppi8255_r((device_config*)devtag_get_device(space->machine, "ppi8255_0"), offset - 0x0100);
123      return ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), offset - 0x0100);
124124   else if ((offset >= 0x0200) && (offset <= 0x0203))
125      return ppi8255_r((device_config*)devtag_get_device(space->machine, "ppi8255_1"), offset - 0x0200);
125      return ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), offset - 0x0200);
126126
127127   return 0xff;
128128}
src/mame/machine/namco53.c
r4962r4963
145145    DEVICE INTERFACE
146146***************************************************************************/
147147
148ADDRESS_MAP_START( namco_53xx_map_io, ADDRESS_SPACE_IO, 8 )
148static ADDRESS_MAP_START( namco_53xx_map_io, ADDRESS_SPACE_IO, 8 )
149149   AM_RANGE(MB88_PORTK,  MB88_PORTK)  AM_READ(namco_53xx_K_r)
150150   AM_RANGE(MB88_PORTO,  MB88_PORTO)  AM_WRITE(namco_53xx_O_w)
151151   AM_RANGE(MB88_PORTP,  MB88_PORTP)  AM_WRITE(namco_53xx_P_w)
r4962r4963
196196    device definition
197197-------------------------------------------------*/
198198
199static const char *DEVTEMPLATE_SOURCE = __FILE__;
199static const char DEVTEMPLATE_SOURCE[] = __FILE__;
200200
201201#define DEVTEMPLATE_ID(p,s)      p##namco_53xx##s
202202#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
src/mame/machine/namco53.h
r4962r4963
1717   MDRV_DEVICE_ADD(_tag, NAMCO_53XX, _clock) \
1818   MDRV_DEVICE_CONFIG(_interface)
1919
20#define MDRV_NAMCO_53XX_REMOVE(_tag) \
21   MDRV_DEVICE_REMOVE(_tag)
2220
23
2421void namco_53xx_read_request(const device_config *device);
2522READ8_DEVICE_HANDLER( namco_53xx_read );
2623
src/mame/machine/pcecommn.c
r4962r4963
2929/* todo: how many input ports does the PCE have? */
3030WRITE8_HANDLER ( pce_joystick_w )
3131{
32   h6280io_set_buffer((device_config*)space->cpu, data);
32   h6280io_set_buffer(space->cpu, data);
3333    /* bump counter on a low-to-high transition of bit 1 */
3434    if((!joystick_data_select) && (data & JOY_CLOCK))
3535    {
src/mame/machine/zs01.c
r4962r4963
664664   return c->sdar;
665665}
666666
667static void nvram_handler_zs01( int chip, running_machine *machine, mame_file *file, int read_or_write )
667static void nvram_handler_zs01( running_machine *machine, mame_file *file, int read_or_write, int chip )
668668{
669669   struct zs01_chip *c;
670670
r4962r4963
686686   }
687687}
688688
689NVRAM_HANDLER( zs01_0 ) { nvram_handler_zs01( 0, machine, file, read_or_write ); }
690NVRAM_HANDLER( zs01_1 ) { nvram_handler_zs01( 1, machine, file, read_or_write ); }
689NVRAM_HANDLER( zs01_0 ) { nvram_handler_zs01( machine, file, read_or_write, 0 ); }
690NVRAM_HANDLER( zs01_1 ) { nvram_handler_zs01( machine, file, read_or_write, 1 ); }
src/mame/machine/namco50.c
r4962r4963
254254    DEVICE INTERFACE
255255***************************************************************************/
256256
257ADDRESS_MAP_START( namco_50xx_map_io, ADDRESS_SPACE_IO, 8 )
257static ADDRESS_MAP_START( namco_50xx_map_io, ADDRESS_SPACE_IO, 8 )
258258   AM_RANGE(MB88_PORTK,  MB88_PORTK)  AM_READ(namco_50xx_K_r)
259259   AM_RANGE(MB88_PORTO,  MB88_PORTO)  AM_WRITE(namco_50xx_O_w)
260260   AM_RANGE(MB88_PORTR0, MB88_PORTR0) AM_READ(namco_50xx_R0_r)
r4962r4963
294294    device definition
295295-------------------------------------------------*/
296296
297static const char *DEVTEMPLATE_SOURCE = __FILE__;
297static const char DEVTEMPLATE_SOURCE[] = __FILE__;
298298
299299#define DEVTEMPLATE_ID(p,s)      p##namco_50xx##s
300300#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
src/mame/machine/namco50.h
r4962r4963
55#define MDRV_NAMCO_50XX_ADD(_tag, _clock) \
66   MDRV_DEVICE_ADD(_tag, NAMCO_50XX, _clock) \
77
8#define MDRV_NAMCO_50XX_REMOVE(_tag) \
9   MDRV_DEVICE_REMOVE(_tag)
108
11
129READ8_DEVICE_HANDLER( namco_50xx_read );
1310void namco_50xx_read_request(const device_config *device);
1411WRITE8_DEVICE_HANDLER( namco_50xx_write );
src/mame/machine/archimds.c
r4962r4963
314314READ32_HANDLER(ioc_r)
315315{
316316   #ifdef MESS
317   device_config *fdc = (device_config*)devtag_get_device(space->machine, "wd1772");
317   const device_config *fdc = (const device_config *)devtag_get_device(space->machine, "wd1772");
318318   #endif
319319   if (offset >= 0x80000 && offset < 0xc0000)
320320   {
r4962r4963
364364WRITE32_HANDLER(ioc_w)
365365{
366366   #ifdef MESS
367   device_config *fdc = (device_config*)devtag_get_device(space->machine, "wd1772");
367   const device_config *fdc = (const device_config *)devtag_get_device(space->machine, "wd1772");
368368   #endif
369369   if (offset >= 0x80000 && offset < 0xc0000)
370370   {
src/mame/machine/mathbox.h
r4962r4963
1313#define MDRV_MATHBOX_ADD(_tag) \
1414   MDRV_DEVICE_ADD(_tag, MATHBOX, 0)
1515
16#define MDRV_MATHBOX_REMOVE(_tag) \
17   MDRV_DEVICE_REMOVE(_tag)
1816
1917
20
2118/***************************************************************************
2219    FUNCTION PROTOTYPES
2320***************************************************************************/
src/mame/machine/namco51.c
r4962r4963
350350    DEVICE INTERFACE
351351***************************************************************************/
352352
353ADDRESS_MAP_START( namco_51xx_map_io, ADDRESS_SPACE_IO, 8 )
353static ADDRESS_MAP_START( namco_51xx_map_io, ADDRESS_SPACE_IO, 8 )
354354//  AM_RANGE(MB88_PORTK,  MB88_PORTK)  AM_READ(namco_51xx_K_r)
355355//  AM_RANGE(MB88_PORTO,  MB88_PORTO)  AM_WRITE(namco_51xx_O_w)
356356//  AM_RANGE(MB88_PORTR0, MB88_PORTR0) AM_READ(namco_51xx_R0_r)
r4962r4963
432432    device definition
433433-------------------------------------------------*/
434434
435static const char *DEVTEMPLATE_SOURCE = __FILE__;
435static const char DEVTEMPLATE_SOURCE[] = __FILE__;
436436
437437#define DEVTEMPLATE_ID(p,s)      p##namco_51xx##s
438438#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
src/mame/machine/namco51.h
r4962r4963
1616   MDRV_DEVICE_ADD(_tag, NAMCO_51XX, _clock) \
1717   MDRV_DEVICE_CONFIG(_interface)
1818
19#define MDRV_NAMCO_51XX_REMOVE(_tag) \
20   MDRV_DEVICE_REMOVE(_tag)
2119
22
2320READ8_DEVICE_HANDLER( namco_51xx_read );
2421WRITE8_DEVICE_HANDLER( namco_51xx_write );
2522
src/mame/machine/seicop.c
r4962r4963
7373
7474static UINT16 copd2_offs = 0;
7575
76static void copd2_set_tableoffset(UINT16 data, running_machine *machine)
76static void copd2_set_tableoffset(running_machine *machine, UINT16 data)
7777{
7878   logerror("mcu_offs %04x\n", data);
7979   copd2_offs = data;
r4962r4963
122122
123123}
124124
125static void copd2_set_tabledata(UINT16 data, running_machine *machine)
125static void copd2_set_tabledata(running_machine *machine, UINT16 data)
126126{
127127   copd2_table[copd2_offs] = data;
128128   logerror("mcu_data %04x\n", data);
r4962r4963
11531153      case (0x024/2): { prot_bcd[2] = protection_bcd_jsr(cop_mcu_ram[offset]); break; }
11541154
11551155      /* Command tables for 0x500 / 0x502 commands */
1156      case (0x032/2): { copd2_set_tabledata(data, space->machine); break; }
1157      case (0x034/2): { copd2_set_tableoffset(data, space->machine); break; }
1156      case (0x032/2): { copd2_set_tabledata(space->machine, data); break; }
1157      case (0x034/2): { copd2_set_tableoffset(space->machine, data); break; }
11581158      case (0x038/2):   { cop_438 = data; break; }
11591159      case (0x03a/2):   { cop_43a = data; break; }
11601160      case (0x03c/2): { cop_43c = data; break; }
src/mame/mamedriv.c
r4962r4963
167167   DRIVER( skyraidr )   /* bootleg */
168168   DRIVER( batman2 )   /* bootleg */
169169   DRIVER( warofbug )   /* (c) 1981 Armenia */
170   DRIVER( redufo )   /* bootleg - original should be (c) Artic */
170   DRIVER( redufo )   /* bootleg - original should be (c) Artic / Arcade TV Game List (P.104, Left, 25 from top) */
171171   DRIVER( exodus )   /* Subelectro - bootleg? */
172172   DRIVER( streakng )   /* [1980] Shoei */
173173   DRIVER( pacmanbl )   /* bootleg */
r4962r4963
178178   DRIVER( jumpbugb )   /* (c) 1981 Sega */
179179   DRIVER( levers )   /* (c) 1983 Rock-ola */
180180   DRIVER( azurian )   /* (c) 1982 Rait Electronics Ltd */
181   DRIVER( orbitron )   /* Signatron USA */
181   DRIVER( orbitron )   /* (c) 1982 Signatron USA (Arcade Tv Game List - P.160, Left, 22 from top) */
182182   DRIVER( mooncrgx )   /* bootleg */
183183   DRIVER( mooncrst )   /* (c) 1980 Nichibutsu */
184184   DRIVER( mooncrsu )   /* (c) 1980 Nichibutsu USA */
r4962r4963
232232   DRIVER( luctoday )   /* 1980 Sigma */
233233   DRIVER( chewing )   /* ?? unknown */
234234   DRIVER( catacomb )   /* 1982 MTM Games */
235   DRIVER( ckongg )    /* 1981 bootleg */
236   DRIVER( kkgalax )   /* 1981 bootleg */
237   DRIVER( porter )    /* 19?? bootleg */
235   DRIVER( ckongg )   /* 1981 bootleg */
236   DRIVER( kkgalax )   /* 1981 bootleg */
237   DRIVER( porter )   /* 1982 bootleg (Arcade TV Game List - P.98, Left, 15 from bottom) */
238238
239239   /* Has some similarities with Moon Cresta but Board is very different */
240240   DRIVER( rockclim )   /* (c)1981 Taito */
r4962r4963
273273   DRIVER( cavelon )   /* (c) 1983 Jetsoft */
274274   DRIVER( sfx )      /* (c) 1983 Nichibutsu */
275275   DRIVER( skelagon )   /* (c) 1983 Nichibutsu USA */
276   DRIVER( monsterz )   /* (c) 198? Nihon */
276   DRIVER( monsterz )   /* (c) 1982 Nihon (Arcade TV Game List - P.102, Left, 20 from top) */
277277   DRIVER( mimonscr )   /* Universal Video Games */
278278   DRIVER( mimonkey )   /* bootleg */
279279   DRIVER( mimonsco )   /* bootleg */
r4962r4963
867867   DRIVER( cybsledj )   /* (c) 1993 */
868868
869869   /* Galaxian 3 HW */
870   DRIVER( gal3 )
870   DRIVER( gal3 )      /* (c) 1992 (Arcade TV Game List - P.73, Right, 6 from top) */
871871
872872   /* Namco System 22 games */
873873   DRIVER( ridgerac )   /* (c) 1993 */
r4962r4963
13831383   /* Irem games */
13841384   /* trivia: IREM means "International Rental Electronics Machines" */
13851385   DRIVER( andromed )   /* (c) 1979 */
1386   DRIVER( ipminvad )   /* M10 no copyright notice */
1386   DRIVER( ipminvad )   /* M10 no copyright notice (Arcade TV Game List - P.67, Left, 26 from top) */
13871387   DRIVER( ipminva1 )   /* M10 incomplete dump */
13881388   DRIVER( ptrmj )      /* M14 (c) 1979  */
13891389   DRIVER( skychut )   /* Irem [1980] */
13901390   DRIVER( spacbeam )   /* M15 no copyright notice */
13911391   DRIVER( greenber )   /* Irem */
1392   DRIVER( headoni )   /* Irem no copyright notice */
1392   DRIVER( headoni )   /* Irem no copyright notice (1979 - Arcade TV Game List - P.98, Left, 7 from top ) */
13931393
13941394   DRIVER( redalert )   /* (c) 1981 + "GDI presents" */
13951395   DRIVER( demoneye )   /* (c) 1981 */
r4962r4963
23192319   DRIVER( flashgla )   /* (c) 1985 Sega */
23202320   DRIVER( srdmissn )   /* (c) 1986 Taito Corporation */
23212321   DRIVER( fx )      /* bootleg */
2322   DRIVER( legend )   /* no copyright notice [1986 Sega/Coreland?] */
2322   DRIVER( legend )   /* no copyright notice [1986 Sega/Coreland] (Arcade TV Game List - P.104, Left, 14 from top) */
23232323   DRIVER( airwolf )   /* (c) 1987 Kyugo */
23242324   DRIVER( airwolfa )   /* (c) 1987 Kyugo */
23252325   DRIVER( skywolf )   /* bootleg */
r4962r4963
40594059   /* Model 2B-CRX (SHARC, SCSP sound board) */
40604060   DRIVER( vstriker )   /* 1995.05 virtua Striker */
40614061   DRIVER( vstrikro )
4062   DRIVER( rchase2 )   /* 1995.06 Rail Chase 2 */
4062   DRIVER( rchase2 )   /* 1995.06 Rail Chase 2 (Arcade TV Game List - P.104, Left, 12 from top) */
40634063   DRIVER( indy500 )   /* 1995.07 Indy 500 */
40644064   DRIVER( indy500d )
40654065   DRIVER( skytargt )   /* 1995.10 Sky Target */
r4962r4963
44104410                  /* 2003.07 Yonin Uchi Mahjong MJ Network Taisen ver. NEW */
44114411   DRIVER( psyvar2 )   /* 2003.11 Psyvariar 2 */
44124412   DRIVER( puyofev   )   /* 2003.11 Puyopuyo Fever */
4413   DRIVER( tetkiwam )   /* 2004.06 Tetris Kiwamemichi */
4413   DRIVER( tetkiwam )   /* 2004.06 Tetris Kiwamemichi (Arcade TV Game List - P.88, Right, 11 from bottom) */
44144414   DRIVER( cfield )   /* 2004.06 Chaos Field */
44154415   DRIVER( trizeal )   /* 2004.09 Trizeal */
44164416                  /* 2005.03 Melty Blood Act Cadenza */
r4962r4963
63936393   DRIVER( buriki )   /* 007 1999/05/21 Buriki One */
63946394
63956395   /* Alpha Denshi games */
6396   DRIVER( shougi )
6397   DRIVER( shougi2 )
6396   DRIVER( shougi )   /* (c) 1982 (Arcade TV Game List - P.80, Left, 9 from top) */
6397   DRIVER( shougi2 )   /* (c) 1982 (Arcade TV Game List - P.80, Left, 10 from top) */
63986398   DRIVER( champbas )   /* (c) 1983 Sega */
63996399   DRIVER( champbbj )   /* (c) 1983 Alpha Denshi Co. */
64006400   DRIVER( champbja )   /* (c) 1983 Alpha Denshi Co. */
r4962r4963
64426442   /* Technos games */
64436443   DRIVER( scregg )   /* TA-0001 (c) 1983 */
64446444   DRIVER( eggs )      /* TA-0002 (c) 1983 Universal USA */
6445   DRIVER( dommy )      /* TA-00?? (c) */
6445   DRIVER( dommy )      /* TA-00?? (c) 1983 (Arcade TV Game List - P.90, Left, 13 from top) */
64466446   DRIVER( bigprowr )   /* TA-0007 (c) 1983 */
64476447   DRIVER( tagteam )   /* TA-0007 (c) 1983 + Data East license */
64486448   DRIVER( ssozumo )   /* TA-0008 (c) 1984 */
r4962r4963
64506450   DRIVER( myststno )   /* TA-0010 (c) 1984 */
64516451   DRIVER( dogfgt )   /* TA-0011 (c) 1984 */
64526452   DRIVER( dogfgtj )   /* TA-0011 (c) 1984 */
6453   DRIVER( bogeyman )   /* -0204-0 (Data East part number) (c) [1985?] */
6453   DRIVER( bogeyman )   /* -0204-0 (Data East part number) (c) 1985 (Arcade TV Game List - P.96, Right, 8 from top) */
64546454   DRIVER( matmania )   /* TA-0015 (c) 1985 + Taito America license */
64556455   DRIVER( excthour )   /* TA-0015 (c) 1985 + Taito license */
64566456   DRIVER( maniach )   /* TA-0017 (c) 1986 + Taito America license */
r4962r4963
65176517   DRIVER( wwfwfstj )   /* TA-0031 (c) 1991 (Japan) */
65186518   DRIVER( shadfrce )   /* TA-0032 (c) 1993 (US) */
65196519   DRIVER( shadfrcj )   /* TA-0032 (c) 1993 (Japan) */
6520   DRIVER( shadfrcjv2 )   /* TA-0032 (c) 1993 (Japan) */
65206521
65216522   /* Stern "Berzerk hardware" games */
65226523   DRIVER( berzerk )   /* (c) 1980 */
r4962r4963
65656566   DRIVER( ninjakun )   /* UPL-84003 (c) 1984 Taito Corporation */
65666567   DRIVER( raiders5 )   /* UPL-85004 (c) 1985 */
65676568   DRIVER( raidrs5t )   /* UPL-85004 (c) 1985 Taito license */
6568   DRIVER( pkunwar )   /* UPL-????? [1985?] */
6569   DRIVER( pkunwarj )   /* UPL-????? [1985?] */
6569   DRIVER( pkunwar )   /* UPL-????? (c) 1985 (Arcade Game TV List - P.98, Left, 22 from top) */
6570   DRIVER( pkunwarj )   /* UPL-????? (c) 1985 (Arcade Game TV List - P.98, Left, 22 from top) */
65706571   DRIVER( xxmissio )   /* UPL-86001 [1986] */
65716572   DRIVER( ninjakd2 )   /* UPL-????? (c) 1987 */
65726573   DRIVER( ninjak2a )   /* UPL-????? (c) 1987 */
65736574   DRIVER( ninjak2b )   /* UPL-????? (c) 1987 */
65746575   DRIVER( rdaction )   /* UPL-87003?(c) 1987 + World Games license */
65756576   DRIVER( mnight )   /* UPL-????? (c) 1987 distributed by Kawakus */
6576   DRIVER( arkarea )   /* UPL-87007 (c) [1987] */
6577   DRIVER( arkarea )   /* UPL-87007 (c) 1988 (Arcade TV Game List - P.67, Right, 2 from top)*/
65776578   DRIVER( robokid )   /* UPL-88013 (c) 1988 */
65786579   DRIVER( robokidj )   /* UPL-88013 (c) 1988 */
65796580   DRIVER( robokdj2 )   /* UPL-88013 (c) 1988 */
r4962r4963
73117312    */
73127313
73137314   /* Galeco PC based games */
7314   DRIVER( tokyocop )
7315   DRIVER( tokyocop )   /* (c) 2003 (Arcade TV Game List - P.168, Right, 19 from bottom) */
73157316
73167317   /* Kaneko games */
73177318   DRIVER( hvyunit )   /* (c) 1988 Kaneko */
r4962r4963
74167417   DRIVER( wits )      /* (c) 1989 Athena (Visco license) */
74177418   DRIVER( thunderl )   /* (c) 1990 Seta + Romstar or Visco license (DSW) */
74187419   DRIVER( wiggie )   /* (c) 1994 Promat (not genuine seta hardware, but based on thunderl code) */
7420   DRIVER( jockeyc )   /* (c) 1990 [Seta] (Visco license) */
74197421   DRIVER( rezon )      /* (c) 1991 Allumer */
74207422   DRIVER( rezont )   /* (c) 1991 Allumer / Taito */
74217423   DRIVER( stg )      /* (c) 1991 Athena / Tecmo */
r4962r4963
75267528   DRIVER( vivdolls )   /* (c) 1998 Visco */
75277529   DRIVER( srmvs )      /* (c) 1999 Seta */
75287530   DRIVER( twrshaft )   /* (c) 2003 Aruze */
7529   DRIVER( hipai )
7530   DRIVER( doncdoon )
7531   DRIVER( kurufev )
7532   DRIVER( mayjin3 )
7531   DRIVER( hipai )      /* (c) 2003 Seta/Aruze (Arcade TV Game List - P.92, Right, 16 from top) */
7532   DRIVER( doncdoon )   /* (c) 2003 Aruze (Arcade TV Game List - P.90, Right, 8 from bottom) */
7533   DRIVER( kurufev )   /* (c) 2003 Aruze (Arcade TV Game List - P.75, Right, 1st entry on top) */
7534   DRIVER( mayjin3 )   /* (c) 2000 Seta (Arcade TV Game List - P.101, Right, 9 from top) */
75337535
7536
75347537   /* Atlus games */
75357538   DRIVER( powerins )   /* (c) 1993 Atlus (USA) */
75367539   DRIVER( powerinj )   /* (c) 1993 Atlus (Japan) */
r4962r4963
76957698
76967699   /* Metro games */
76977700   DRIVER( karatour )   /* (c) 1992 Mitchell */
7698   DRIVER( ladykill )   /* Yanyaka + Mitchell license */
7699   DRIVER( moegonta )   /* Yanyaka (Japan) */
7701   DRIVER( ladykill )   /* (c) 1993 Yanyaka + Mitchell license - (Arcade TV Game List - P.101, Right, 2 from Bottom) */
7702   DRIVER( moegonta )   /* (c) 1993 Yanyaka (Japan) (Arcade TV Game List - P.101, Right, 2 from Bottom) */
77007703   DRIVER( pangpoms )   /* (c) 1992 */
77017704   DRIVER( pangpomm )   /* (c) 1992 Mitchell / Metro */
77027705   DRIVER( skyalert )   /* (c) 1992 */
r4962r4963
77287731   DRIVER( gstrik2 )   /* (c) 1996 Human Amusement */
77297732   DRIVER( hyprduel )   /* (c) 1993 Technosoft (World) */
77307733   DRIVER( hyprdelj )   /* (c) 1993 Technosoft (Japan) */
7731   DRIVER( magerror )   /* (c) 199? Technosoft (Japan) */
7734   DRIVER( magerror )   /* (c) 1994 Technosoft (Japan) (Arcade TV Game List - P.100, Left, 13 from Bottom) */
77327735   DRIVER( puzzlet )   /* (c) 2000 Yunizu Corporation (Japan) */
77337736
77347737   /* Venture Line games */
r4962r4963
78237826   DRIVER( openmj )   /* (c) 1982 Nichibutsu */
78247827   DRIVER( royalmah )   /* Falcon bootleg */
78257828   DRIVER( janyoup2 )   /* Falcon bootleg */
7829   DRIVER( janputer )  /* (c) 1982 Taito */
78267830   DRIVER( janoh )      /* (c) 1984 Toaplan */
78277831   DRIVER( janoha )   /* (c) 1984 Toaplan */
78287832   DRIVER( jansou )   /* (c) 1985 Dyna */
r4962r4963
80608064   DRIVER( starcrus )   /* (c) 1977 Ramtek */
80618065
80628066   /* Omori games */
8063   DRIVER( shuttlei )   /* (c) 197? Omori */
8067   DRIVER( shuttlei )   /* (c) 1979 Omori (Arcade Tv Game List - P.79, Left, 6 from bottom) */
80648068   DRIVER( battlex )   /* (c) 1982 Omori E. Co., Ltd. */
80658069   DRIVER( carjmbre )   /* (c) 1983 Omori Electric Co., Ltd. */
80668070   DRIVER( popper )   /* (c) 1983 Omori Electric Co., Ltd. */
r4962r4963
84528456   DRIVER( bbprot )   /* unfinished prototype */
84538457   DRIVER( flower )   /* (c) 1986 Komax */
84548458   DRIVER( flowers )   /* (c) 1986 Sega/Alpha */
8455   DRIVER( beaminv )   /* Tekunon Kougyou */
8456   DRIVER( beaminva )   /* Tekunon Kougyou */
8459   DRIVER( beaminv )   /* (c) 1979 Tekunon Kougyou (Arcade TV Game List - P.95, Left, 9 from top) */
8460   DRIVER( beaminva )   /* (c) 1979 Tekunon Kougyou (Arcade TV Game List - P.95, Left, 9 from top) */
84578461   DRIVER( mcatadv )   /* (c) 1993 Wintechno */
84588462   DRIVER( mcatadvj )   /* (c) 1993 Wintechno */
84598463   DRIVER( catt )      /* (c) 1993 Wintechno */
r4962r4963
86568660   DRIVER( megat5 )   /* (c) 1997 Merit */
86578661   DRIVER( megat5nj )   /* (c) 1997 Merit */
86588662   DRIVER( megat6 )   /* (c) 1998 Merit */
8659   DRIVER( suprgolf )   /* (c) 19?? Nasco */
8663   DRIVER( suprgolf )   /* (c) 1989 Nasco */
86608664   DRIVER( hotblock )   /* (c) 1993 Nics? / Nix? */
86618665   DRIVER( pntnpuzl )   /* Century? */
86628666   DRIVER( trucocl )   /* (c) 1991 Miky SRL */
r4962r4963
86738677   DRIVER( mdrawpkr )   /* (c) 19?? */
86748678   DRIVER( laserbas )   /* (c) 1981 Amstar/HOEI */
86758679   DRIVER( laserbsa )   /* (c) 1981 Amstar/HOEI */
8676   DRIVER( futflash )   /* (c) 19?? HOEI */
8680   DRIVER( futflash )   /* (c) 1981 HOEI (Arcade TV Game List - P.96, Right, 18 from top) */
86778681   DRIVER( turbosub )   /* (c) 1985 Entertainment Sciences */
86788682   DRIVER( turbosb7 )   /* (c) 1985 Entertainment Sciences */
86798683   DRIVER( turbosb6 )   /* (c) 1985 Entertainment Sciences */
r4962r4963
90819085   DRIVER( 86lions )   /* (c) 1985? */
90829086   DRIVER( caswin )   /* (c) 1985 */
90839087
9088   /* Aristocrat Mk4 hardware */
9089   DRIVER( eforest )   /* (c) 1994 */
9090
90849091   /* Aristocrat Mk5 hardware */
90859092   DRIVER( swthrt2v )   /* (c) 1995 */
90869093   DRIVER( enchfrst )   /* (c) 1995 */
9094   DRIVER( dolphntr )   /* (c) 1996 */
9095   DRIVER( dolphtra )   /* (c) 1996 */
90879096   DRIVER( dmdtouch )   /* (c) 1997 */
90889097   DRIVER( goldprmd )   /* (c) 1997 */
90899098   DRIVER( qotn )      /* (c) 1997 */
src/mame/includes/seta.h
r4962r4963
6868extern int ssv_tilemap_offsx, ssv_tilemap_offsy;
6969
7070extern UINT16 *eaglshot_gfxram, *gdfs_tmapram, *gdfs_tmapscroll;
71extern char eaglshot_dirty, *eaglshot_dirty_tile;
7271
7372READ16_HANDLER( ssv_vblank_r );
7473WRITE16_HANDLER( ssv_scroll_w );
src/mame/includes/tnzs.h
r4962r4963
2626WRITE8_HANDLER( tnzs_mcu_w );
2727INTERRUPT_GEN( arknoid2_interrupt );
2828MACHINE_RESET( tnzs );
29WRITE8_HANDLER( tnzs_sharedram_w );
3029WRITE8_HANDLER( tnzs_bankswitch_w );
3130WRITE8_HANDLER( tnzs_bankswitch1_w );
3231
src/mame/includes/naomi.h
r4962r4963
1212   JVSBD_KEYBOARD
1313};
1414
15/*----------- defined in machine/naomi.c -----------*/
16
1517extern DRIVER_INIT( naomi );
1618extern DRIVER_INIT( naomi_mp );
1719
src/mame/includes/sei_crtc.h
r4962r4963
1/*----------- defined in video -----------*/
1/*----------- defined in video/sei_crtc.c -----------*/
22
33extern UINT16 *seibucrtc_sc0vram,*seibucrtc_sc1vram,*seibucrtc_sc2vram,*seibucrtc_sc3vram;
44extern UINT16 *seibucrtc_vregs;
55extern UINT16 seibucrtc_sc0bank;
66
7/*----------- defined in drivers -----------*/
8
97WRITE16_HANDLER( seibucrtc_sc0vram_w );
108WRITE16_HANDLER( seibucrtc_sc1vram_w );
119WRITE16_HANDLER( seibucrtc_sc2vram_w );
src/mame/includes/suprnova.h
r4962r4963
33extern UINT32 *skns_tilemapA_ram, *skns_tilemapB_ram, *skns_v3slc_ram;
44extern UINT32 *skns_palette_ram;
55extern UINT32 *skns_pal_regs, *skns_v3_regs, *skns_spc_regs;
6extern UINT32 skns_v3t_dirty[0x4000]; // allocate this elsewhere?
7extern UINT32 skns_v3t_4bppdirty[0x8000]; // allocate this elsewhere?
8extern int skns_v3t_somedirty,skns_v3t_4bpp_somedirty;
96
107/*----------- defined in video/suprnova.c -----------*/
118
src/mame/includes/m79amb.h
r4962r4963
11#include "sound/discrete.h"
22
33
4/*----------- defined in sndhrdw/m79amb.c -----------*/
4/*----------- defined in audio/m79amb.c -----------*/
55
66DISCRETE_SOUND_EXTERN( m79amb );
77
src/mame/includes/tx1.h
r4962r4963
3838WRITE16_HANDLER( tx1_spcs_ram_w );
3939READ16_HANDLER( tx1_math_r );
4040WRITE16_HANDLER( tx1_math_w );
41MACHINE_START( tx1 );
4241MACHINE_RESET( tx1 );
4342
4443
r4962r4963
4948WRITE16_HANDLER( buggyboy_math_w );
5049MACHINE_RESET( buggybjr );
5150MACHINE_RESET( buggyboy );
52MACHINE_START( buggybjr );
53MACHINE_START( buggyboy );
5451
5552/*----------- defined in audio/tx1.c -----------*/
5653READ8_HANDLER( tx1_pit8253_r );
src/mame/includes/tatsumi.h
r4962r4963
11/*----------- defined in drivers/tatsumi.c -----------*/
22
3extern UINT16 *apache3_g_ram;
34extern UINT16 bigfight_a40000[2];
45
56extern UINT8* tatsumi_rom_sprite_lookup1;
r4962r4963
3940extern UINT8 *apache3_z80_ram;
4041extern UINT16 tatsumi_control_word;
4142extern UINT16 apache3_rotate_ctrl[12];
42extern UINT16 *apache3_g_ram;
4343
4444void tatsumi_reset(running_machine *machine);
4545
src/mame/includes/kaneko16.h
r4962r4963
119119extern UINT16* galsnew_fg_pixram;
120120
121121
122/*----------- defined in drivers/galpani2.c -----------*/
123
124void galpani2_mcu_run(running_machine *machine);
125
126122/*----------- defined in video/galpani2.c -----------*/
127123
128124extern UINT16 *galpani2_bg8_0,         *galpani2_bg8_1;
src/mame/includes/system16.h
r4962r4963
124124#define SYS16_MRA16_SPRITERAM      SMH_RAM
125125#define SYS16_MWA16_SPRITERAM      SMH_RAM
126126
127#define SYS16_MRA16_TILERAM      sys16_tileram_r
128#define SYS16_MWA16_TILERAM      sys16_tileram_w
129
130#define SYS16_MRA16_TEXTRAM      sys16_textram_r
131#define SYS16_MWA16_TEXTRAM      sys16_textram_w
132
133127#define SYS16_MRA16_EXTRAM      SMH_RAM
134128#define SYS16_MWA16_EXTRAM      SMH_RAM
135129
r4962r4963
149143
150144/*----------- defined in video/system16.c -----------*/
151145
146extern VIDEO_START( system16a_bootleg );
147extern VIDEO_UPDATE( system16a_bootleg );
148extern VIDEO_UPDATE( system16a_bootleg_passht4b );
149extern WRITE16_HANDLER( system16a_bootleg_tilemapselect_w );
150extern WRITE16_HANDLER( system16a_bootleg_bgscrolly_w );
151extern WRITE16_HANDLER( system16a_bootleg_bgscrollx_w );
152extern WRITE16_HANDLER( system16a_bootleg_fgscrolly_w );
153extern WRITE16_HANDLER( system16a_bootleg_fgscrollx_w );
154extern UINT16* system16a_bootleg_bg0_tileram;
155extern UINT16* system16a_bootleg_bg1_tileram;
156
152157/* video hardware */
153extern READ16_HANDLER( sys16_tileram_r );
154158extern WRITE16_HANDLER( sys16_tileram_w );
155extern READ16_HANDLER( sys16_textram_r );
156159extern WRITE16_HANDLER( sys16_textram_w );
157160extern WRITE16_HANDLER( sys16_paletteram_w );
158161
r4962r4963
164167extern VIDEO_START( system18old );
165168extern VIDEO_UPDATE( system18old );
166169
167/* callback to poll video registers */
168extern void (* sys16_update_proc)( void );
169
170170extern UINT16 *sys16_tileram;
171171extern UINT16 *sys16_textram;
172172extern UINT16 *sys16_spriteram;
src/mame/includes/wiping.h
r0r4963
1/*----------- defined in audio/wiping.c -----------*/
2
3extern UINT8 *wiping_soundregs;
4
5DEVICE_GET_INFO( wiping_sound );
6#define SOUND_WIPING DEVICE_GET_INFO_NAME(wiping_sound)
7
8WRITE8_HANDLER( wiping_sound_w );
9
10
11/*----------- defined in video/wiping.c -----------*/
12
13WRITE8_HANDLER( wiping_flipscreen_w );
14PALETTE_INIT( wiping );
15VIDEO_UPDATE( wiping );
16
src/mame/includes/naomibd.h
r4962r4963
7474#define MDRV_NAOMIBD_MODIFY(_tag) \
7575   MDRV_DEVICE_MODIFY(_tag)
7676
77#define MDRV_NAOMIBD_REMOVE(_tag) \
78   MDRV_DEVICE_REMOVE(_tag)
79
8077/*#define MDRV_NAOMIBD_TMU_MEMORY(_tmu, _tmumem) \
8178    MDRV_DEVICE_CONFIG_DATA32(naomibd_config, tmumem##_tmu, _tmumem)*/
8279
8380
81/*----------- defined in machine/naomibd.c -----------*/
82
8483/***************************************************************************
8584    FUNCTION PROTOTYPES
8685***************************************************************************/
src/mame/includes/tetrisp2.h
r4962r4963
1919
2020WRITE16_HANDLER( tetrisp2_palette_w );
2121WRITE16_HANDLER( rocknms_sub_palette_w );
22READ16_HANDLER( tetrisp2_priority_r );
2322WRITE16_HANDLER( tetrisp2_priority_w );
2423WRITE16_HANDLER( rockn_priority_w );
25READ16_HANDLER( rocknms_sub_priority_r );
2624WRITE16_HANDLER( rocknms_sub_priority_w );
2725READ16_HANDLER( nndmseal_priority_r );
2826
src/mame/includes/rockola.h
r4962r4963
55*************************************************************************/
66
77#include "sound/discrete.h"
8#include "sound/samples.h"
9#include "sound/sn76477.h"
810
911
1012/*----------- defined in audio/rockola.c -----------*/
src/mame/includes/archimds.h
r4962r4963
3434#define ARCHIMEDES_FIQ_PODULE        (0x40)
3535#define ARCHIMEDES_FIQ_FORCE         (0x80)
3636
37/*----------- defined in machine/archimds.c -----------*/
38
3739extern UINT32 *memc_physmem;
3840
3941void archimedes_init(running_machine *machine);         // call at MACHINE_INIT
src/mame/mame.mak
r4962r4963
368368$(MAMEOBJ)/aristocr.a: \
369369   $(DRIVERS)/86lions.o \
370370   $(DRIVERS)/caswin.o \
371   $(DRIVERS)/aristmk4.o \
371372   $(DRIVERS)/aristmk5.o \
372373   $(MACHINE)/archimds.o \
373374
r4962r4963
11321133   $(DRIVERS)/suprloco.o $(VIDEO)/suprloco.o \
11331134   $(DRIVERS)/system1.o $(VIDEO)/system1.o \
11341135   $(DRIVERS)/system16.o $(MACHINE)/system16.o $(VIDEO)/system16.o $(VIDEO)/sys16spr.o \
1135   $(DRIVERS)/system18.o \
11361136   $(DRIVERS)/topshoot.o \
11371137   $(DRIVERS)/turbo.o $(AUDIO)/turbo.o $(VIDEO)/turbo.o \
11381138   $(DRIVERS)/vicdual.o $(AUDIO)/vicdual.o $(VIDEO)/vicdual.o \
src/mame/video/trackfld.c
r4962r4963
88
99#include "driver.h"
1010#include "video/resnet.h"
11#include "includes/trackfld.h"
1112
1213UINT8 *trackfld_scroll;
1314UINT8 *trackfld_scroll2;
src/mame/video/system16.c
r4962r4963
891891static UINT16 system16a_bootleg_tilemapselect;
892892
893893
894int system16a_bootleg_bgscrolly;
895int system16a_bootleg_bgscrollx;
896int system16a_bootleg_fgscrolly;
897int system16a_bootleg_fgscrollx;
894static int system16a_bootleg_bgscrolly;
895static int system16a_bootleg_bgscrollx;
896static int system16a_bootleg_fgscrolly;
897static int system16a_bootleg_fgscrollx;
898898
899899static TILE_GET_INFO( get_system16a_bootleg_tile_infotxt )
900900{
src/mame/video/wiping.c
r4962r4963
88
99#include "driver.h"
1010#include "video/resnet.h"
11#include "includes/wiping.h"
1112
1213
1314static int flipscreen;
src/mame/video/dc.c
r4962r4963
4747
4848static int scanline;
4949static bitmap_t *fakeframebuffer_bitmap;
50static void testdrawscreen(const running_machine *machine,bitmap_t *bitmap,const rectangle *cliprect);
50static void testdrawscreen(running_machine *machine,bitmap_t *bitmap,const rectangle *cliprect);
5151
5252typedef struct texinfo {
5353   UINT32 address, vqbase;
r4962r4963
250250INLINE UINT32 bl76(UINT32 s, UINT32 d) { return bls(blia(s, d), bla(d, d)); }
251251INLINE UINT32 bl77(UINT32 s, UINT32 d) { return bls(blia(s, d), blia(d, d)); }
252252
253static UINT32 (*blend_functions[64])(UINT32 s, UINT32 d) = {
253static UINT32 (*const blend_functions[64])(UINT32 s, UINT32 d) = {
254254   bl00, bl01, bl02, bl03, bl04, bl05, bl06, bl07,
255255   bl10, bl11, bl12, bl13, bl14, bl15, bl16, bl17,
256256   bl20, bl21, bl22, bl23, bl24, bl25, bl26, bl27,
r4962r4963
18541854   render_tri_sorted(bitmap, ti, v+i0, v+i1, v+i2);
18551855}
18561856
1857static void testdrawscreen(const running_machine *machine,bitmap_t *bitmap,const rectangle *cliprect)
1857static void testdrawscreen(running_machine *machine,bitmap_t *bitmap,const rectangle *cliprect)
18581858{
18591859   const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
18601860   int cs,rs,ns;
src/mame/video/rockola.c
r4962r4963
77***************************************************************************/
88
99#include "driver.h"
10#include "includes/rockola.h"
1011
1112
1213UINT8 *rockola_videoram2;
src/mame/video/ninjakd2.c
r4962r4963
9090   return (col & 0x0f) | ((row & 0x1f) << 4) | ((col & 0x70) << 5);
9191}
9292
93static void robokid_get_bg_tile_info(running_machine* const machine, tile_data* const tileinfo, tilemap_memory_index const tile_index, int const gfxnum, const UINT8* const videoram)
93static void robokid_get_bg_tile_info(running_machine* machine, tile_data* const tileinfo, tilemap_memory_index const tile_index, int const gfxnum, const UINT8* const videoram)
9494{
9595   int const lo = videoram[(tile_index << 1)];
9696   int const hi = videoram[(tile_index << 1) | 1];
r4962r4963
127127 *
128128 *************************************/
129129
130static void videoram_alloc(running_machine* const machine, int const size)
130static void videoram_alloc(running_machine* machine, int const size)
131131{
132132   if (size)
133133   {
r4962r4963
355355 *
356356 *************************************/
357357
358static void draw_sprites(running_machine* const machine, bitmap_t* const bitmap)
358static void draw_sprites(running_machine* machine, bitmap_t* bitmap)
359359{
360360   const gfx_element* const gfx = machine->gfx[1];
361361   int const big_xshift = robokid_sprites ? 1 : 0;
r4962r4963
451451// This is very hackish.
452452// (Is there a possibility that software can't select it but hardware can?)
453453
454static void erase_sprites(running_machine* const machine, bitmap_t* const bitmap, const rectangle* const cliprect)
454static void erase_sprites(running_machine* machine, bitmap_t* bitmap, const rectangle* cliprect)
455455{
456456   // if sprite overdraw is disabled, clear the sprite framebuffer
457457   if (!next_sprite_overdraw_enabled)
r4962r4963
473473}
474474
475475
476static void update_sprites(running_machine* const machine)
476static void update_sprites(running_machine* machine)
477477{
478478   erase_sprites(machine, sp_bitmap, 0);
479479   draw_sprites(machine, sp_bitmap);
src/mame/video/tx1.c
r4962r4963
338338   pix[NUM][3][0] = prom_a[0];         pix[NUM][3][1] = prom_b[0];         pix[NUM][3][2] = prom_c[0]; \
339339}
340340
341INLINE void tx1_draw_road_pixel(int screen, UINT8 *bmpaddr,
341INLINE void tx1_draw_road_pixel(running_machine *machine, int screen, UINT8 *bmpaddr,
342342                        UINT8 apix[3], UINT8 bpix[3], UINT32 pixnuma, UINT32 pixnumb,
343343                        UINT8 stl, UINT8 sld, UINT8 selb,
344                        UINT8 bnk, UINT8 rorev, UINT8 eb, UINT8 r, UINT8 delr,
345                        running_machine *machine)
344                        UINT8 bnk, UINT8 rorev, UINT8 eb, UINT8 r, UINT8 delr)
346345{
347346   UINT8 a0 = BIT(apix[0], pixnuma);
348347   UINT8 a1 = BIT(apix[1], pixnuma);
r4962r4963
784783            else
785784               b = 3;
786785
787            tx1_draw_road_pixel(0, bmpaddr,
786            tx1_draw_road_pixel(machine, 0, bmpaddr,
788787                   &pix[0][a][0], &pix[1][b][0],
789788                   pixnum0, pixnum1,
790                   stl, sld, selb, bnkls, rorevls, ebls, rl, delrl, machine);
789                   stl, sld, selb, bnkls, rorevls, ebls, rl, delrl);
791790         }
792791         else
793792            *(bmpaddr) = (bnkls << 6) | (rl << 5);
r4962r4963
806805            else
807806               b = 3;
808807
809            tx1_draw_road_pixel(1, bmpaddr,
808            tx1_draw_road_pixel(machine, 1, bmpaddr,
810809                   &pix[0][a][0], &pix[1][b][0],
811810                   pixnum0, pixnum1,
812                   stl, sld, selb, bnkcs, rorevcs, ebcs, rc, delrc, machine);
811                   stl, sld, selb, bnkcs, rorevcs, ebcs, rc, delrc);
813812         }
814813         else
815814            *(bmpaddr + 256) = (bnkcs << 6) | (rc << 5);
r4962r4963
828827            else
829828               b = 3;
830829
831            tx1_draw_road_pixel(2, bmpaddr,
830            tx1_draw_road_pixel(machine, 2, bmpaddr,
832831                   &pix[0][a][0], &pix[1][b][0],
833832                   pixnum0, pixnum1,
834                   stl, sld, selb, bnkrs, rorevrs, ebrs, rr, delrr, machine);
833                   stl, sld, selb, bnkrs, rorevrs, ebrs, rr, delrr);
835834         }
836835         else
837836            *(bmpaddr + 512) = (bnkrs << 6) | (rr << 5);
src/mame/layout/connect4.lay
r4962r4963
11<?xml version="1.0"?>
22<mamelayout version="2">
3   <element name="digit">
3   <element name="digit" defstate="0">
44   <led7seg>
55         <color red="1.0" green="0.0" blue="0.0" />
66   </led7seg>
r4962r4963
8484
8585   <element name="O" defstate="0">
8686      <text string="O" state="1">
87         <color red="1.0" green="0.0" blue="0.0" />
87         <color red="1.0" green="1.0" blue="0.0" />
8888         <bounds x="0" y="0.1" width="1" height="0.8" />
8989      </text>
9090   </element>
9191
9292   <element name="N" defstate="0">
9393      <text string="N" state="1">
94         <color red="1.0" green="0.0" blue="0.0" />
94         <color red="1.0" green="1.0" blue="0.0" />
9595         <bounds x="0" y="0.1" width="1" height="0.8" />
9696      </text>
9797   </element>
9898
9999   <element name="E" defstate="0">
100100      <text string="E" state="1">
101         <color red="1.0" green="0.0" blue="0.0" />
101         <color red="1.0" green="1.0" blue="0.0" />
102102         <bounds x="0" y="0.1" width="1" height="0.8" />
103103      </text>
104104   </element>
105105
106106   <element name="T" defstate="0">
107107      <text string="T" state="1">
108         <color red="1.0" green="0.0" blue="0.0" />
108         <color red="1.0" green="1.0" blue="0.0" />
109109         <bounds x="0" y="0.1" width="1" height="0.8" />
110110      </text>
111111   </element>
r4962r4963
229229      <backdrop name="blank" element="emptypiece" state="0">
230230         <bounds x="48" y="14" width="7" height="7"/>
231231      </backdrop>
232      <backdrop name="lamp24" element="bluepiece" state="0">
232      <backdrop name="lamp24" element="redpiece" state="0">
233233         <bounds x="0" y="14" width="7" height="7"/>
234234      </backdrop>
235      <backdrop name="lamp25" element="bluepiece" state="0">
235      <backdrop name="lamp25" element="redpiece" state="0">
236236         <bounds x="8" y="14" width="7" height="7"/>
237237      </backdrop>
238      <backdrop name="lamp26" element="bluepiece" state="0">
238      <backdrop name="lamp26" element="redpiece" state="0">
239239         <bounds x="16" y="14" width="7" height="7"/>
240240      </backdrop>
241      <backdrop name="lamp27" element="bluepiece" state="0">
241      <backdrop name="lamp27" element="redpiece" state="0">
242242         <bounds x="24" y="14" width="7" height="7"/>
243243      </backdrop>
244      <backdrop name="lamp28" element="bluepiece" state="0">
244      <backdrop name="lamp28" element="redpiece" state="0">
245245         <bounds x="32" y="14" width="7" height="7"/>
246246      </backdrop>
247      <backdrop name="lamp29" element="bluepiece" state="0">
247      <backdrop name="lamp29" element="redpiece" state="0">
248248         <bounds x="40" y="14" width="7" height="7"/>
249249      </backdrop>
250      <backdrop name="lamp30" element="bluepiece" state="0">
250      <backdrop name="lamp30" element="redpiece" state="0">
251251         <bounds x="48" y="14" width="7" height="7"/>
252252      </backdrop>
253      <backdrop name="lamp16" element="redpiece" state="0">
253      <backdrop name="lamp16" element="bluepiece" state="0">
254254         <bounds x="0" y="14" width="7" height="7"/>
255255      </backdrop>
256256      <backdrop name="lamp17" element="redpiece" state="0">
257257         <bounds x="8" y="14" width="7" height="7"/>
258258      </backdrop>
259      <backdrop name="lamp18" element="redpiece" state="0">
259      <backdrop name="lamp18" element="bluepiece" state="0">
260260         <bounds x="16" y="14" width="7" height="7"/>
261261      </backdrop>
262      <backdrop name="lamp19" element="redpiece" state="0">
262      <backdrop name="lamp19" element="bluepiece" state="0">
263263         <bounds x="24" y="14" width="7" height="7"/>
264264      </backdrop>
265      <backdrop name="lamp20" element="redpiece" state="0">
265      <backdrop name="lamp20" element="bluepiece" state="0">
266266         <bounds x="32" y="14" width="7" height="7"/>
267267      </backdrop>
268      <backdrop name="lamp21" element="redpiece" state="0">
268      <backdrop name="lamp21" element="bluepiece" state="0">
269269         <bounds x="40" y="14" width="7" height="7"/>
270270      </backdrop>
271      <backdrop name="lamp22" element="redpiece" state="0">
271      <backdrop name="lamp22" element="bluepiece" state="0">
272272         <bounds x="48" y="14" width="7" height="7"/>
273273      </backdrop>
274274      <backdrop name="blank" element="emptypiece" state="0">
src/mame/drivers/blktiger.c
r4962r4963
350350   MDRV_CPU_MODIFY("maincpu")
351351   MDRV_CPU_IO_MAP(blktigerbl_io_map)
352352
353   MDRV_CPU_REMOVE("mcu")
353   MDRV_DEVICE_REMOVE("mcu")
354354MACHINE_DRIVER_END
355355
356356/***************************************************************************
src/mame/drivers/bublbobl.c
r4962r4963
760760   MDRV_CPU_PROGRAM_MAP(bootleg_map)
761761   MDRV_CPU_VBLANK_INT("screen", irq0_line_hold)   // interrupt mode 1, unlike Bubble Bobble
762762
763   MDRV_CPU_REMOVE("mcu")
763   MDRV_DEVICE_REMOVE("mcu")
764764MACHINE_DRIVER_END
765765
766766
767767static MACHINE_DRIVER_START( bub68705 )
768768   MDRV_IMPORT_FROM(bublbobl)
769   MDRV_CPU_REMOVE("mcu")
769   MDRV_DEVICE_REMOVE("mcu")
770770
771771   MDRV_CPU_ADD("mcu", M68705, 4000000)   // xtal is 4MHz, divided by 4 internally
772772   MDRV_CPU_PROGRAM_MAP(bootlegmcu_map)
src/mame/drivers/shougi.c
r4962r4963
459459
460460
461461
462GAME( 1982?, shougi,  0,      shougi, shougi,  0, ROT0, "Alpha Denshi Co.", "Shougi", 0 )
463GAME( 1982?, shougi2, shougi, shougi, shougi2, 0, ROT0, "Alpha Denshi Co.", "Shougi 2", 0 )
462GAME( 1982, shougi,  0,      shougi, shougi,  0, ROT0, "Alpha Denshi Co.", "Shougi", 0 )
463GAME( 1982, shougi2, shougi, shougi, shougi2, 0, ROT0, "Alpha Denshi Co.", "Shougi 2", 0 )
src/mame/drivers/hornet.c
r4962r4963
10761076   MDRV_VIDEO_START(hornet_2board)
10771077   MDRV_VIDEO_UPDATE(hornet_2board)
10781078
1079   MDRV_3DFX_VOODOO_REMOVE("voodoo0")
1079   MDRV_DEVICE_REMOVE("voodoo0")
10801080   MDRV_3DFX_VOODOO_1_ADD("voodoo0", STD_VOODOO_1_CLOCK, 2, "lscreen")
10811081   MDRV_3DFX_VOODOO_CPU("dsp")
10821082   MDRV_3DFX_VOODOO_TMU_MEMORY(0, 4)
r4962r4963
10901090   /* video hardware */
10911091   MDRV_PALETTE_LENGTH(65536)
10921092
1093   MDRV_SCREEN_REMOVE("screen")
1093   MDRV_DEVICE_REMOVE("screen")
10941094
10951095   MDRV_SCREEN_ADD("lscreen", RASTER)
10961096   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
r4962r4963
11081108static MACHINE_DRIVER_START( hornet_2board_v2 )
11091109   MDRV_IMPORT_FROM(hornet_2board)
11101110
1111   MDRV_3DFX_VOODOO_REMOVE("voodoo0")
1111   MDRV_DEVICE_REMOVE("voodoo0")
11121112   MDRV_3DFX_VOODOO_2_ADD("voodoo0", STD_VOODOO_2_CLOCK, 2, "lscreen")
11131113   MDRV_3DFX_VOODOO_CPU("dsp")
11141114   MDRV_3DFX_VOODOO_TMU_MEMORY(0, 4)
11151115   MDRV_3DFX_VOODOO_VBLANK(voodoo_vblank_0)
11161116
1117   MDRV_3DFX_VOODOO_REMOVE("voodoo1")
1117   MDRV_DEVICE_REMOVE("voodoo1")
11181118   MDRV_3DFX_VOODOO_2_ADD("voodoo1", STD_VOODOO_2_CLOCK, 2, "rscreen")
11191119   MDRV_3DFX_VOODOO_CPU("dsp2")
11201120   MDRV_3DFX_VOODOO_TMU_MEMORY(0, 4)
src/mame/drivers/powerins.c
r4962r4963
407407   MDRV_SCREEN_MODIFY("screen")
408408   MDRV_SCREEN_REFRESH_RATE(60)
409409
410   MDRV_CPU_REMOVE("soundcpu")
410   MDRV_DEVICE_REMOVE("soundcpu")
411411
412412   MDRV_SOUND_REPLACE("oki1", OKIM6295, 990000) // pin7 not verified
413413   MDRV_SOUND_CONFIG(okim6295_interface_pin7low)
414414   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
415415
416   MDRV_SOUND_REMOVE("oki2")
417   MDRV_SOUND_REMOVE("ym2203")
416   MDRV_DEVICE_REMOVE("oki2")
417   MDRV_DEVICE_REMOVE("ym2203")
418418MACHINE_DRIVER_END
419419
420420static MACHINE_DRIVER_START( powerinb )
r4962r4963
429429   MDRV_CPU_IO_MAP(powerinb_sound_io_map)
430430   MDRV_CPU_PERIODIC_INT(irq0_line_hold, 120)   // YM2203 rate is at 150??
431431
432   MDRV_SOUND_REMOVE("ym2203")   // Sound code talks to one, but it's not fitted on the board
432   MDRV_DEVICE_REMOVE("ym2203")   // Sound code talks to one, but it's not fitted on the board
433433MACHINE_DRIVER_END
434434
435435
src/mame/drivers/paradise.c
r4962r4963
592592
593593   MDRV_VIDEO_UPDATE(torus)
594594
595   MDRV_SOUND_REMOVE("oki2")
595   MDRV_DEVICE_REMOVE("oki2")
596596MACHINE_DRIVER_END
597597
598598static MACHINE_DRIVER_START( madball )
r4962r4963
606606
607607   MDRV_VIDEO_UPDATE(madball)
608608
609   MDRV_SOUND_REMOVE("oki2")
609   MDRV_DEVICE_REMOVE("oki2")
610610MACHINE_DRIVER_END
611611
612612
src/mame/drivers/fastfred.c
r4962r4963
652652   MDRV_CPU_MODIFY("maincpu")
653653   MDRV_CPU_PROGRAM_MAP(jumpcoas_map)
654654
655   MDRV_CPU_REMOVE("audiocpu")
655   MDRV_DEVICE_REMOVE("audiocpu")
656656
657657   /* video hardware */
658658   MDRV_GFXDECODE(jumpcoas)
659659
660660   /* sound hardware */
661   MDRV_SOUND_REMOVE("ay8910.2")
661   MDRV_DEVICE_REMOVE("ay8910.2")
662662MACHINE_DRIVER_END
663663
664664static MACHINE_DRIVER_START( imago )
src/mame/drivers/kaneko16.c
r4962r4963
644644
645645   AM_RANGE(0x600000, 0x60000f) AM_RAM_WRITE(kaneko16_layers_0_regs_w) AM_BASE(&kaneko16_layers_0_regs)   // Layers 0 Regs
646646   AM_RANGE(0x680000, 0x68000f) AM_RAM_WRITE(kaneko16_layers_1_regs_w) AM_BASE(&kaneko16_layers_1_regs)   // Layers 1 Regs
647
648   AM_RANGE(0x700000, 0x70001f) AM_READWRITE(kaneko16_sprites_regs_r, kaneko16_sprites_regs_w) AM_BASE(&kaneko16_sprites_regs)   // Sprites Regs
649
647650   AM_RANGE(0x800000, 0x800001) AM_DEVREADWRITE8("oki1", okim6295_r, okim6295_w, 0x00ff)               // Samples
648651   AM_RANGE(0x880000, 0x880001) AM_DEVREADWRITE8("oki2", okim6295_r, okim6295_w, 0x00ff)
649652
src/mame/drivers/mpu4.c
r4962r4963
398398   }
399399
400400   /* Lamp smoothing, this draws lamps only at the peaks of the AC power that would light them */
401   if ((multiplex_smooth == (input_strobe - 1))||((multiplex_smooth == 7) && (input_strobe == 0))||(multiplex_smooth == input_strobe))
401   if ((multiplex_smooth == (input_strobe - 1))||((multiplex_smooth == 7) && (input_strobe == 0)))
402402   {
403403      draw_lamps();
404404      mpu4_draw_led(input_strobe, led_segs[input_strobe]);
r4962r4963
18911891   MDRV_CPU_MODIFY("maincpu")
18921892   MDRV_CPU_PROGRAM_MAP(mod4_yam_map)
18931893
1894   MDRV_SOUND_REMOVE("ay8913")
1894   MDRV_DEVICE_REMOVE("ay8913")
18951895   MDRV_SOUND_ADD("ym2413", YM2413, MPU4_MASTER_CLOCK/4)
18961896   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
18971897MACHINE_DRIVER_END
r4962r4963
19051905   MDRV_CPU_MODIFY("maincpu")
19061906   MDRV_CPU_PROGRAM_MAP(mod4_oki_map)
19071907
1908   MDRV_SOUND_REMOVE("ay8913")
1908   MDRV_DEVICE_REMOVE("ay8913")
19091909   MDRV_SOUND_ADD("msm6376", OKIM6376, 4000000) //?
19101910   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
19111911MACHINE_DRIVER_END
src/mame/drivers/suna8.c
r4962r4963
963963
964964static WRITE8_HANDLER( brickzn_pcm_w )
965965{
966   static const char *dacs[] = { "dac1", "dac2", "dac3", "dac4" };
966   static const char *const dacs[] = { "dac1", "dac2", "dac3", "dac4" };
967967   dac_signed_data_w( devtag_get_device(space->machine, dacs[offset & 3]), (data & 0xf) * 0x11 );
968968}
969969
src/mame/drivers/nova2001.c
r4962r4963
10571057GAME( 1983, nova2001, 0,        nova2001, nova2001, 0,        ROT0, "UPL", "Nova 2001 (Japan)", 0 )
10581058GAME( 1983, nov2001u, nova2001, nova2001, nova2001, 0,        ROT0, "UPL (Universal license)", "Nova 2001 (US)", 0 )
10591059GAME( 1984, ninjakun, 0,        ninjakun, ninjakun, 0,        ROT0, "[UPL] (Taito license)", "Ninjakun Majou no Bouken", 0 )
1060GAME( 1985?,pkunwar,  0,        pkunwar,  pkunwar,  pkunwar,  ROT0, "UPL", "Penguin-Kun Wars (US)", 0 )
1061GAME( 1985?,pkunwarj, pkunwar,  pkunwar,  pkunwar,  pkunwar,  ROT0, "UPL", "Penguin-Kun Wars (Japan)", 0 )
1060GAME( 1985, pkunwar,  0,        pkunwar,  pkunwar,  pkunwar,  ROT0, "UPL", "Penguin-Kun Wars (US)", 0 )
1061GAME( 1985, pkunwarj, pkunwar,  pkunwar,  pkunwar,  pkunwar,  ROT0, "UPL", "Penguin-Kun Wars (Japan)", 0 )
10621062GAME( 1985, raiders5, 0,        raiders5, raiders5, raiders5, ROT0, "UPL", "Raiders5", 0 )
10631063GAME( 1985, raidrs5t, raiders5, raiders5, raiders5, raiders5, ROT0, "UPL (Taito license)", "Raiders5 (Japan)", 0 )
src/mame/drivers/snk.c
r4962r4963
40364036
40374037   // apparently, no "ym1" in tdfever2
40384038   // (registers are written to but they cause sound not to work)
4039   MDRV_SOUND_REMOVE("ym1")
4039   MDRV_DEVICE_REMOVE("ym1")
40404040MACHINE_DRIVER_END
40414041
40424042
src/mame/drivers/highvdeo.c
r4962r4963
924924static MACHINE_DRIVER_START( ciclone )
925925   MDRV_IMPORT_FROM(tv_tcf)
926926
927   MDRV_CPU_REMOVE("maincpu")
927   MDRV_DEVICE_REMOVE("maincpu")
928928
929929   MDRV_CPU_ADD("maincpu", I80186, 20000000/2 )   // ?
930930   MDRV_CPU_PROGRAM_MAP(tv_tcf_map)
src/mame/drivers/model2.c
r4962r4963
45224522GAME( 1998, dynmcopb, dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Cop (Export, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
45234523GAME( 1998, dyndek2b, dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Deka 2 (Japan, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
45244524GAME( 1998, pltkids,         0, model2b, model2, pltkids, ROT0, "Psikyo", "Pilot Kids (Model 2B, Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4525GAME( 199?, rchase2,         0, model2b, model2, 0,       ROT0, "Sega", "Rail Chase 2 (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4525GAME( 1995, rchase2,         0, model2b, model2, 0,       ROT0, "Sega", "Rail Chase 2 (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
45264526
45274527// Model 2C-CRX (TGPx4, SCSP sound board)
45284528GAME( 1996, skisuprg,        0, model2c, model2, 0, ROT0, "Sega", "Sega Ski Super G", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
src/mame/drivers/wiping.c
r4962r4963
3535***************************************************************************/
3636#include "driver.h"
3737#include "cpu/z80/z80.h"
38#include "includes/wiping.h"
3839
3940
40WRITE8_HANDLER( wiping_flipscreen_w );
41PALETTE_INIT( wiping );
42VIDEO_UPDATE( wiping );
43
44extern UINT8 *wiping_soundregs;
45
46DEVICE_GET_INFO( wiping_sound );
47#define SOUND_WIPING DEVICE_GET_INFO_NAME(wiping_sound)
48
49WRITE8_HANDLER( wiping_sound_w );
50
51
5241static UINT8 *sharedram1,*sharedram2;
5342
5443static READ8_HANDLER( shared1_r )
src/mame/drivers/cps2.c
r4962r4963
12641264static MACHINE_DRIVER_START( gigamn2 )
12651265   MDRV_IMPORT_FROM(cps2)
12661266
1267   MDRV_CPU_REMOVE("audiocpu")
1267   MDRV_DEVICE_REMOVE("audiocpu")
12681268
1269   MDRV_SOUND_REMOVE("qsound")
1269   MDRV_DEVICE_REMOVE("qsound")
12701270
12711271   MDRV_SOUND_ADD("oki", OKIM6295, XTAL_32MHz/32)
12721272   MDRV_SOUND_CONFIG(okim6295_interface_pin7high) // clock frequency & pin 7 not verified
src/mame/drivers/scramble.c
r4962r4963
13601360   MDRV_CPU_MODIFY("maincpu")
13611361   MDRV_CPU_PROGRAM_MAP(hotshock_map)
13621362
1363   MDRV_PPI8255_REMOVE( "ppi8255_0" )
1364   MDRV_PPI8255_REMOVE( "ppi8255_1" )
1363   MDRV_DEVICE_REMOVE( "ppi8255_0" )
1364   MDRV_DEVICE_REMOVE( "ppi8255_1" )
13651365
13661366   MDRV_CPU_MODIFY("audiocpu")
13671367   MDRV_CPU_IO_MAP(hotshock_sound_io_map)
r4962r4963
14111411   MDRV_CPU_MODIFY("maincpu")
14121412   MDRV_CPU_IO_MAP(triplep_io_map)
14131413
1414   MDRV_CPU_REMOVE("audiocpu")
1414   MDRV_DEVICE_REMOVE("audiocpu")
14151415
14161416   /* video hardware */
14171417   MDRV_PALETTE_LENGTH(32+64+2+0)   /* 32 for characters, 64 for stars, 2 for bullets */
r4962r4963
14231423   MDRV_SOUND_CONFIG(triplep_ay8910_interface)
14241424   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
14251425
1426   MDRV_SOUND_REMOVE("8910.2")
1426   MDRV_DEVICE_REMOVE("8910.2")
14271427MACHINE_DRIVER_END
14281428
14291429static MACHINE_DRIVER_START( mariner )
src/mame/drivers/jangou.c
r4962r4963
812812
813813   /* sound hardware */
814814   MDRV_SOUND_START(NULL)
815   MDRV_SOUND_REMOVE("cvsd")
815   MDRV_DEVICE_REMOVE("cvsd")
816816
817817   MDRV_SOUND_ADD("msm", MSM5205, XTAL_400kHz)
818818   MDRV_SOUND_CONFIG(msm5205_config)
r4962r4963
827827   MDRV_CPU_PROGRAM_MAP(cntrygrl_cpu0_map )
828828   MDRV_CPU_IO_MAP(cntrygrl_cpu0_io )
829829
830   MDRV_CPU_REMOVE("cpu1")
830   MDRV_DEVICE_REMOVE("cpu1")
831831
832832   /* sound hardware */
833833   MDRV_SOUND_START(NULL)
834   MDRV_SOUND_REMOVE("cvsd")
834   MDRV_DEVICE_REMOVE("cvsd")
835835MACHINE_DRIVER_END
836836
837837/*
src/mame/drivers/gameplan.c
r4962r4963
10521052   MDRV_IMPORT_FROM(leprechn_video)
10531053
10541054   /* via */
1055   MDRV_VIA6522_REMOVE("via6522_0")
1055   MDRV_DEVICE_REMOVE("via6522_0")
10561056   MDRV_VIA6522_ADD("via6522_0", 0, leprechn_via_0_interface)
10571057MACHINE_DRIVER_END
10581058
src/mame/drivers/darius.c
r4962r4963
351351
352352static void update_psg0( running_machine *machine, int port )
353353{
354   static const char *fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
354   static const char *const fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
355355   const device_config *lvol = devtag_get_device(machine, fltname[port][0]);
356356   const device_config *rvol = devtag_get_device(machine, fltname[port][1]);
357357   int left, right;
r4962r4963
365365
366366static void update_psg1( running_machine *machine, int port )
367367{
368   static const char *fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
368   static const char *const fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
369369   const device_config *lvol = devtag_get_device(machine, fltname[port][0]);
370370   const device_config *rvol = devtag_get_device(machine, fltname[port][1]);
371371   int left, right;
src/mame/drivers/suprgolf.c
r4962r4963
11/************************************************************************************
22
3 Super Crowns Golf
4 preliminary WIP driver
5 by Tomasz Slanina & Angelo Salese
3 Super Crowns Golf (c) 1989 Nasco Japan
64
5 driver by Tomasz Slanina & Angelo Salese
6
77 TODO:
88 - remove the patch and understand what needs to be modified for the gfxs, game
99   doesn't crash anymore;
10 - inputs not fully understood, sometimes analog inputs gets stuck;
10 - Some weird framebuffer vertical gaps with some object, namely the green and the
11   trees (zooming?)
12 - not sure if the analog inputs are handled correctly;
13 - Fix the framebuffer display in cocktail mode;
1114
1215 Notes:
1316 - The game uses special control panel with 1 golf club shaped device to select shot
14 strength (0,1,2,3), and 6 buttons (direction L&R, select angle of club head, club
15 select, shot, and power to use items). -YO
17   strength (0,1,2,3), and 6 buttons (direction L&R, select angle of club head, club
18   select, shot, and power to use items). -YO
1619
1720************************************************************************************/
1821
r4962r4963
233236{
234237   UINT8 *region_base = memory_region(space->machine, "user2");
235238   mame_printf_debug("ROM_BANK 0x4000 - %X @%X\n",data,cpu_get_previouspc(space->cpu));
236//  if(data == 0) data = 1; //test hack
239
237240   memory_set_bankptr(space->machine, 1, region_base + (data&0x0f ) * 0x4000);
238241
239242   if(data & 0xf0)
r4962r4963
242245
243246static READ8_HANDLER( pedal_extra_bits_r )
244247{
245   static UINT8 p1_pedal_hi,p1_sht_sw,p2_pedal_hi,p2_sht_sw;
248   static UINT8 p1_sht_sw,p2_sht_sw;
246249
247   /* TODO: check this */
248   p1_pedal_hi = (input_port_read(space->machine, "P1_PEDAL") & 0x10)>>3;
249   p1_sht_sw = (input_port_read(space->machine, "P1_PEDAL") & 0x80)>>7;
250   p2_pedal_hi = (input_port_read(space->machine, "P2_PEDAL") & 0x10)<<1;
251   p2_sht_sw = (input_port_read(space->machine, "P2_PEDAL") & 0x80)>>3;
250   p1_sht_sw = (input_port_read(space->machine, "P1_RELEASE") & 0x80)>>7;
251   p2_sht_sw = (input_port_read(space->machine, "P2_RELEASE") & 0x80)>>6;
252252
253   return p1_pedal_hi | p1_sht_sw | p2_pedal_hi | p2_sht_sw;
253   return p1_sht_sw | p2_sht_sw;
254254}
255255
256256static READ8_HANDLER( p1_r )
257257{
258   return (input_port_read(space->machine, "P1") & 0xf0) | ((input_port_read(space->machine, "P1_PEDAL") & 0xf));
258   return (input_port_read(space->machine, "P1") & 0xf0) | ((input_port_read(space->machine, "P1_ANALOG") & 0xf));
259259}
260260
261261static READ8_HANDLER( p2_r )
262262{
263   return (input_port_read(space->machine, "P2") & 0xf0) | ((input_port_read(space->machine, "P2_PEDAL") & 0xf));
263   return (input_port_read(space->machine, "P2") & 0xf0) | ((input_port_read(space->machine, "P2_ANALOG") & 0xf));
264264}
265265
266266static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
r4962r4963
297297   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)         /* CNT - shot switch */
298298   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)         /* SEL */
299299
300   PORT_START("P1_PEDAL")
301   PORT_BIT( 0x1f, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0x1f) PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_PLAYER(1)
302   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)         /* release power? */
300   PORT_START("P1_ANALOG")
301   PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_PLAYER(1)
303302
303   /* simulate spring throttle with the following button */
304   PORT_START("P1_RELEASE")
305   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)   /* release power? */
306
304307   PORT_START("P2")
305308   PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_SPECIAL ) /* low port of P2 Pedal */
306309   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)       /* D.L */
r4962r4963
308311   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)         /* CNT - shot switch */
309312   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)         /* SEL */
310313
311   PORT_START("P2_PEDAL")
312   PORT_BIT( 0x1f, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0x1f) PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_PLAYER(2)
313   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)         /* release power? */
314   PORT_START("P2_ANALOG")
315   PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(5) PORT_KEYDELTA(5) PORT_PLAYER(2)
314316
317   /* simulate spring throttle with the following button */
318   PORT_START("P2_RELEASE")
319   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)   /* release power? */
320
315321   PORT_START("SYSTEM")
316322   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )                        /* 1P */
317323   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)         /* POW */
r4962r4963
344350   PORT_DIPSETTING(    0x10, "2" )
345351   PORT_DIPSETTING(    0x30, "3" )
346352   PORT_DIPSETTING(    0x20, "4" )
347   PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "SW1:7" )
353   /* According to the manual, Allow Continue should be dip-sw 2:5 */
354   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:7")
355   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
356   PORT_DIPSETTING(    0x40, DEF_STR( Yes ) )
348357   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:8")
349358   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
350359   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
r4962r4963
359368   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:4")
360369   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
361370   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
362   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:5")
363   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
364   PORT_DIPSETTING(    0x10, DEF_STR( Yes ) )
371   PORT_DIPUNUSED_DIPLOC( 0x10, 0x00, "SW2:5" )
365372   PORT_DIPUNUSED_DIPLOC( 0x20, 0x00, "SW2:6" )
366373   PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "SW2:7" )
367374   PORT_DIPUNUSED_DIPLOC( 0x80, 0x00, "SW2:8" )
r4962r4963
546553   ROM[0x74f5-0x4000] = 0x00;
547554}
548555
549GAME( 1989, suprgolf, 0, suprgolf,  suprgolf,  suprgolf, ROT0, "Nasco", "Super Crowns Golf (Japan)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL )
556GAME( 1989, suprgolf, 0, suprgolf,  suprgolf,  suprgolf, ROT0, "Nasco", "Super Crowns Golf (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL )
src/mame/drivers/mjkjidai.c
r4962r4963
119119static READ8_HANDLER( keyboard_r )
120120{
121121   int res = 0x3f,i;
122   static const char *const keynames[] = { "KEY0", "KEY1", "KEY2", "KEY3", "KEY4", "KEY5", "KEY6", "KEY7", "KEY8", "KEY9", "KEY10", "KEY11" };
122   static const char *const keynames[] = { "PL2_1", "PL2_2", "PL2_3", "PL2_4", "PL2_5", "PL2_6", "PL1_1", "PL1_2", "PL1_3", "PL1_4", "PL1_5", "PL1_6" };
123123
124124//  logerror("%04x: keyboard_r\n", cpu_get_pc(space->cpu));
125125
r4962r4963
264264   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_TILT )   // reinitialize NVRAM and reset the game
265265   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
266266
267   /* player 2 inputs (same as player 1) */
268   PORT_START("KEY0")
269   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
270   PORT_START("KEY1")
271   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
272   PORT_START("KEY2")
273   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
274   PORT_START("KEY3")
275   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
276   PORT_START("KEY4")
277   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
278   PORT_START("KEY5")
279   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED )
280
281   PORT_START("KEY6")
267   PORT_START("PL1_1")
282268   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
283269   PORT_BIT( 0x3e, IP_ACTIVE_LOW, IPT_UNUSED )
284270
285   PORT_START("KEY7")
286   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_MAHJONG_KAN )
287   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_MAHJONG_REACH )
288   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_MAHJONG_RON )
271   PORT_START("PL1_2")
272   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_KAN )
273   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_REACH )
274   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_RON )
289275   PORT_BIT( 0x38, IP_ACTIVE_LOW, IPT_UNUSED )
290276
291   PORT_START("KEY8")
292   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_MAHJONG_M )
293   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_MAHJONG_N )
294   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_MAHJONG_CHI )
295   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON )
277   PORT_START("PL1_3")
278   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_M )
279   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_N )
280   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_CHI )
281   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON )
296282   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
297283
298   PORT_START("KEY9")
299   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_MAHJONG_I )
300   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_MAHJONG_J )
301   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K )
302   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_MAHJONG_L )
284   PORT_START("PL1_4")
285   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_I )
286   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_J )
287   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K )
288   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_L )
303289   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
304290
305   PORT_START("KEY10")
306   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_MAHJONG_E )
307   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F )
308   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_MAHJONG_G )
309   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_MAHJONG_H )
291   PORT_START("PL1_5")
292   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_E )
293   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F )
294   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_G )
295   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_H )
310296   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
311297
312   PORT_START("KEY11")
313   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A )
314   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_MAHJONG_B )
315   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_MAHJONG_C )
316   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_MAHJONG_D )
298   PORT_START("PL1_6")
299   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A )
300   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_B )
301   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_C )
302   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_D )
317303   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
304
305   PORT_START("PL2_1")
306   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 )
307   PORT_BIT( 0x3e, IP_ACTIVE_LOW, IPT_UNUSED )
308
309   PORT_START("PL2_2")
310   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) PORT_PLAYER(2)
311   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) PORT_PLAYER(2)
312   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) PORT_PLAYER(2)
313   PORT_BIT( 0x38, IP_ACTIVE_LOW, IPT_UNUSED )
314
315   PORT_START("PL2_3")
316   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_M ) PORT_PLAYER(2)
317   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_N ) PORT_PLAYER(2)
318   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) PORT_PLAYER(2)
319   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) PORT_PLAYER(2)
320   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
321
322   PORT_START("PL2_4")
323   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_I ) PORT_PLAYER(2)
324   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_J ) PORT_PLAYER(2)
325   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K ) PORT_PLAYER(2)
326   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_L ) PORT_PLAYER(2)
327   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
328
329   PORT_START("PL2_5")
330   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_E ) PORT_PLAYER(2)
331   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F ) PORT_PLAYER(2)
332   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_G ) PORT_PLAYER(2)
333   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_H ) PORT_PLAYER(2)
334   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
335
336   PORT_START("PL2_6")
337   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) PORT_PLAYER(2)
338   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_B ) PORT_PLAYER(2)
339   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_C ) PORT_PLAYER(2)
340   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_D ) PORT_PLAYER(2)
341   PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
318342INPUT_PORTS_END
319343
320344
src/mame/drivers/scregg.c
r4962r4963
369369}
370370
371371
372GAME( 198?, dommy,    0,        dommy,  scregg, 0, ROT270, "Technos Japan", "Dommy", 0 )
372GAME( 1983, dommy,    0,        dommy,  scregg, 0, ROT270, "Technos Japan", "Dommy", 0 )
373373GAME( 1983, scregg,   0,        scregg, scregg, 0, ROT270, "Technos Japan", "Scrambled Egg", 0 )
374374GAME( 1983, eggs,     scregg,   scregg, scregg, 0, ROT270, "[Technos Japan] Universal USA", "Eggs", 0 )
375375GAME( 1983, rockduck, 0,        scregg, rockduck, rockduck, ROT270, "Datel SAS", "Rock Duck (prototype?)", GAME_WRONG_COLORS )
src/mame/drivers/metro.c
r4962r4963
58285828GAME( 1992, pangpoms, 0,        pangpoms, pangpoms, metro,    ROT0,   "Metro",                                  "Pang Pom's",                        0 )
58295829GAME( 1992, pangpomm, pangpoms, pangpoms, pangpoms, metro,    ROT0,   "Metro (Mitchell license)",               "Pang Pom's (Mitchell)",             0 )
58305830GAME( 1992, skyalert, 0,        skyalert, skyalert, metro,    ROT270, "Metro",                                  "Sky Alert",                         0 )
5831GAME( 1993?,ladykill, 0,        karatour, ladykill, karatour, ROT90,  "Yanyaka (Mitchell license)",             "Lady Killer",                       GAME_IMPERFECT_GRAPHICS )
5832GAME( 1993?,moegonta, ladykill, karatour, moegonta, karatour, ROT90,  "Yanyaka",                                "Moeyo Gonta!! (Japan)",             GAME_IMPERFECT_GRAPHICS )
5831GAME( 1993, ladykill, 0,        karatour, ladykill, karatour, ROT90,  "Yanyaka (Mitchell license)",             "Lady Killer",                       GAME_IMPERFECT_GRAPHICS )
5832GAME( 1993, moegonta, ladykill, karatour, moegonta, karatour, ROT90,  "Yanyaka",                                "Moeyo Gonta!! (Japan)",             GAME_IMPERFECT_GRAPHICS )
58335833GAME( 1993, poitto,   0,        poitto,   poitto,   metro,    ROT0,   "Metro / Able Corp.",                     "Poitto!",                           0 )
58345834GAME( 1994, blzntrnd, 0,        blzntrnd, blzntrnd, blzntrnd, ROT0,   "Human Amusement",                        "Blazing Tornado",                   GAME_IMPERFECT_GRAPHICS )
58355835GAME( 1994, dharma,   0,        dharma,   dharma,   metro,    ROT0,   "Metro",                                  "Dharma Doujou",                     0 )
src/mame/drivers/gal3.c
r4962r4963
353353   DISK_IMAGE_READONLY( "gal3_ld2", 0, NO_DUMP )
354354ROM_END
355355
356GAME( 199?, gal3,    0,        gal3,    gal3,    0, ROT0,  "Namco", "Galaxian 3 - Theater 6 : Project Dragoon", GAME_NOT_WORKING | GAME_NO_SOUND )
356GAME( 1992, gal3,    0,        gal3,    gal3,    0, ROT0,  "Namco", "Galaxian 3 - Theater 6 : Project Dragoon", GAME_NOT_WORKING | GAME_NO_SOUND )
src/mame/drivers/nightgal.c
r4962r4963
739739   MDRV_CPU_PROGRAM_MAP(sexygal_nsc_map)
740740   MDRV_CPU_VBLANK_INT("screen", irq0_line_hold)
741741
742   MDRV_SOUND_REMOVE("ay")
742   MDRV_DEVICE_REMOVE("ay")
743743
744744   MDRV_SOUND_ADD("ym", YM2203, MASTER_CLOCK / 8)
745745   MDRV_SOUND_CONFIG(ay8910_config)
src/mame/drivers/maygayv1.c
r4962r4963
486486
487487static READ16_HANDLER( maygay_8279_r )
488488{
489   static const char *portnames[] = { "STROBE1","STROBE2","STROBE3","STROBE4","STROBE5","STROBE6","STROBE7","STROBE8" };
489   static const char *const portnames[] = { "STROBE1","STROBE2","STROBE3","STROBE4","STROBE5","STROBE6","STROBE7","STROBE8" };
490490   UINT8 result = 0xff;
491491   UINT8 addr;
492492
src/mame/drivers/atarisy2.c
r4962r4963
11941194   MDRV_IMPORT_FROM(atarisy2)
11951195
11961196   /* sound hardware */
1197   MDRV_SOUND_REMOVE("tms")
1197   MDRV_DEVICE_REMOVE("tms")
11981198MACHINE_DRIVER_END
11991199
12001200
src/mame/drivers/ninjakd2.c
r4962r4963
969969   MDRV_VIDEO_START(mnight)
970970
971971   /* sound hardware */
972   MDRV_SOUND_REMOVE("pcm")
972   MDRV_DEVICE_REMOVE("pcm")
973973MACHINE_DRIVER_END
974974
975975static MACHINE_DRIVER_START( arkarea )
r4962r4963
984984   MDRV_VIDEO_START(arkarea)
985985
986986   /* sound hardware */
987   MDRV_SOUND_REMOVE("pcm")
987   MDRV_DEVICE_REMOVE("pcm")
988988MACHINE_DRIVER_END
989989
990990static MACHINE_DRIVER_START( robokid )
r4962r4963
14741474GAME( 1987, ninjak2b, ninjakd2, ninjakd2, rdaction, bootleg,  ROT0,   "UPL", "Ninja-Kid II / NinjaKun Ashura no Shou (set 3, bootleg?)", 0 )
14751475GAME( 1987, rdaction, ninjakd2, ninjakd2, rdaction, ninjakd2, ROT0,   "UPL (World Games license)", "Rad Action / NinjaKun Ashura no Shou", 0 )
14761476GAME( 1987, mnight,   0,        mnight,   mnight,   mnight,   ROT0,   "UPL (Kawakus license)", "Mutant Night", 0 )
1477GAME( 1987, arkarea,  0,        arkarea,  arkarea,  mnight,   ROT0,   "UPL", "Ark Area", 0 )
1477GAME( 1988, arkarea,  0,        arkarea,  arkarea,  mnight,   ROT0,   "UPL", "Ark Area", 0 )
14781478GAME( 1988, robokid,  0,        robokid,  robokid,  0,        ROT0,   "UPL", "Atomic Robo-kid", 0 )
14791479GAME( 1988, robokidj, robokid,  robokid,  robokidj, 0,        ROT0,   "UPL", "Atomic Robo-kid (Japan, set 1)", 0 )
14801480GAME( 1988, robokdj2, robokid,  robokid,  robokidj, 0,        ROT0,   "UPL", "Atomic Robo-kid (Japan, set 2)", 0 )
src/mame/drivers/seta.c
r4962r4963
12871287
12881288***************************************************************************/
12891289
1290/***************************************************************************
1291
1292Jockey Club
1293^^^^^^^^^^^
1294Dumped by Andrew Welburn on the evening of 05/06/09
1295
1296http://www.andys-arcade.com
1297
1298*************************************************
1299**Do not seperate this text file from the roms.**
1300*************************************************
1301
1302Take a look at the photos in the archive, the roms
1303should be failry explanatory, and you should be
1304able to pick out the chips it uses.
1305
1306Most of the romset matches mame except for the
1307two eproms, see the mame -romident dump.
1308
1309enjoy..
1310
1311***************************************************************************/
1312
12901313#include "driver.h"
12911314#include "cpu/z80/z80.h"
12921315#include "cpu/m68000/m68000.h"
r4962r4963
26322655   AM_RANGE(0xffc000, 0xffffff) AM_RAM   // RAM
26332656ADDRESS_MAP_END
26342657
2658static UINT8 jockeyc_key_select;
26352659
2660static READ16_HANDLER( jockeyc_mux_r )
2661{
2662   switch( jockeyc_key_select )
2663   {
2664      case 0x08:   return input_port_read(space->machine, "BET0");
2665      case 0x10:   return input_port_read(space->machine, "BET1");
2666      case 0x20:   return input_port_read(space->machine, "BET2");
2667      case 0x40:   return input_port_read(space->machine, "BET3");
2668      case 0x80:   return input_port_read(space->machine, "BET4");
2669   }
2670
2671   return 0xffff;
2672}
2673
2674static WRITE16_HANDLER( jockeyc_mux_w )
2675{
2676   /* other bits used too */
2677   jockeyc_key_select = data & 0xf8;
2678}
2679
2680static READ16_HANDLER( unk_r )
2681{
2682   return 0xffff;//mame_rand(space->machine);
2683}
2684
2685/* same as International Toote but without the protection and different RTC hook-up */
2686static ADDRESS_MAP_START( jockeyc_map, ADDRESS_SPACE_PROGRAM, 16 )
2687   AM_RANGE(0x000000, 0x1fffff) AM_ROM   // ROM (up to 2MB)
2688
2689   AM_RANGE(0x200000, 0x200001) AM_READWRITE(jockeyc_mux_r,jockeyc_mux_w)
2690   AM_RANGE(0x200002, 0x200003) AM_READ_PORT("P1")
2691   AM_RANGE(0x200010, 0x200011) AM_READ_PORT("P2") AM_WRITENOP
2692
2693   AM_RANGE(0x300000, 0x300001) AM_WRITE(watchdog_reset16_w)   // Watchdog
2694
2695   AM_RANGE(0x300002, 0x300003) AM_WRITENOP
2696
2697   AM_RANGE(0x300010, 0x300011) AM_WRITENOP   // lev1 ack
2698   AM_RANGE(0x300020, 0x300021) AM_WRITENOP   // lev2 ack
2699   AM_RANGE(0x300040, 0x300041) AM_WRITENOP   // lev4 ack
2700   AM_RANGE(0x300060, 0x300061) AM_WRITENOP   // lev6 ack
2701
2702   AM_RANGE(0x500000, 0x500003) AM_READ(inttoote_dsw_r)   // DSW x 3
2703   AM_RANGE(0x600000, 0x600003) AM_READ(unk_r)
2704
2705   AM_RANGE(0x800000, 0x80001f) AM_DEVREADWRITE8("rtc", msm6242_r, msm6242_w, 0x00ff)   // 6242RTC
2706
2707   AM_RANGE(0x900000, 0x903fff) AM_DEVREADWRITE( "x1", seta_sound_word_r, seta_sound_word_w)   // Sound
2708
2709   AM_RANGE(0xa00000, 0xa00005) AM_WRITEONLY AM_BASE(&seta_vctrl_0)   // VRAM 0&1 Ctrl
2710   AM_RANGE(0xb00000, 0xb03fff) AM_RAM_WRITE(seta_vram_0_w) AM_BASE(&seta_vram_0)   // VRAM 0&1
2711   AM_RANGE(0xb04000, 0xb0ffff) AM_WRITENOP // likely left-over
2712
2713   AM_RANGE(0xc00000, 0xc00001) AM_RAM      // ? 0x4000
2714
2715   AM_RANGE(0xd00000, 0xd00607) AM_RAM   AM_BASE(&spriteram16)   // Sprites Y
2716   AM_RANGE(0xe00000, 0xe03fff) AM_RAM   AM_BASE(&spriteram16_2)   // Sprites Code + X + Attr
2717
2718   AM_RANGE(0xffc000, 0xffffff) AM_RAM   // RAM
2719ADDRESS_MAP_END
2720
26362721/***************************************************************************
26372722
26382723
r4962r4963
60386123   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
60396124INPUT_PORTS_END
60406125
6126static INPUT_PORTS_START( jockeyc )
6127   PORT_INCLUDE( inttoote )
60416128
6129   PORT_MODIFY("BET1")   // 200000.w (0x10)
6130   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Credit")
6131   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 )
6132   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P2 Credit")
6133   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START2 )
6134
6135   /* many service switches actually */
6136   PORT_MODIFY("P1")
6137   PORT_DIPNAME( 0x0001, 0x0001, "Coin Drop - 1P" )
6138   PORT_DIPSETTING(    0x0001, DEF_STR( Off ) )
6139   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6140   PORT_DIPNAME( 0x0002, 0x0002, "Hopper Overflow - 1P" )
6141   PORT_DIPSETTING(    0x0002, DEF_STR( Off ) )
6142   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6143   PORT_DIPNAME( 0x0004, 0x0000, "Coin Out" )
6144   PORT_DIPSETTING(    0x0000, DEF_STR( Off ) )
6145   PORT_DIPSETTING(    0x0004, DEF_STR( On ) )
6146   PORT_DIPNAME( 0x0008, 0x0008, "Att Pay - 1P" )
6147   PORT_DIPSETTING(    0x0008, DEF_STR( Off ) )
6148   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6149   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_NAME("Coin B - 1P")
6150   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_NAME("Coin A - 1P")
6151   PORT_DIPNAME( 0x0040, 0x0040, "Coin Sense 2 - 1P" )
6152   PORT_DIPSETTING(    0x0040, DEF_STR( Off ) )
6153   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6154   PORT_DIPNAME( 0x0080, 0x0080, "Coin Sense 1 - 1P" )
6155   PORT_DIPSETTING(    0x0080, DEF_STR( Off ) )
6156   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6157   PORT_DIPNAME( 0x0100, 0x0100, "Coin Drop - 2P" )
6158   PORT_DIPSETTING(    0x0100, DEF_STR( Off ) )
6159   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6160   PORT_DIPNAME( 0x0200, 0x0200, "Sel Sense" )
6161   PORT_DIPSETTING(    0x0200, DEF_STR( Off ) )
6162   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6163   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) )
6164   PORT_DIPSETTING(    0x0400, DEF_STR( Off ) )
6165   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6166   PORT_DIPNAME( 0x0800, 0x0800, "Att Pay - 2P" )
6167   PORT_DIPSETTING(    0x0800, DEF_STR( Off ) )
6168   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6169   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_NAME("Coin B - 2P")
6170   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_NAME("Coin A - 2P")
6171   PORT_DIPNAME( 0x4000, 0x4000, "Coin Sense 2 - 2P" )
6172   PORT_DIPSETTING(    0x4000, DEF_STR( Off ) )
6173   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6174   PORT_DIPNAME( 0x8000, 0x8000, "Coin Sense 1 - 2P" )
6175   PORT_DIPSETTING(    0x8000, DEF_STR( Off ) )
6176   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6177
6178   PORT_MODIFY("P2")
6179   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Door Open") PORT_TOGGLE
6180   PORT_DIPNAME( 0x0002, 0x0002, "SYSTEM" )
6181   PORT_DIPSETTING(    0x0002, DEF_STR( Off ) )
6182   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6183   PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) )
6184   PORT_DIPSETTING(    0x0004, DEF_STR( Off ) )
6185   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6186   PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Tilt ) )
6187   PORT_DIPSETTING(    0x0008, DEF_STR( Off ) )
6188   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6189   PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) )
6190   PORT_DIPSETTING(    0x0010, DEF_STR( Off ) )
6191   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6192   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) )
6193   PORT_DIPSETTING(    0x0020, DEF_STR( Off ) )
6194   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6195   PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) )
6196   PORT_DIPSETTING(    0x0040, DEF_STR( Off ) )
6197   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6198   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) )
6199   PORT_DIPSETTING(    0x0080, DEF_STR( Off ) )
6200   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6201   PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) )
6202   PORT_DIPSETTING(    0x0100, DEF_STR( Off ) )
6203   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6204   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) )
6205   PORT_DIPSETTING(    0x0200, DEF_STR( Off ) )
6206   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6207   PORT_DIPNAME( 0x0400, 0x0400, "Special Test Mode Item?" )
6208   PORT_DIPSETTING(    0x0400, DEF_STR( Off ) )
6209   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6210   PORT_DIPNAME( 0x0800, 0x0800, "Call SW" )
6211   PORT_DIPSETTING(    0x0800, DEF_STR( Off ) )
6212   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6213   PORT_SERVICE( 0x1000, IP_ACTIVE_LOW )   // Function menu (electronic key switch, fitted beneath the front panel)
6214   PORT_DIPNAME( 0x2000, 0x2000, "Analyzer" )
6215   PORT_DIPSETTING(    0x2000, DEF_STR( Off ) )
6216   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
6217   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Reset SW")
6218   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Battery (0 = OK, 1 = NG)
6219INPUT_PORTS_END
6220
6221
60426222/***************************************************************************
60436223
60446224
r4962r4963
78688048   MDRV_MSM6242_ADD("rtc")
78698049MACHINE_DRIVER_END
78708050
8051static MACHINE_DRIVER_START( jockeyc )
8052   MDRV_IMPORT_FROM( inttoote )
8053   MDRV_CPU_MODIFY("maincpu")
8054   MDRV_CPU_PROGRAM_MAP(jockeyc_map)
8055MACHINE_DRIVER_END
78718056
8057
8058
78728059/***************************************************************************
78738060
78748061                                ROMs Loading
r4962r4963
89689155   ROM_LOAD( "rom.u85",  0x00000, 0x40000, CRC(7b95d0bb) SHA1(f16dfd639eed6856e3ab93704caef592a07ba367) )
89699156ROM_END
89709157
9158ROM_START( jockeyc )
9159   ROM_REGION( 0x200000, "maincpu", 0 )      /* 68000 Code */
9160   ROM_LOAD16_BYTE( "ya-007-002-u23.bin", 0x000000, 0x10000, CRC(c499bf4d) SHA1(2417eac2972bbb0f8f0a4a1fd72c9d78537367c7) )
9161   ROM_LOAD16_BYTE( "ya-007-003-u33.bin", 0x000001, 0x10000, CRC(e7b0677e) SHA1(90dbd710623ff57b953483240e1006c9bda3fc91) )
9162   ROM_FILL(                                     0x020000, 0x60000, 0xff )
9163   ROM_LOAD16_WORD_SWAP( "ya_002_001.u18",       0x100000, 0x80000, CRC(dd108016) SHA1(1554de4cc1a9436a1e62400cd96c9752a2098f99) )
9164   ROM_FILL(                                     0x180000, 0x80000, 0xff )
9165
9166   ROM_REGION( 0x200000, "gfx1", ROMREGION_DISPOSE )   /* Sprites */
9167   ROM_LOAD( "ya_011_004.u10",             0x000000, 0x80000, CRC(eb74d2e0) SHA1(221ff6cc03ce57a7fcbe418f1c12a293990f8a7d) )
9168   //ROM_LOAD( "p523.v01_horse_fore_1.u135", 0x070000, 0x10000, CRC(3a75df30) SHA1(f3b3a7428e3e125921686bc9aacde6b28b1947b5) )
9169
9170   ROM_LOAD( "ya_011_005.u17",             0x080000, 0x80000, CRC(4a6c804b) SHA1(b596b9b0b3b453c26f9c7f976ff4d56eac4fac04) )
9171   //ROM_LOAD( "p523.v01_horse_fore_2.u134", 0x0f0000, 0x10000, CRC(26fb0339) SHA1(a134ecef00f690c82c8bddf26498b357ccf8d5c3) )
9172
9173   ROM_LOAD( "ya_011_006.u22",             0x100000, 0x80000, CRC(bfae01a5) SHA1(3be83972c3987e9bf722cd6db7770f074587301c) )
9174   //ROM_LOAD( "p523.v01_horse_fore_3.u133", 0x170000, 0x10000, CRC(c38596af) SHA1(d27141e28d8f8352f065c55121412e604c199a9a) )
9175
9176   ROM_LOAD( "ya_011_007.u27",             0x180000, 0x80000, CRC(2dc7a294) SHA1(97f2aa9939a45aaa94d4aeb2fcd5b7f30204b942) )
9177   //ROM_LOAD( "p523.v01_horse_fore_4.u132", 0x1f0000, 0x10000, CRC(64ef345e) SHA1(ef5d9f293ded44a2be91278549f5db8673fc7571) )
9178
9179   ROM_REGION( 0xc0000, "gfx2", ROMREGION_DISPOSE )   /* Layer 1 */
9180   ROM_LOAD( "ya_011_008.u35",             0x000000, 0x40000, CRC(4b890f83) SHA1(fde6544898a0691b550f3045803f2e81cfeb5fe9) )
9181   //ROM_LOAD( "p523.v01_horse_back_1.u137", 0x040000, 0x20000, CRC(39b221ea) SHA1(3b3367430733ed36d6a981cd2ec6df731d07c089) )
9182
9183   ROM_LOAD( "ya_011_009.u41",             0x060000, 0x40000, CRC(caa5e3c1) SHA1(63cccc5479040a02872febc8d7f2d46096e138d1) )
9184   //ROM_LOAD( "p523.v01_horse_back_2.u136", 0x0a0000, 0x20000, CRC(9c5e32a0) SHA1(964734a626b5c7b9d7130addc642895df520dcb7) )
9185
9186   ROM_REGION( 0x400, "proms", 0 )   /* Colours */
9187   ROM_LOAD16_BYTE( "ya-010.prom",  0x000, 0x200, CRC(778094b3) SHA1(270329a0d544dc7a8240d6dab08ccd54ea87ab70) )
9188   ROM_LOAD16_BYTE( "ya-011.prom",  0x001, 0x200, CRC(bd4fe2f6) SHA1(83d9f9db3fbfa2d172f5227c397ea4d5a9687015) )
9189
9190   ROM_REGION( 0x100000, "x1", 0 )   /* Samples */
9191   ROM_LOAD( "ya_011_013.u71", 0x00000, 0x80000, CRC(2bccaf47) SHA1(1658643444d575410f11b648e0d7ae6c43fcf1ea) )
9192   ROM_LOAD( "ya_011_012.u64", 0x80000, 0x80000, CRC(a8015ce6) SHA1(bb0b589856ec82e1fd42be9af89b07ba1d17e595) )
9193ROM_END
9194
89719195ROM_START( inttoote )
89729196   ROM_REGION( 0x200000, "maincpu", 0 )      /* 68000 Code */
89739197   ROM_LOAD16_BYTE( "p523.v01_horse_prog_2.002", 0x000000, 0x10000, CRC(6ce6f1ad) SHA1(82e7100721ca5b1a736f6523610b1f1edf225c12) )
r4962r4963
92809504GAME( 1989, wits,     0,        wits,     wits,     0,        ROT0,   "Athena (Visco license)", "Wit's (Japan)" , 0) // Country/License: DSW
92819505GAME( 1990, thunderl, 0,        thunderl, thunderl, 0,        ROT270, "Seta",                   "Thunder & Lightning" , 0) // Country/License: DSW
92829506GAME( 1994, wiggie,   0,        wiggie,   thunderl, wiggie,   ROT270, "Promat",                 "Wiggie Waggie", GAME_IMPERFECT_GRAPHICS ) // hack of Thunder & Lightning
9507GAME( 1990, jockeyc,  0,        jockeyc,  jockeyc,  0,        ROT0,   "[Seta] (Visco license)", "Jockey Club", 0 )
9508GAME( 1998, inttoote, jockeyc,  inttoote, inttoote, inttoote, ROT0,   "Coinmaster",             "International Toote (Germany)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION )
92839509GAME( 1991, rezon,    0,        rezon,    rezon,    rezon,    ROT0,   "Allumer",                "Rezon", 0 )
92849510GAME( 1992, rezont,   rezon,    rezon,    rezont,   rezon,    ROT0,   "Allumer (Taito license)","Rezon (Taito)", 0 )
92859511GAME( 1991, stg,      0,        drgnunit, stg,      0,        ROT270, "Athena / Tecmo",         "Strike Gunner S.T.G", 0 )
r4962r4963
93139539GAME( 1995, sokonuke, 0,        extdwnhl, sokonuke, 0,        ROT0,   "Sammy Industries",       "Sokonuke Taisen Game (Japan)", GAME_IMPERFECT_SOUND )
93149540GAME( 1995, zombraid, 0,        gundhara, zombraid, zombraid, ROT0,   "American Sammy",         "Zombie Raid (US)", GAME_NO_COCKTAIL )
93159541GAME( 1996, crazyfgt, 0,        crazyfgt, crazyfgt, crazyfgt, ROT0,   "Subsino",                "Crazy Fight", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
9316GAME( 1998, inttoote, 0,        inttoote, inttoote, inttoote, ROT0,   "Coinmaster",             "International Toote (Germany)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION )
93179542
src/mame/drivers/naomi.c
r4962r4963
931931
932932
933933// some default eeprom settings
934UINT8 jvseeprom_default_karous[128] =   { 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
935UINT8 jvseeprom_default_sfz3ugd[128] =  { 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xBE, 0x1F, 0x18, 0x18, 0xBE, 0x1F, 0x18, 0x18, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
936UINT8 jvseeprom_default_shikgam2[128] = { 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,0x43, 0x84, 0x20, 0x20, 0x43, 0x84, 0x20, 0x20, 0x42, 0x47, 0x45, 0x30,   0x53, 0x48, 0x49, 0x4B, 0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32,   0x32, 0x38, 0x00, 0x00, 0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00,   0x00, 0x00, 0x00, 0x00, 0x42, 0x47, 0x45, 0x30, 0x53, 0x48, 0x49, 0x4B,   0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32, 0x32, 0x38, 0x00, 0x00,   0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
937UINT8 jvseeprom_default_quizqgd[128] =  { 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50,   0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xC4, 0x18, 0x1D, 0x20, 0xC4, 0x18, 0x1D, 0x20, 0x42, 0x46, 0x50, 0x31,   0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45,   0x01, 0x01, 0x05, 0x01, 0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B,   0x00, 0x00, 0x00, 0x00, 0x42, 0x46, 0x50, 0x31, 0x51, 0x2D, 0x4D, 0x4F,   0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x01, 0x01, 0x05, 0x01,   0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
938UINT8 jvseeprom_default_senko[128] =    { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xE5, 0x91, 0x10, 0x10, 0xE5, 0x91, 0x10, 0x10, 0x07, 0x51, 0x17, 0x03,   0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00, 0x46, 0x00, 0x00, 0x00,   0x07, 0x51, 0x17, 0x03, 0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00,   0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
939UINT8 jvseeprom_default_senkoo[128] =   { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x12, 0xF0, 0x0C, 0x0C, 0x12, 0xF0, 0x0C, 0x0C, 0x07, 0x51, 0x17, 0x03,   0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x07, 0x51, 0x17, 0x03,   0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
940UINT8 jvseeprom_default_radirgy[128] =  { 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57,   0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
941UINT8 jvseeprom_default_trgheart[128] = { 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41, 0x31, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41,   0x31, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x7E, 0xE1, 0x24, 0x24, 0x7E, 0xE1, 0x24, 0x24, 0x30, 0x41, 0x4D, 0x42,   0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54,   0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00,   0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x30, 0x41, 0x4D, 0x42,   0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54,   0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00,   0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
942UINT8 jvseeprom_default_gundmgd[128] =  { 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
943UINT8 jvseeprom_default_gundmxgd[128] = { 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
944UINT8 jvseeprom_default_psyvar2[128] =  { 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
945UINT8 jvseeprom_default_cfield[128] =   { 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42,   0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
946UINT8 jvseeprom_default_puyofev[128] =  { 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44, 0x00, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44,   0x00, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x0E, 0x0B, 0x20, 0x20, 0x0E, 0x0B, 0x20, 0x20, 0x42, 0x48, 0x44, 0x00,   0x50, 0x55, 0x59, 0x4F, 0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45,   0x56, 0x45, 0x52, 0x2E, 0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03,   0x00, 0x80, 0x00, 0x00, 0x42, 0x48, 0x44, 0x00, 0x50, 0x55, 0x59, 0x4F,   0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45, 0x56, 0x45, 0x52, 0x2E,   0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03, 0x00, 0x80, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
947UINT8 jvseeprom_default_bdrdown[128] =  { 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xAE, 0x7E, 0x08, 0x08, 0xAE, 0x7E, 0x08, 0x08, 0x01, 0x00, 0x00, 0x00,   0x33, 0xB8, 0x96, 0xE4, 0x01, 0x00, 0x00, 0x00, 0x33, 0xB8, 0x96, 0xE4,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
948UINT8 jvseeprom_default_ss2005[128] =   { 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
949UINT8 jvseeprom_default_usagui[128] =   { 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46,   0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
950UINT8 jvseeprom_default_undefeat[128] = { 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
951UINT8 jvseeprom_default_trizeal[128] =  { 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
952UINT8 jvseeprom_default_moeru[128] =    { 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55, 0x20, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55,   0x20, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
953UINT8 jvseeprom_default_tetkiwam[128] = { 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43,   0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
954UINT8 jvseeprom_default_keyboard[128] = { 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xF0, 0x4A, 0x0C, 0x0C, 0xF0, 0x4A, 0x0C, 0x0C, 0x18, 0x09, 0x01, 0x20,   0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x18, 0x09, 0x01, 0x20,   0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
934static const struct
935{
936   const char *name;
937   const UINT8 eeprom[128];
938}
939jvseeprom_default_game[] =
940{
941   { "karous", { 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
942   { "sfz3ugd", { 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xBE, 0x1F, 0x18, 0x18, 0xBE, 0x1F, 0x18, 0x18, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
943   { "shikgam2", { 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,0x43, 0x84, 0x20, 0x20, 0x43, 0x84, 0x20, 0x20, 0x42, 0x47, 0x45, 0x30,   0x53, 0x48, 0x49, 0x4B, 0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32,   0x32, 0x38, 0x00, 0x00, 0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00,   0x00, 0x00, 0x00, 0x00, 0x42, 0x47, 0x45, 0x30, 0x53, 0x48, 0x49, 0x4B,   0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32, 0x32, 0x38, 0x00, 0x00,   0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
944   { "quizqgd", { 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50,   0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xC4, 0x18, 0x1D, 0x20, 0xC4, 0x18, 0x1D, 0x20, 0x42, 0x46, 0x50, 0x31,   0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45,   0x01, 0x01, 0x05, 0x01, 0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B,   0x00, 0x00, 0x00, 0x00, 0x42, 0x46, 0x50, 0x31, 0x51, 0x2D, 0x4D, 0x4F,   0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x01, 0x01, 0x05, 0x01,   0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
945   { "senko",  { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xE5, 0x91, 0x10, 0x10, 0xE5, 0x91, 0x10, 0x10, 0x07, 0x51, 0x17, 0x03,   0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00, 0x46, 0x00, 0x00, 0x00,   0x07, 0x51, 0x17, 0x03, 0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00,   0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
946   { "senkoo", { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x12, 0xF0, 0x0C, 0x0C, 0x12, 0xF0, 0x0C, 0x0C, 0x07, 0x51, 0x17, 0x03,   0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x07, 0x51, 0x17, 0x03,   0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
947   { "radirgy", { 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57,   0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
948   { "trgheart", { 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41, 0x31, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41,   0x31, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x7E, 0xE1, 0x24, 0x24, 0x7E, 0xE1, 0x24, 0x24, 0x30, 0x41, 0x4D, 0x42,   0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54,   0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00,   0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x30, 0x41, 0x4D, 0x42,   0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54,   0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00,   0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
949   { "gundmgd", { 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
950   { "gundmxgd", { 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
951   { "psyvar2", { 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
952   { "cfield", { 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42,   0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
953   { "puyofev", { 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44, 0x00, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44,   0x00, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x0E, 0x0B, 0x20, 0x20, 0x0E, 0x0B, 0x20, 0x20, 0x42, 0x48, 0x44, 0x00,   0x50, 0x55, 0x59, 0x4F, 0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45,   0x56, 0x45, 0x52, 0x2E, 0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03,   0x00, 0x80, 0x00, 0x00, 0x42, 0x48, 0x44, 0x00, 0x50, 0x55, 0x59, 0x4F,   0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45, 0x56, 0x45, 0x52, 0x2E,   0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03, 0x00, 0x80, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
954   { "bdrdown", { 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xAE, 0x7E, 0x08, 0x08, 0xAE, 0x7E, 0x08, 0x08, 0x01, 0x00, 0x00, 0x00,   0x33, 0xB8, 0x96, 0xE4, 0x01, 0x00, 0x00, 0x00, 0x33, 0xB8, 0x96, 0xE4,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
955   { "ss2005", { 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
956   { "usagui", { 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46,   0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
957   { "undefeat", { 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48,   0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
958   { "trizeal", { 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
959   { "moeru",  { 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55, 0x20, 0x09, 0x00, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55,   0x20, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
960   { "tetkiwam", { 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43,   0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
961   { "keyboard", { 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01,   0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42,   0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,   0xF0, 0x4A, 0x0C, 0x0C, 0xF0, 0x4A, 0x0C, 0x0C, 0x18, 0x09, 0x01, 0x20,   0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x18, 0x09, 0x01, 0x20,   0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
962};
955963
956
957964static NVRAM_HANDLER( naomi_eeproms )
958965{
959966   if (read_or_write)
r4962r4963
989996
990997         UINT32 length, size;
991998         UINT8 *dat;
992         UINT8* jvseeprom_default = NULL;
999         const UINT8* jvseeprom_default = NULL;
1000         int i;
9931001
9941002         dat = (UINT8 *)eeprom_get_data_pointer(&length, &size);
9951003         memset(dat, 0, length * size);
r4962r4963
9981006         eeprom_set_data((UINT8 *)"\011\241                              0000000000000000", 48);  // 2*checksum 30*unknown 16*serial
9991007
10001008         // some games require defaults to boot (vertical, 1 player etc.)
1001         if (!strcmp(machine->gamedrv->name,"karous"))  jvseeprom_default = jvseeprom_default_karous;
1002         if (!strcmp(machine->gamedrv->name,"sfz3ugd")) jvseeprom_default = jvseeprom_default_sfz3ugd;
1003         if (!strcmp(machine->gamedrv->name,"shikgam2")) jvseeprom_default = jvseeprom_default_shikgam2;
1004         if (!strcmp(machine->gamedrv->name,"quizqgd")) jvseeprom_default = jvseeprom_default_quizqgd;
1005         if (!strcmp(machine->gamedrv->name,"senko")) jvseeprom_default = jvseeprom_default_senko;
1006         if (!strcmp(machine->gamedrv->name,"senkoo")) jvseeprom_default = jvseeprom_default_senkoo;
1007         if (!strcmp(machine->gamedrv->name,"radirgy")) jvseeprom_default = jvseeprom_default_radirgy;
1008         if (!strcmp(machine->gamedrv->name,"trgheart")) jvseeprom_default = jvseeprom_default_trgheart;
1009         if (!strcmp(machine->gamedrv->name,"gundmgd")) jvseeprom_default = jvseeprom_default_gundmgd;
1010         if (!strcmp(machine->gamedrv->name,"gundmxgd")) jvseeprom_default = jvseeprom_default_gundmxgd;
1011         if (!strcmp(machine->gamedrv->name,"psyvar2")) jvseeprom_default = jvseeprom_default_psyvar2;
1012         if (!strcmp(machine->gamedrv->name,"cfield")) jvseeprom_default = jvseeprom_default_cfield;
1013         if (!strcmp(machine->gamedrv->name,"puyofev")) jvseeprom_default = jvseeprom_default_puyofev;
1014         if (!strcmp(machine->gamedrv->name,"bdrdown")) jvseeprom_default = jvseeprom_default_bdrdown;
1015         if (!strcmp(machine->gamedrv->name,"ss2005")) jvseeprom_default = jvseeprom_default_ss2005;
1016         if (!strcmp(machine->gamedrv->name,"usagui")) jvseeprom_default = jvseeprom_default_usagui;
1017         if (!strcmp(machine->gamedrv->name,"undefeat")) jvseeprom_default = jvseeprom_default_undefeat;
1018         if (!strcmp(machine->gamedrv->name,"trizeal")) jvseeprom_default = jvseeprom_default_trizeal;
1019         if (!strcmp(machine->gamedrv->name,"moeru")) jvseeprom_default = jvseeprom_default_moeru;
1020         if (!strcmp(machine->gamedrv->name,"tetkiwam")) jvseeprom_default = jvseeprom_default_tetkiwam;
1021         if (!strcmp(machine->gamedrv->name,"keyboard")) jvseeprom_default = jvseeprom_default_keyboard;
1009         for (i=0; i<ARRAY_LENGTH(jvseeprom_default_game); i++)
1010            if (!strcmp(machine->gamedrv->name, jvseeprom_default_game[i].name))
1011            {
1012               jvseeprom_default = jvseeprom_default_game[i].eeprom;
1013               break;
1014            }
10221015
10231016         if (jvseeprom_default)
10241017            memcpy(maple0x86data1, jvseeprom_default, 0x80);
r4962r4963
44804473//GDL-0018 Azumanga Daioh Puzzle Bobble
44814474//GDL-0019 Guilty Gear XX #Reload
44824475GAME( 2003, ggxxrl,    naomigd,  naomigd,  naomi,    ggxxrl,  ROT0,   "Arc System Works",       "Guilty Gear XX #Reload (Rev A) (GDL-0019A)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
4483GAME( 200?, tetkiwam,  naomigd,  naomigd,  naomi,    naomi,   ROT0,   "Success",                "Tetris Kiwamemichi (GDL-0020)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
4476GAME( 2004, tetkiwam,  naomigd,  naomigd,  naomi,    naomi,   ROT0,   "Success",                "Tetris Kiwamemichi (GDL-0020)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
44844477GAME( 2003, shikgam2,  naomigd,  naomigd,  naomi,    naomi,   ROT270, "Alpha System",           "Shikigami No Shiro II / The Castle of Shikigami II (GDL-0021)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
44854478GAME( 2003, usagui,    naomigd,  naomigd,  naomi_mp, naomi_mp,ROT0,   "Warashi / Taito / Mahjong Kobo", "Usagi - Yamashiro Mahjong Hen (GDL-0022)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING )
44864479//GDL-0023 Border Down
src/mame/drivers/galdrvr.c
r4962r4963
49974997
49984998/* other games on basic galaxian hardware */
49994999GAME( 1981, blkhole,  0,        galaxian, blkhole,  galaxian, ROT90,  "TDS", "Black Hole", GAME_SUPPORTS_SAVE )
5000GAME( 19??, orbitron, 0,        galaxian, orbitron, galaxian, ROT270, "Signatron USA", "Orbitron", GAME_SUPPORTS_SAVE )
5000GAME( 1982, orbitron, 0,        galaxian, orbitron, galaxian, ROT270, "Signatron USA", "Orbitron", GAME_SUPPORTS_SAVE )
50015001GAME( 1980, luctoday, 0,        galaxian, luctoday, galaxian, ROT270, "Sigma", "Lucky Today",GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
50025002GAME( 19??, chewing,  luctoday, galaxian, luctoday, galaxian, ROT90,  "unknown", "Chewing Gum", GAME_SUPPORTS_SAVE )
50035003GAME( 1982, catacomb, 0,        galaxian, catacomb, galaxian, ROT90,  "MTM Games", "Catacomb", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
r4962r4963
50055005
50065006/* these games require the coin lockout mechanism to be disabled */
50075007GAME( 1981, warofbug, 0,        galaxian, warofbug, nolock,   ROT90,  "Armenia", "War of the Bugs or Monsterous Manouvers in a Mushroom Maze", GAME_SUPPORTS_SAVE )
5008GAME( 19??, redufo,   0,        galaxian, redufo,   nolock,   ROT90,  "bootleg", "Defend the Terra Attack on the Red UFO", GAME_SUPPORTS_SAVE )
5008GAME( 1981, redufo,   0,        galaxian, redufo,   nolock,   ROT90,  "bootleg", "Defend the Terra Attack on the Red UFO", GAME_SUPPORTS_SAVE )
50095009GAME( 19??, exodus,   redufo,   galaxian, exodus,   nolock,   ROT90,  "Subelectro", "Exodus (bootleg?)", GAME_SUPPORTS_SAVE )
50105010
50115011/* different bullet color */
r4962r4963
51555155/* SF-X hardware; based on Scramble with extra Z80 and 8255 driving a DAC-based sample player */
51565156GAME( 1983, sfx,      0,        sfx,      sfx,      sfx,      ORIENTATION_FLIP_X, "Nichibutsu", "SF-X", GAME_SUPPORTS_SAVE )
51575157GAME( 1983, skelagon, sfx,      sfx,      sfx,      sfx,      ORIENTATION_FLIP_X, "Nichibutsu USA", "Skelagon", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE)
5158GAME( 198?, monsterz, 0,        sfx,      sfx,      sfx,      ORIENTATION_FLIP_X, "Nihon", "Monster Zero", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
5158GAME( 1982, monsterz, 0,        sfx,      sfx,      sfx,      ORIENTATION_FLIP_X, "Nihon", "Monster Zero", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
51595159
51605160
51615161/* scobra */
src/mame/drivers/junofrst.c
r4962r4963
115115
116116static WRITE8_DEVICE_HANDLER( junofrst_portB_w )
117117{
118   static const char *fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
118   static const char *const fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
119119   int i;
120120
121121
src/mame/drivers/nbmj8688.c
r4962r4963
30283028   MDRV_SOUND_REPLACE("psg", YM3812, 20000000/8)
30293029   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
30303030
3031   MDRV_SOUND_REMOVE("dac")
3031   MDRV_DEVICE_REMOVE("dac")
30323032MACHINE_DRIVER_END
30333033
30343034static MACHINE_DRIVER_START( mbmj_p16bit )
src/mame/drivers/meritm.c
r4962r4963
5252
5353  * indicates that game needs to be dumped or redumped
5454
55Custom Program Versions (from Super Megatouch IV manual):
55Custom Program Versions (from different Megatouch manuals):
5656
5757PROGRAM#    Program Version      Program Differences
5858---------------------------------------------------------------------------------------------
599255-41-01  Standard Version     Includes all Options, no Restrictions
609255-41-02  Minnesota Version    Excludes Casino Games
619255-41-06  California Version   Excludes Poker Double-up feature & No Free Game in Solitaire
629255-41-07  New Jersey Version   Includes 2-Coin Limit with Lockout Coil
639255-41-50  Bi-Lingual ENG/GER   Same as Standard Version, Without Word/Casino Games
649255-41-57  Internation Version  Same as Standard Version, Without Word Games
659255-41-60  Bi-Lingual ENG/FRE   Same as Standard Version, Without Word/Casino Games
669255-41-62  No Free Credit       Same as Standard Version, With No Free Credit
679255-41-70  Australia Version    Same as Standard Version with Special Question Set
689255-41-71  South Africa Ver.    Same as Standard Version with Special Question Set
599255-xx-01  Standard Version     Includes all Options, no Restrictions
609255-xx-02  Minnesota Version    Excludes Casino Games
619255-xx-03  Louisiana Version    Excludes all Poker Games
629255-xx-04  Wisconsin Version    Game Connot End if Player Busts; 1,000 Points are Added to End of Each Hand
639255-xx-06  California Version   Excludes Poker Double-up feature & No Free Game in Solitaire
649255-xx-07  New Jersey Version   Includes 2-Coin Limit with Lockout Coil
659255-xx-50  Bi-Lingual ENG/GER   Same as Standard Version, Without Word/Casino Games
669255-xx-54  Bi-Lingual ENG/SPA   Same as Standard Version, Without Word Games
679255-xx-56  No Free Credits      Same as Standard Version, Without Word Games and No Free Credits
689255-xx-57  Internation Version  Same as Standard Version, Without Word Games
699255-xx-60  Bi-Lingual ENG/FRE   Same as Standard Version, Without Word/Casino Games
709255-xx-62  No Free Credit       Same as Standard Version, With No Free Credit (see regional notes below)
719255-xx-62  Croatia              Same as Standard Version, With No Free Credit (see regional notes below)
729255-xx-70  Australia Version    Same as Standard Version with Special Question Set
739255-xx-71  South Africa Ver.    Same as Standard Version with Special Question Set
6974
75xx = game/version code:
76
77 20 - Megatouch 3
78 30 - Megatouch 3 Tournament
79 40 - Megatouch 4
80 41 - Megatouch Super 4
81 50 - Megatouch 4 Tournament
82 51 - Megatouch Super 4 Tournament
83 60 - Megatouch 5
84 70 - Megatouch 5 Tournament??
85 80 - Megatouch 6
86
87Not all regional versions are available for each Megatouch series
88 For Megatouch 4,       set 9255-40-62 is Croatia
89 For Megatouch Super 4, set 9255-41-62 is No Free Credit
90
7091  Notes/ToDo:
7192  - offset for top V9938 layer is hardcoded, probably should be taken from V9938 setup
7293  - blinking on Meagtouch title screen is probably incorrect
src/mame/drivers/bogeyman.c
r4962r4963
281281
282282/* Game Driver */
283283
284GAME( 1985?, bogeyman, 0, bogeyman, bogeyman, 0, ROT0, "Technos Japan", "Bogey Manor", GAME_IMPERFECT_COLORS )
284GAME( 1985, bogeyman, 0, bogeyman, bogeyman, 0, ROT0, "Technos Japan", "Bogey Manor", GAME_IMPERFECT_COLORS )
src/mame/drivers/fantland.c
r4962r4963
5555
5656VIDEO_UPDATE( fantland );
5757
58static const char *msm_name[4] = { "msm1", "msm2", "msm3", "msm4" };
58static const char *const msm_name[4] = { "msm1", "msm2", "msm3", "msm4" };
5959
6060/***************************************************************************
6161
src/mame/drivers/aristmk4.c
r0r4963
1/*
2
3  Enchanted Forest  1994 Aristocrat Leisure Industries
4  Manufacturer: Aristocrat Leisure Industries
5  Platform: Mark IV 540 Video
6
7  Driver by Palindrome
8
9
10Technical Notes:
11
12      MC6809 Motorola Processor
13      R6545AP for CRT video controller
14      UPD43256BCZ-70LL for 32kb of static ram used for 3 way electronic meters / 3 way memory
15      U6264A for Standard 8K x 8 bit SRAM used for video buffer
16      1 x R65C21P2  PIA - Peripheral Interface Adapter, connects to RTC and sends pulses to mechanical meters
17      1 x 6522 VIA - 1 x Rockwell - Versatile Interface Adapter.
18      2 x WF19054 = AY3-8910 sound chips driven by the 6522 VIA
19      1 x PML 2852 ( programmable logic ) used as address decoder.
20
21      VIA drives the programmable sound generators and generates
22      a timing interrupt to the CPU (M6809_FIRQ_LINE)
23
24      PIA provides output signals to six mechanical meters.
25      It also provides the real time clock DS1287 to the CPU.
26
27
28***********************************************************************************************************************************************/
29
30#define MAIN_CLOCK   XTAL_12MHz
31
32
33#include "driver.h"
34#include "cpu/m6809/m6809.h"
35#include "video/mc6845.h"
36#include "sound/ay8910.h"
37#include "machine/6522via.h"
38#include "machine/6821pia.h"
39
40
41
42static UINT8 *mkiv_vram;
43
44static VIDEO_START(aristmk4)
45{
46}
47
48static VIDEO_UPDATE(aristmk4)
49{
50   const gfx_element *gfx = screen->machine->gfx[0];
51   int x,y;
52   int count = 0;
53
54   for (y=0;y<27;y++)
55   {
56      for (x=0;x<38;x++)
57      {
58         int tile = (mkiv_vram[count+1]|mkiv_vram[count]<<8) & 0x3ff;
59         int color = ((mkiv_vram[count]) & 0xe0) >> 5;
60         int flipx = ((mkiv_vram[count]) & 0x04);
61         // 0x0800 probably flipy
62
63         drawgfx(bitmap,gfx,tile,color,flipx,0,x*8,y*8,cliprect,TRANSPARENCY_NONE,0);
64         count+=2;
65      }
66   }
67   return 0;
68}
69
70
71
72static WRITE8_HANDLER(test_w)
73{
74
75}
76
77static READ8_HANDLER(test_r)
78{
79       return 0;
80}
81
82
83/******************************************************************************
84
85PERIPHERAL INTERFACE ADAPTER CONFIGURATION
86
87PORTA - DALLAS DS1287 RTC
88PORTB - MECHANICAL METERS
89
90******************************************************************************/
91
92
93
94static int pia_data = 0;
95
96
97/*****************************************************************************/
98/* DALLAS DS1287
99******************************************************************************/
100
101static UINT8 bcd(UINT8 data)
102{
103   return ((data / 10) << 4) | (data % 10);
104}
105
106
107static UINT8 rtc_get_reg(running_machine *machine,int address_register)
108{
109   mame_system_time systime;
110   mame_get_current_datetime(machine, &systime);
111   switch(address_register)
112   {
113      case 0x00:
114         //seconds
115         return bcd(systime.local_time.second);
116      case 0x01:
117         //seconds alarm
118         return 0;
119      case 0x02:
120         //minutes
121            return bcd(systime.local_time.minute);
122      case 0x03:
123         //minutes alarm
124            return 0;//bcd(systime.local_time.minute);
125      case 0x04:
126         //hours
127         return bcd(systime.local_time.hour);
128      case 0x05:
129          //hours alarm
130         return 0;//bcd(systime.local_time.hour);
131      case 0x06:
132         //day of week
133         return bcd(systime.local_time.mday);
134      case 0x07:
135         //date of month
136         return bcd(systime.local_time.mday);
137      case 0x08:
138         //month
139         return bcd(systime.local_time.month + 1);
140      case 0x09:
141         //year
142         return bcd(systime.local_time.year % 10);
143      case 0x0A:
144         //register A
145         return 0xA;
146      case 0x0B:
147         //register B
148         return 0xB;
149      case 0x0C:
150         //register C
151         return 0xC;
152      case 0x0D:
153         //register D
154         return 0xD;
155      default:
156         fatalerror("DALLAS DS1287: Unknown register %02X", address_register);
157         return 0x00;
158     }
159}
160
161// RTC CLOCK
162
163// datain
164static WRITE8_HANDLER(mkiv_datain_pia_w)
165{
166    const device_config *pia_0 = devtag_get_device(space->machine, "pia6821_0");
167    //logerror("CPU ===> PIA: %02X\n", data);
168    pia6821_w(pia_0, offset, data);
169
170}
171
172// data out
173static READ8_HANDLER(mkiv_dataout_pia_r)
174{
175    return pia_data;
176
177}
178
179//input a
180static READ8_DEVICE_HANDLER(mkiv_pia_ina)
181{
182    // logerror("PIA Port A Read Handler: %02X\n", rtc_data);
183    pia_data = rtc_get_reg(device->machine,pia_data); //  RTC
184    return pia_data;
185
186
187}
188
189//output a
190static WRITE8_DEVICE_HANDLER(mkiv_pia_outa)
191{
192     pia_data = data;
193     //logerror("PIA Port A Write Handler: %02X\n", data);
194
195}
196
197//output ca2
198static WRITE8_DEVICE_HANDLER(mkiv_pia_ca2)
199{
200
201     //logerror("PIA Port CA2 Write Handler: %02X\n", data);
202}
203
204
205
206//output b
207static WRITE8_DEVICE_HANDLER(mkiv_pia_outb)
208{
209
210     UINT8 emet[5];
211     int i = 0;
212     //pia_data = data;
213     emet[0] = data & 0x01;   /* emet1  -  bit 1 - PB0 */
214                       /* seren1 -  bit 2 - PB1 */
215     emet[1] = data & 0x04; /* emet3  -  bit 3 - PB2 */
216     emet[2] = data & 0x08; /* emet4  -  bit 4 - PB3 */
217     emet[3] = data & 0x10; /* emet5  -  bit 5 - PB4 */
218     emet[4] = data & 0x20; /* emet6  -  bit 6 - PB5 */
219
220
221     for(i = 0;i<sizeof(emet);i++)
222     {
223        //   logerror("Mechanical meter %d pulse: %02d\n",i+1, emet[i]);
224     }
225     //logerror("\n");
226
227}
228
229
230//output cb2
231static WRITE8_DEVICE_HANDLER(mkiv_pia_cb2)
232{
233
234     //logerror("PIA Port CB2 Write Handler: %02X\n", data);
235}
236
237/******************************************************************************
238
239VERSATILE INTERFACE ADAPTER CONFIGURATION
240
241******************************************************************************/
242
243
244static READ8_DEVICE_HANDLER(via_a_r)
245{
246    return 0;
247}
248
249static READ8_DEVICE_HANDLER(via_b_r)
250{
251    return 0;
252}
253
254static WRITE8_DEVICE_HANDLER(via_a_w)
255{
256
257}
258
259static WRITE8_DEVICE_HANDLER(via_b_w)
260{
261
262}
263
264
265
266static ADDRESS_MAP_START( aristmk4_map, ADDRESS_SPACE_PROGRAM, 8 )
267     AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&mkiv_vram) // video ram -  chips U49 / U50
268     AM_RANGE(0x0800, 0x1fff) AM_RAM
269      AM_RANGE(0x2000, 0x3fff) AM_ROM  // graphics rom map
270      AM_RANGE(0x4000, 0x4fff) AM_RAM  // SRAM for meters - U74
271      // VIA
272      AM_RANGE(0x5000, 0x500f) AM_MIRROR(0x0010) AM_DEVREADWRITE("via6522_0",via_r,via_w)
273      // PIA
274      AM_RANGE(0x5380, 0x5383) AM_READWRITE(mkiv_dataout_pia_r,mkiv_datain_pia_w) // RTC data - PORT A , mechanical meters - PORTB ??
275      AM_RANGE(0x5468, 0x5468) AM_READWRITE(test_r,test_w) // audit switch and cage door switch ???
276      AM_RANGE(0x6000, 0xffff) AM_ROM  // game roms
277ADDRESS_MAP_END
278
279static INPUT_PORTS_START(aristmk4)
280
281    PORT_START("DSW1")
282   PORT_DIPNAME( 0x01, 0x00, "Maxbet rejection" )
283   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW1:1")
284   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
285   PORT_DIPNAME( 0x02, 0x00, "Hopper pay limit - S1" )
286   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW1:2")
287   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
288   PORT_DIPNAME( 0x04, 0x04, "Hopper pay limit - S2" )
289   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW1:3")
290   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
291   PORT_DIPNAME( 0x08, 0x00, "Hopper pay limit - S3" )
292   PORT_DIPSETTING(    0x00, DEF_STR( Off) )  PORT_DIPLOCATION("SW1:4")
293   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
294   PORT_DIPNAME( 0x10, 0x00, "Cash credit option" )
295   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW1:5")
296   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
297   PORT_DIPNAME( 0x20, 0x00, "Link Jackpot - S1" )
298   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW1:6")
299   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
300   PORT_DIPNAME( 0x40, 0x00, "Link Jackpot - S2" )
301   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW1:7")
302   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
303   PORT_DIPNAME( 0x80, 0x00, "Auto spin" )
304   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW1:8")
305   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
306
307   PORT_START("DSW2")
308   PORT_DIPNAME( 0x01, 0x00, "Maximum credit - S1" )
309   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW2:1")
310   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
311   PORT_DIPNAME( 0x02, 0x00, "Maximum credit - S2" )
312   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW2:2")
313   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
314   PORT_DIPNAME( 0x04, 0x00, "Maximum credit S3" )
315   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW2:3")
316   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
317   PORT_DIPNAME( 0x08, 0x00, "Jackpot limit - S1" )
318   PORT_DIPSETTING(    0x00, DEF_STR( Off) )  PORT_DIPLOCATION("SW2:4")
319   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
320   PORT_DIPNAME( 0x10, 0x10, "Jackpot limit - S1" )
321   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW2:5")
322   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
323   PORT_DIPNAME( 0x20, 0x20, "Jackpot limit" )
324   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW2:6")
325   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
326   PORT_DIPNAME( 0x40, 0x00, "Auto J/P payout" )
327   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW2:7")
328   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
329   PORT_DIPNAME( 0x80, 0x00, "unknown" )
330   PORT_DIPSETTING(    0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("SW2:8")
331   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
332INPUT_PORTS_END
333
334
335static const gfx_layout layout8x8x6 =
336{
337   8,8,
338   RGN_FRAC(1,6),
339   6,
340   {
341      RGN_FRAC(5,6),
342      RGN_FRAC(2,6),
343      RGN_FRAC(4,6),
344      RGN_FRAC(1,6),
345      RGN_FRAC(3,6),
346      RGN_FRAC(0,6)
347   },
348   { STEP8(0,1) },
349   { STEP8(0,8) },
350   8*8
351};
352
353
354
355static GFXDECODE_START(aristmk4)
356   GFXDECODE_ENTRY( "tile_gfx", 0, layout8x8x6, 0, 8 )
357GFXDECODE_END
358
359
360
361static const ay8910_interface ay8910_config1 =
362{
363   AY8910_LEGACY_OUTPUT,
364   AY8910_DEFAULT_LOADS,
365   DEVCB_NULL,
366   DEVCB_NULL,
367   DEVCB_NULL,
368   DEVCB_NULL
369};
370
371
372static const ay8910_interface ay8910_config2 =
373{
374   AY8910_LEGACY_OUTPUT,
375   AY8910_DEFAULT_LOADS,
376   DEVCB_INPUT_PORT("DSW1"),
377    DEVCB_NULL,
378   DEVCB_NULL,
379   DEVCB_NULL
380};
381
382/*
383static const via6522_interface via_interface =
384{
385    // DEVCB_HANDLER(via_a_in), DEVCB_HANDLER(via_b_in),
386    // DEVCB_HANDLER(input_ca1), DEVCB_HANDLER(input_cb1), DEVCB_HANDLER(input_ca2), DEVCB_HANDLER(input_cb2),
387    /// DEVCB_NULL, DEVCB_HANDLER(output_b),
388    // DEVCB_HANDLER(output_ca1), DEVCB_HANDLER(output_cb1), DEVCB_HANDLER(output_ca2), DEVCB_HANDLER(output_cb2),
389   //  DEVCB_CPU_INPUT_LINE("maincpu", M6809_FIRQ_LINE)
390}; */
391
392static const via6522_interface via_interface =
393{
394   /*inputs : A/B         */ DEVCB_HANDLER(via_a_r),DEVCB_HANDLER(via_b_r),
395   /*inputs : CA/B1,CA/B2 */ DEVCB_NULL,DEVCB_NULL,DEVCB_NULL,DEVCB_NULL,
396   /*outputs: A/B         */ DEVCB_HANDLER(via_a_w), DEVCB_HANDLER(via_b_w),
397   /*outputs: CA/B1,CA/B2 */ DEVCB_NULL,DEVCB_NULL,DEVCB_NULL,DEVCB_NULL,
398   /*irq                  */ DEVCB_CPU_INPUT_LINE("maincpu", M6809_FIRQ_LINE)
399};
400
401static const pia6821_interface aristmk4_pia1_intf =
402{
403    DEVCB_HANDLER(mkiv_pia_ina),     /* port A in */
404   DEVCB_NULL,    /* port B in */
405    DEVCB_NULL,     /* line CA1 in */
406    DEVCB_NULL,     /* line CB1 in */
407    DEVCB_NULL,     /* line CA2 in */
408    DEVCB_NULL,     /* line CB2 in */
409    DEVCB_HANDLER(mkiv_pia_outa),     /* port A out */
410    DEVCB_HANDLER(mkiv_pia_outb),     /* port B out */
411    DEVCB_HANDLER(mkiv_pia_ca2),     /* line CA2 out */
412    DEVCB_HANDLER(mkiv_pia_cb2),     /* port CB2 out */
413    DEVCB_NULL,       /* IRQA */
414    DEVCB_NULL        /* IRQB */
415};
416
417static const mc6845_interface mc6845_intf =
418{
419   /* in fact is a mc6845 driving 4 pixels by memory address.
420       that's why the big horizontal parameters */
421
422   "screen",/* screen we are acting on */
423   4,      /* number of pixels per video memory address */
424   NULL,   /* before pixel update callback */
425   NULL,   /* row update callback */
426   NULL,   /* after pixel update callback */
427   NULL,   /* callback for display state changes */
428   NULL,   /* HSYNC callback */
429   NULL   /* VSYNC callback */
430};
431
432
433
434static INTERRUPT_GEN( mkiv_irq )
435{
436}
437
438/* same as Casino Winner HW */
439static PALETTE_INIT( aristmk4 )
440{
441   int i;
442
443   for (i = 0;i < machine->config->total_colors;i++)
444   {
445      int bit0,bit1,bit2,r,g,b;
446
447      bit0 = (color_prom[0] >> 0) & 0x01;
448      bit1 = (color_prom[0] >> 1) & 0x01;
449      b = 0x4f * bit0 + 0xa8 * bit1;
450      bit0 = (color_prom[0] >> 2) & 0x01;
451      bit1 = (color_prom[0] >> 3) & 0x01;
452      bit2 = (color_prom[0] >> 4) & 0x01;
453      g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
454      bit0 = (color_prom[0] >> 5) & 0x01;
455      bit1 = (color_prom[0] >> 6) & 0x01;
456      bit2 = (color_prom[0] >> 7) & 0x01;
457      r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
458
459      palette_set_color(machine, i, MAKE_RGB(r, g, b));
460      color_prom++;
461   }
462}
463
464static MACHINE_DRIVER_START( aristmk4 )
465
466   /* basic machine hardware */
467   MDRV_CPU_ADD("maincpu", M6809, MAIN_CLOCK/4) // 3 MHZ
468   MDRV_CPU_PROGRAM_MAP(aristmk4_map)
469   MDRV_CPU_VBLANK_INT("screen", mkiv_irq )
470
471    /* video hardware */
472   MDRV_SCREEN_ADD("screen", RASTER)
473   MDRV_SCREEN_REFRESH_RATE(60)
474   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
475   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
476   MDRV_SCREEN_SIZE(320, 256)
477   MDRV_SCREEN_VISIBLE_AREA(0, 304-1, 0, 216-1)   /* from the crtc registers... updated by crtc */
478
479   MDRV_GFXDECODE(aristmk4)
480   MDRV_PALETTE_LENGTH(512)
481   MDRV_PALETTE_INIT(aristmk4)
482
483   MDRV_VIDEO_START(aristmk4)
484   MDRV_VIDEO_UPDATE(aristmk4)
485
486   MDRV_VIA6522_ADD("via6522_0", MAIN_CLOCK/6, via_interface)   /* 1 MHz.(only 1 or 2 MHz.are valid) */
487   MDRV_PIA6821_ADD("pia6821_0", aristmk4_pia1_intf)
488    MDRV_MC6845_ADD("crtc", MC6845, MAIN_CLOCK/8, mc6845_intf)
489
490    MDRV_SPEAKER_STANDARD_MONO("mono")
491    // the Mark IV has X 2 AY8910 sound chips which are tied to the VIA
492    MDRV_SOUND_ADD("ay1", AY8910, MAIN_CLOCK/8)
493    MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
494    MDRV_SOUND_ADD("ay2", AY8910, MAIN_CLOCK/8)
495    MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
496
497MACHINE_DRIVER_END
498
499
500ROM_START( eforest )
501
502   ROM_REGION(0x10000, "maincpu", 0 )
503    /* VIDEO AND SOUND EPROM */
504   ROM_LOAD("u59.bin", 0x02000, 0x2000, CRC(84226547) SHA1(df9c2c01a7ac4d930c06a8c4863853ddb1a2adbe)) // sound and video rom
505
506    /* GAME EPROMS */
507   ROM_LOAD("u87.bin", 0x06000, 0x2000, CRC(b2f79725) SHA1(66842130b49276bda91e211514af0ab074d2c283)) // game code
508   ROM_LOAD("u86.bin", 0x08000, 0x8000, CRC(547207f3) SHA1(aedae50abb4cffa0434abfe606a11fbbba037197)) // game code
509
510   /* SHAPE EPROMS */
511   ROM_REGION(0xc000, "tile_gfx", 0 )
512   ROM_LOAD("u20.bin", 0x00000, 0x2000, CRC(00446ff1) SHA1(e37e2782669667efab07ab3cd4e2c9f87770add5)) // gfx
513   ROM_LOAD("u21.bin", 0x02000, 0x2000, CRC(75670af6) SHA1(c6ce3dcc9e46ebdee65220cc0e0c8b43ee786ec0))
514      ROM_LOAD("u22.bin", 0x04000, 0x2000, CRC(531378f3) SHA1(7ce52ccfb38c8078eeb77e43cff8e426bd8d4d0f))
515   ROM_LOAD("u45.bin", 0x06000, 0x2000, CRC(e4dd4c72) SHA1(caeb1f754bcb7304b9a61786fb818eea7714808f))
516   ROM_LOAD("u46.bin", 0x08000, 0x2000, CRC(75ad8e3f) SHA1(87812850f08f8ad3057d0e5a2a20ad8acba01a26))
517   ROM_LOAD("u47.bin", 0x0a000, 0x2000, CRC(af9f9869) SHA1(1dac81470889a5fc5b58f3ad0c8dfa1369a800e8))
518
519    /* COLOR PROM */
520   ROM_REGION(0x200, "proms", 0 )
521   ROM_LOAD("u71.bin", 0x0000, 0x0200,  CRC(75814247) SHA1(9d123dadba3b5a1fd1c7f0100b255c4dd4f7e04f))
522ROM_END
523
524static DRIVER_INIT( aristmk4 )
525{
526   //...
527}
528
529GAME( 1994, eforest,0, aristmk4, aristmk4, aristmk4, ROT0,  "Aristocrat", "Enchanted Forest - 12XF528902", GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/phoenix.c
r4962r4963
507507   MDRV_SOUND_REPLACE("cust", PLEIADS, 0)
508508   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
509509
510   MDRV_SOUND_REMOVE("discrete")
510   MDRV_DEVICE_REMOVE("discrete")
511511MACHINE_DRIVER_END
512512
513513
src/mame/drivers/segas16a.c
r4962r4963
19611961
19621962static MACHINE_DRIVER_START( system16a_no7751 )
19631963   MDRV_IMPORT_FROM(system16a)
1964   MDRV_CPU_REMOVE("n7751")
1965   MDRV_SOUND_REMOVE("dac")
1964   MDRV_DEVICE_REMOVE("n7751")
1965   MDRV_DEVICE_REMOVE("dac")
19661966
19671967   MDRV_SOUND_REPLACE("ym", YM2151, 4000000)
19681968   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
src/mame/drivers/gottlieb.c
r4962r4963
18921892   MDRV_LASERDISC_OVERLAY(gottlieb, GOTTLIEB_VIDEO_HCOUNT, GOTTLIEB_VIDEO_VCOUNT, BITMAP_FORMAT_INDEXED16)
18931893   MDRV_LASERDISC_OVERLAY_CLIP(0, GOTTLIEB_VIDEO_HBLANK-1, 0, GOTTLIEB_VIDEO_VBLANK-8)
18941894
1895   MDRV_SCREEN_REMOVE("screen")
1895   MDRV_DEVICE_REMOVE("screen")
18961896   MDRV_LASERDISC_SCREEN_ADD_NTSC("screen", BITMAP_FORMAT_INDEXED16)
18971897
18981898   MDRV_SOUND_ADD("ldsound", LASERDISC, 0)
src/mame/drivers/ddragon.c
r4962r4963
11341134   MDRV_IMPORT_FROM(ddragon)
11351135
11361136   /* basic machine hardware */
1137   MDRV_CPU_REMOVE("sub")
1137   MDRV_DEVICE_REMOVE("sub")
11381138
11391139   /* sound hardware */
1140   MDRV_SOUND_REMOVE("adpcm1")
1141   MDRV_SOUND_REMOVE("adpcm2")
1140   MDRV_DEVICE_REMOVE("adpcm1")
1141   MDRV_DEVICE_REMOVE("adpcm2")
11421142MACHINE_DRIVER_END
11431143
11441144
src/mame/drivers/vcombat.c
r4962r4963
189189   return (input_port_read(space->machine, "IN2") << 8);
190190}
191191
192static void wiggle_i860_common(int n, UINT16 data, const device_config *device)
192static void wiggle_i860_common(const device_config *device, UINT16 data)
193193{
194194   int bus_hold = (data & 0x03) == 0x03;
195195   int reset = data & 0x10;
196   assert(n >= 0 && n < 2);
197196   if (!device)
198197      return;
198
199199   if (bus_hold)
200200   {
201201      fprintf(stderr, "M0 asserting bus HOLD to i860 %s\n", device->tag);
r4962r4963
218218
219219static WRITE16_HANDLER( wiggle_i860p0_pins_w )
220220{
221   wiggle_i860_common(0, data, cputag_get_cpu(space->machine, "vid_0"));
221   wiggle_i860_common(cputag_get_cpu(space->machine, "vid_0"), data);
222222}
223223
224224static WRITE16_HANDLER( wiggle_i860p1_pins_w )
225225{
226   wiggle_i860_common(1, data, cputag_get_cpu(space->machine, "vid_1"));
226   wiggle_i860_common(cputag_get_cpu(space->machine, "vid_1"), data);
227227}
228228
229229static READ16_HANDLER( main_irqiack_r )
src/mame/drivers/beaminv.c
r4962r4963
353353 *
354354 *************************************/
355355
356GAME( 19??, beaminv,  0,       beaminv, beaminv,  0, ROT270, "Tekunon Kougyou", "Beam Invader (set 1)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE)
356GAME( 1979, beaminv,  0,       beaminv, beaminv,  0, ROT270, "Tekunon Kougyou", "Beam Invader (set 1)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE)
357357GAME( 1979, beaminva, beaminv, beaminv, beaminva, 0, ROT270, "Tekunon Kougyou", "Beam Invader (set 2)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE) // what's the real title ?
src/mame/drivers/cubeqst.c
r4962r4963
456456/* Called by the sound CPU emulation */
457457static void sound_dac_w(const device_config *device, UINT16 data)
458458{
459   static const char *dacs[] =
459   static const char *const dacs[] =
460460   {
461461      "rdac0", "ldac0",
462462      "rdac1", "ldac1",
src/mame/drivers/sfbonus.c
r4962r4963
458458
459459}
460460
461static void sfbonus_draw_reel_layer(running_machine* machine, bitmap_t *bitmap, const rectangle *cliprect, const device_config *screen, int catagory)
461static void sfbonus_draw_reel_layer(const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect, int catagory)
462462{
463463   int zz;
464464   int i;
r4962r4963
612612   bitmap_fill(temp_reel_bitmap,cliprect,screen->machine->pens[0]);
613613
614614   /* render reels to bitmap */
615   sfbonus_draw_reel_layer(screen->machine,temp_reel_bitmap,cliprect, screen, 0);
615   sfbonus_draw_reel_layer(screen,temp_reel_bitmap,cliprect,0);
616616
617617   {
618618      int y,x;
src/mame/drivers/tokyocop.c
r4962r4963
6565ROM_END
6666
6767
68GAME( 200?, tokyocop,  0,   tokyocop, tokyocop, 0, ROT0, "Gaelco", "Tokyo Cop (Italy)", GAME_NOT_WORKING|GAME_NO_SOUND )
68GAME( 2003, tokyocop,  0,   tokyocop, tokyocop, 0, ROT0, "Gaelco", "Tokyo Cop (Italy)", GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/maygay1b.c
r4962r4963
114114static READ8_HANDLER( m1_8279_r )
115115{
116116   i8279_state *chip = i8279 + 0;
117   static const char *portnames[] = { "SW1","STROBE5","STROBE7","STROBE3","SW2","STROBE4","STROBE6","STROBE2" };
117   static const char *const portnames[] = { "SW1","STROBE5","STROBE7","STROBE3","SW2","STROBE4","STROBE6","STROBE2" };
118118   UINT8 result = 0xff;
119119   UINT8 addr;
120120
src/mame/drivers/twinkle.c
r4962r4963
607607static WRITE32_HANDLER(xx_w)
608608{
609609/*
610printf( "xx %08x %08x %08x\n", offset, mem_mask, data );
610    printf( "xx %08x %08x %08x\n", offset, mem_mask, data );
611611*/
612612}
613613
r4962r4963
626626   AM_RANGE(0x1f200000, 0x1f20001f) AM_READWRITE(am53cf96_r, am53cf96_w)
627627   AM_RANGE(0x1f20a01c, 0x1f20a01f) AM_WRITENOP /* scsi? */
628628   AM_RANGE(0x1f210400, 0x1f2107ff) AM_READNOP
629   AM_RANGE(0x1f218000, 0x1f218003) AM_WRITENOP /* sound irq? */
629   AM_RANGE(0x1f218000, 0x1f218003) AM_WRITE(watchdog_reset32_w) /* LTC1232 */
630630   AM_RANGE(0x1f220000, 0x1f220003) AM_WRITE(twinkle_io_w)
631631   AM_RANGE(0x1f220004, 0x1f220007) AM_READ(twinkle_io_r)
632632   AM_RANGE(0x1f230000, 0x1f230003) AM_WRITENOP
r4962r4963
667667
668668static READ32_HANDLER(yy_r)
669669{
670   printf( "yy %08x %08x\n", offset, mem_mask );
670/*  printf( "yy %08x %08x\n", offset, mem_mask ); */
671671   return 0;
672672}
673673
674674
675675static READ32_HANDLER(zz_r)
676676{
677//  printf( "zz %08x %08x\n", offset, mem_mask );
677/*  printf( "zz %08x %08x\n", offset, mem_mask ); */
678678   return 0;
679679}
680680
681681static WRITE32_HANDLER(ww_w)
682682{
683   printf( "ww %08x %08x %08x\n", offset, mem_mask, data );
683/*  printf( "ww %08x %08x %08x\n", offset, mem_mask, data ); */
684684}
685685
686686static READ32_HANDLER(ww_r)
687687{
688   printf( "ww %08x %08x\n", offset, mem_mask );
688/*  printf( "ww %08x %08x\n", offset, mem_mask ); */
689689   return 0;
690690}
691691
r4962r4963
787787   psx_irq_set(machine, 0x400);
788788}
789789
790static SCSIConfigTable dev_table =
790static const SCSIConfigTable dev_table =
791791{
792792   1, /* 1 SCSI device */
793793   {
r4962r4963
795795   }
796796};
797797
798static struct AM53CF96interface scsi_intf =
798static const struct AM53CF96interface scsi_intf =
799799{
800800   &dev_table,      /* SCSI device table */
801801   &scsi_irq,      /* command completion IRQ */
r4962r4963
847847   MDRV_CPU_ADD("audiocpu", M68EC020, 32000000/4)   /*  8.000 MHz!? */
848848   MDRV_CPU_PROGRAM_MAP( sound_map )
849849
850   MDRV_WATCHDOG_TIME_INIT(MSEC(1200)) /* check TD pin on LTC1232 */
851
850852   MDRV_MACHINE_RESET( twinkle )
851853   MDRV_NVRAM_HANDLER( twinkle )
852854
r4962r4963
877879   MDRV_SOUND_ROUTE( 1, "speakerright", 1.0 )
878880MACHINE_DRIVER_END
879881
880INPUT_PORTS_START( twinkle )
882static INPUT_PORTS_START( twinkle )
881883
882884   PORT_START("IN0")
883885   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1)
src/mame/drivers/mhavoc.c
r4962r4963
524524   MDRV_IMPORT_FROM(mhavoc)
525525   MDRV_CPU_MODIFY("alpha")
526526   MDRV_CPU_PROGRAM_MAP(alphaone_map)
527   MDRV_CPU_REMOVE("gamma")
527   MDRV_DEVICE_REMOVE("gamma")
528528
529529   MDRV_SCREEN_MODIFY("screen")
530530   MDRV_SCREEN_VISIBLE_AREA(0, 580, 0, 500)
r4962r4963
536536   MDRV_SOUND_REPLACE("pokey2", POKEY, MHAVOC_CLOCK_1_25M)
537537   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
538538
539   MDRV_SOUND_REMOVE("pokey3")
540   MDRV_SOUND_REMOVE("pokey4")
539   MDRV_DEVICE_REMOVE("pokey3")
540   MDRV_DEVICE_REMOVE("pokey4")
541541MACHINE_DRIVER_END
542542
543543
src/mame/drivers/cliffhgr.c
r4962r4963
700700   MDRV_IMPORT_FROM(tms9928a)
701701
702702   /* override video rendering and raw screen info */
703   MDRV_SCREEN_REMOVE("screen")
703   MDRV_DEVICE_REMOVE("screen")
704704   MDRV_LASERDISC_SCREEN_ADD_NTSC("screen", BITMAP_FORMAT_INDEXED16)
705705
706706   /* sound hardware */
src/mame/drivers/sprint2.c
r4962r4963
530530   MDRV_IMPORT_FROM(sprint2)
531531
532532   /* sound hardware */
533   MDRV_SPEAKER_REMOVE("lspeaker")
534   MDRV_SPEAKER_REMOVE("rspeaker")
533   MDRV_DEVICE_REMOVE("lspeaker")
534   MDRV_DEVICE_REMOVE("rspeaker")
535535   MDRV_SPEAKER_STANDARD_MONO("mono")
536536
537   MDRV_SOUND_REMOVE("discrete")
537   MDRV_DEVICE_REMOVE("discrete")
538538
539539   MDRV_SOUND_ADD("discrete", DISCRETE, 0)
540540   MDRV_SOUND_CONFIG_DISCRETE(sprint1)
r4962r4963
547547   MDRV_IMPORT_FROM(sprint2)
548548
549549   /* sound hardware */
550   MDRV_SPEAKER_REMOVE("lspeaker")
551   MDRV_SPEAKER_REMOVE("rspeaker")
550   MDRV_DEVICE_REMOVE("lspeaker")
551   MDRV_DEVICE_REMOVE("rspeaker")
552552   MDRV_SPEAKER_STANDARD_MONO("mono")
553553
554   MDRV_SOUND_REMOVE("discrete")
554   MDRV_DEVICE_REMOVE("discrete")
555555
556556   MDRV_SOUND_ADD("discrete", DISCRETE, 0)
557557   MDRV_SOUND_CONFIG_DISCRETE(dominos)
src/mame/drivers/86lions.c
r4962r4963
1212  - CRTC is using 4 pixels by memory address.
1313  - Xtal and crtc CLK are accurate.
1414  - Seems to be 1 DSW bank tied to VIA, and another to ay8910.
15  - Maybe this is "Aristocrat Mark-III" HW?
1516
1617TODO:
17    - Understand inputs / via mapping properly;
18    - Finish the mc6845 conversion;
18  - Understand inputs / via mapping properly;
19  - Finish the mc6845 conversion;
1920
2021Changes 02/06/2009 - Palindrome
2122- Fixed VIA address map to 5000 - 0x501f ( now generates required FIRQ_LINE timer interrupt,
r4962r4963
193194INPUT_PORTS_END
194195
195196
196static const gfx_layout layout8x8x3 =
197static const gfx_layout layout8x8x6 =
197198{
198199   8,8,
199   RGN_FRAC(1,3),
200   3,
201   { RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3), }, // Trusted, see MT 03190
200   RGN_FRAC(1,6),
201   6,
202   { RGN_FRAC(3,6),
203     RGN_FRAC(0,6),
204     RGN_FRAC(4,6),
205     RGN_FRAC(1,6),
206     RGN_FRAC(5,6),
207     RGN_FRAC(2,6)
208   },
202209   { STEP8(0,1) },
203210   { STEP8(0,8) },
204211   8*8
205212};
206213
207214static GFXDECODE_START( lions )
208   GFXDECODE_ENTRY( "gfx1", 0, layout8x8x3, 0, 1 )
209   GFXDECODE_ENTRY( "gfx2", 0, layout8x8x3, 0, 1 )
215   GFXDECODE_ENTRY( "gfx1", 0, layout8x8x6, 0, 1 )
210216GFXDECODE_END
211217
212218static const ay8910_interface ay8910_config =
r4962r4963
320326   NULL   /* VSYNC callback */
321327};
322328
329/* same as Aristocrat Mark-IV HW color offset 7 */
330static PALETTE_INIT( lions )
331{
332   int i;
333
334   for (i = 0;i < machine->config->total_colors;i++)
335   {
336      int bit0,bit1,bit2,r,g,b;
337
338      bit0 = (i >> 0) & 0x01;
339      bit1 = (i >> 1) & 0x01;
340      b = 0x4f * bit0 + 0xa8 * bit1;
341      bit0 = (i >> 1) & 0x01;
342      bit1 = (i >> 2) & 0x01;
343      bit2 = (i >> 3) & 0x01;
344      g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
345      bit0 = (i >> 3) & 0x01;
346      bit1 = (i >> 4) & 0x01;
347      bit2 = (i >> 5) & 0x01;
348      r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
349
350      palette_set_color(machine, i, MAKE_RGB(r, g, b));
351   }
352}
353
323354static MACHINE_DRIVER_START( lions )
324355   /* basic machine hardware */
325356   MDRV_CPU_ADD("maincpu", M6809, MAIN_CLOCK/4)       /* 3 MHz.(guess) */
r4962r4963
335366   MDRV_SCREEN_VISIBLE_AREA(0, 304-1, 0, 216-1)   /* from the crtc registers... updated by crtc */
336367
337368   MDRV_GFXDECODE(lions)
338   MDRV_PALETTE_LENGTH(8)
369   MDRV_PALETTE_LENGTH(64)
370   MDRV_PALETTE_INIT(lions)
339371
340372   MDRV_VIDEO_START(lions)
341373   MDRV_VIDEO_UPDATE(lions)
r4962r4963
356388   ROM_REGION( 0x10000, "maincpu", 0 )
357389   ROM_LOAD( "lion_std.u9", 0xe000, 0x2000, CRC(994842b0) SHA1(72fc31c577ee70b07ce9a4f2e864fe113d32affe) )
358390
359   ROM_REGION( 0x3000, "gfx1", 0 )
391   ROM_REGION( 0x6000, "gfx1", 0 )
360392   ROM_LOAD( "rd0.u13", 0x00000, 0x1000, CRC(38c57504) SHA1(cc3ac1df644abc4586fc9f0e88531ba146b86b48) )
361393   ROM_LOAD( "gn0.u10", 0x01000, 0x1000, CRC(80dce6f4) SHA1(bf953eba9cb270297b0d0efffe15b926e94dfbe7) )
362394   ROM_LOAD( "bl0.u8",  0x02000, 0x1000, CRC(00ef4724) SHA1(714fafd035e2befbb35c6d00df52845745e58a93) )
395   ROM_LOAD( "rd1.u12", 0x03000, 0x1000, CRC(350dd017) SHA1(ba273d4231e7e4c44922898cf5a70e8b1d6e2f9d) )
396   ROM_LOAD( "gn1.u11", 0x04000, 0x1000, CRC(80dce6f4) SHA1(bf953eba9cb270297b0d0efffe15b926e94dfbe7) )
397   ROM_LOAD( "bl1.u9",  0x05000, 0x1000, CRC(675e164a) SHA1(99346ca70bfe673b31d71dc6b3bbc3b8f961e87f) )
363398
364   ROM_REGION( 0x3000, "gfx2", 0 )
365   ROM_LOAD( "rd1.u12", 0x00000, 0x1000, CRC(350dd017) SHA1(ba273d4231e7e4c44922898cf5a70e8b1d6e2f9d) )
366   ROM_LOAD( "gn1.u11", 0x01000, 0x1000, CRC(80dce6f4) SHA1(bf953eba9cb270297b0d0efffe15b926e94dfbe7) )
367   ROM_LOAD( "bl1.u9",  0x02000, 0x1000, CRC(675e164a) SHA1(99346ca70bfe673b31d71dc6b3bbc3b8f961e87f) )
368
369399//  ROM_REGION( 0x20, "proms", 0 )
370400//  ROM_LOAD( "prom.x", 0x00, 0x20, NO_DUMP )
371401ROM_END
372402
373403
374GAME( 1985, 86lions, 0, lions, lions, 0, ROT0, "Aristocrat",  "86 Lions", GAME_WRONG_COLORS | GAME_NOT_WORKING )
404GAME( 1985, 86lions, 0, lions, lions, 0, ROT0, "Aristocrat",  "86 Lions", GAME_NOT_WORKING )
src/mame/drivers/system1.c
r4962r4963
432432
433433static CUSTOM_INPUT( dakkochn_mux_data_r )
434434{
435   static const char *ports[] = { "KEY0", "KEY1", "KEY2", "KEY3", "KEY4", "KEY5", "KEY6" };
435   static const char *const ports[] = { "KEY0", "KEY1", "KEY2", "KEY3", "KEY4", "KEY5", "KEY6" };
436436   return input_port_read(field->port->machine, ports[dakkochn_mux_data]);
437437}
438438
r4962r4963
21502150   MDRV_CPU_MODIFY("maincpu")
21512151   MDRV_CPU_IO_MAP(system1_pio_io_map)
21522152
2153   MDRV_PPI8255_REMOVE("ppi")
2153   MDRV_DEVICE_REMOVE("ppi")
21542154   MDRV_Z80PIO_ADD("pio", pio_interface)
21552155MACHINE_DRIVER_END
21562156
src/mame/drivers/megadriv.c
r4962r4963
14841484
14851485*/
14861486
1487INPUT_PORTS_START( md_common )
1487static INPUT_PORTS_START( md_common )
14881488   PORT_START("PAD1")      /* Joypad 1 (3 button + start) NOT READ DIRECTLY */
14891489   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
14901490   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
r4962r4963
16741674/************* 6 buttons version **************************/
16751675static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int portnum)
16761676{
1677   UINT8 retdata, helper = (megadrive_io_ctrl_regs[portnum] & 0x7f) | 0xc0; // bits 6 & 7 always come from megadrive_io_data_regs
1678   static const char *pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
1679   static const char *pad6names[] = { "EXTRA1", "EXTRA2", "IN0", "UNK" };
1677   UINT8 retdata, helper = (megadrive_io_ctrl_regs[portnum] & 0x3f) | 0xc0; // bits 6 & 7 always come from megadrive_io_data_regs
1678   static const char *const pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
1679   static const char *const pad6names[] = { "EXTRA1", "EXTRA2", "IN0", "UNK" };
16801680
16811681   if (megadrive_io_data_regs[portnum] & 0x40)
16821682   {
r4962r4963
17131713         /* here we read ((Start & A) >> 2) | Up and Down */
17141714         retdata = (megadrive_io_data_regs[portnum] & helper) |
17151715                  ((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
1716                     (input_port_read_safe(machine, pad3names[portnum], 0) & 0x02)) & ~helper);
1716                     (input_port_read_safe(machine, pad3names[portnum], 0) & 0x03)) & ~helper);
17171717      }
17181718   }
17191719
r4962r4963
17261726/************* 3 buttons version **************************/
17271727static UINT8 megadrive_io_read_data_port_3button(running_machine *machine, int portnum)
17281728{
1729   UINT8 retdata, helper = (megadrive_io_ctrl_regs[portnum] & 0x3f) | 0xc0; // bits 6 & 7 always come from megadrive_io_data_regs
1730   static const char *pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
1729   UINT8 retdata, helper = (megadrive_io_ctrl_regs[portnum] & 0x7f) | 0x80; // bit 7 always comes from megadrive_io_data_regs
1730   static const char *const pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
17311731
1732   if (megadrive_io_data_regs[portnum]&0x40)
1732   if (megadrive_io_data_regs[portnum] & 0x40)
17331733   {
17341734      /* here we read B, C & the directional buttons */
17351735      retdata = (megadrive_io_data_regs[portnum] & helper) |
1736               ((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) & ~helper);
1736               (((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) | 0x40) & ~helper);
17371737   }
17381738   else
17391739   {
17401740      /* here we read ((Start & A) >> 2) | Up and Down */
17411741      retdata = (megadrive_io_data_regs[portnum] & helper) |
17421742               ((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
1743                  (input_port_read_safe(machine, pad3names[portnum], 0) & 0x02)) & ~helper);
1743                  (input_port_read_safe(machine, pad3names[portnum], 0) & 0x03) | 0x40) & ~helper);
17441744   }
17451745
17461746   return retdata;
src/mame/drivers/itech32.c
r4962r4963
18111811   MDRV_NVRAM_HANDLER(itech020)
18121812
18131813   /* via */
1814   MDRV_VIA6522_REMOVE("via6522_0")
1814   MDRV_DEVICE_REMOVE("via6522_0")
18151815MACHINE_DRIVER_END
18161816
18171817
src/mame/drivers/mexico86.c
r4962r4963
444444   /* basic machine hardware */
445445   MDRV_IMPORT_FROM(mexico86)
446446
447   MDRV_CPU_REMOVE("sub")
447   MDRV_DEVICE_REMOVE("sub")
448448
449449   /* video hardware */
450450   MDRV_VIDEO_UPDATE(kikikai)
r4962r4963
459459   MDRV_CPU_MODIFY("maincpu")
460460   MDRV_CPU_VBLANK_INT("screen", kikikai_interrupt) // IRQs should be triggered by the MCU, but we don't have it
461461
462   MDRV_CPU_REMOVE("mcu")   // we don't have code for the MC6801U4
462   MDRV_DEVICE_REMOVE("mcu")   // we don't have code for the MC6801U4
463463
464464   /* video hardware */
465465   MDRV_VIDEO_UPDATE(kikikai)
src/mame/drivers/aleck64.c
r4962r4963
627627GAME( 1998, vivdolls, aleck64,  aleck64, aleck64,  aleck64, ROT0, "Visco", "Vivid Dolls", GAME_IMPERFECT_GRAPHICS )
628628GAME( 1999, srmvs,    aleck64,  aleck64, aleck64,  aleck64, ROT0, "Seta", "Super Real Mahjong VS", GAME_NOT_WORKING|GAME_NO_SOUND )
629629GAME( 2003, twrshaft, aleck64,  aleck64, aleck64,  aleck64, ROT0, "Aruze", "Tower & Shaft", GAME_NOT_WORKING|GAME_NO_SOUND )
630GAME( 200?, hipai,    aleck64,  aleck64, aleck64,  aleck64, ROT0, "Aruze?", "Hi Pai Paradise", GAME_NOT_WORKING|GAME_NO_SOUND )
631GAME( 200?, doncdoon, aleck64,  aleck64, aleck64,  aleck64, ROT0, "Aruze?", "Donchan no Hanabi de Doon", GAME_NOT_WORKING|GAME_NO_SOUND )
632GAME( 200?, kurufev,  aleck64,  aleck64, aleck64,  aleck64, ROT0, "Aruze?", "Kurukuru Fever", GAME_NOT_WORKING|GAME_NO_SOUND )
633GAME( 200?, mayjin3,  aleck64,  aleck64, aleck64,  aleck64, ROT0, "Seta?", "Mayjinsen 3", GAME_NOT_WORKING|GAME_NO_SOUND )
630GAME( 2003, hipai,    aleck64,  aleck64, aleck64,  aleck64, ROT0, "Aruze/Seta", "Hi Pai Paradise", GAME_NOT_WORKING|GAME_NO_SOUND )
631GAME( 2003, doncdoon, aleck64,  aleck64, aleck64,  aleck64, ROT0, "Aruze/Takumi", "Donchan no Hanabi de Doon", GAME_NOT_WORKING|GAME_NO_SOUND )
632GAME( 2003, kurufev,  aleck64,  aleck64, aleck64,  aleck64, ROT0, "Aruze/Takumi", "Kurukuru Fever", GAME_NOT_WORKING|GAME_NO_SOUND )
633GAME( 2000, mayjin3,  aleck64,  aleck64, aleck64,  aleck64, ROT0, "Seta/Able Corporation", "Mayjinsen 3", GAME_NOT_WORKING|GAME_NO_SOUND )
634634
src/mame/drivers/trackfld.c
r4962r4963
742742   MDRV_CPU_PROGRAM_MAP(hyprolyb_adpcm_map)
743743
744744   /* sound hardware */
745   MDRV_SOUND_REMOVE("vlm")
745   MDRV_DEVICE_REMOVE("vlm")
746746
747747   MDRV_SOUND_ADD("msm", MSM5205, 384000)
748748   MDRV_SOUND_CONFIG(msm5205_config)
src/mame/drivers/vegas.c
r4962r4963
22702270   MDRV_CPU_MODIFY("maincpu")
22712271   MDRV_CPU_PROGRAM_MAP(vegas_map_32mb)
22722272
2273   MDRV_3DFX_VOODOO_REMOVE("voodoo")
2273   MDRV_DEVICE_REMOVE("voodoo")
22742274   MDRV_3DFX_VOODOO_BANSHEE_ADD("voodoo", STD_VOODOO_BANSHEE_CLOCK, 16, "screen")
22752275   MDRV_3DFX_VOODOO_CPU("maincpu")
22762276   MDRV_3DFX_VOODOO_VBLANK(vblank_assert)
r4962r4963
22812281   MDRV_IMPORT_FROM(vegas32m)
22822282   MDRV_CPU_REPLACE("maincpu", RM7000LE, SYSTEM_CLOCK*2.5)
22832283
2284   MDRV_3DFX_VOODOO_REMOVE("voodoo")
2284   MDRV_DEVICE_REMOVE("voodoo")
22852285   MDRV_3DFX_VOODOO_3_ADD("voodoo", STD_VOODOO_3_CLOCK, 16, "screen")
22862286   MDRV_3DFX_VOODOO_CPU("maincpu")
22872287   MDRV_3DFX_VOODOO_VBLANK(vblank_assert)
r4962r4963
22952295   MDRV_CPU_REPLACE("maincpu", RM7000LE, SYSTEM_CLOCK*2.5)
22962296   MDRV_CPU_PROGRAM_MAP(vegas_map_32mb)
22972297
2298   MDRV_3DFX_VOODOO_REMOVE("voodoo")
2298   MDRV_DEVICE_REMOVE("voodoo")
22992299   MDRV_3DFX_VOODOO_3_ADD("voodoo", STD_VOODOO_3_CLOCK, 16, "screen")
23002300   MDRV_3DFX_VOODOO_CPU("maincpu")
23012301   MDRV_3DFX_VOODOO_VBLANK(vblank_assert)
src/mame/drivers/dkong.c
r4962r4963
17241724
17251725   /* basic machine hardware */
17261726   MDRV_IMPORT_FROM(s2650)
1727   MDRV_CPU_REMOVE("soundcpu")
1727   MDRV_DEVICE_REMOVE("soundcpu")
17281728
17291729   /* video hardware */
17301730   MDRV_VIDEO_UPDATE(spclforc)
src/mame/drivers/goldstar.c
r4962r4963
50695069MACHINE_DRIVER_END
50705070
50715071
5072VIDEO_START( unkch )
5072static VIDEO_START( unkch )
50735073{
50745074
50755075}
50765076
5077VIDEO_UPDATE( unkch )
5077static VIDEO_UPDATE( unkch )
50785078{
50795079   return 0;
50805080}
r4962r4963
78557855   memory_install_read8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO), 0x1a, 0x1a, 0, 0, fixedvale4_r);
78567856}
78577857
7858DRIVER_INIT(cherrys)
7858static DRIVER_INIT(cherrys)
78597859{
78607860   int i;
78617861   UINT8 *ROM = memory_region(machine, "maincpu");
src/mame/drivers/system16.c
r4962r4963
9696#include "sound/2612intf.h"
9797#include "sound/rf5c68.h"
9898
99extern VIDEO_START( system16a_bootleg );
100extern VIDEO_UPDATE( system16a_bootleg );
101extern VIDEO_UPDATE( system16a_bootleg_passht4b );
102extern WRITE16_HANDLER( system16a_bootleg_tilemapselect_w );
103extern WRITE16_HANDLER( system16a_bootleg_bgscrolly_w );
104extern WRITE16_HANDLER( system16a_bootleg_bgscrollx_w );
105extern WRITE16_HANDLER( system16a_bootleg_fgscrolly_w );
106extern WRITE16_HANDLER( system16a_bootleg_fgscrollx_w );
107extern UINT16* system16a_bootleg_bg0_tileram;
108extern UINT16* system16a_bootleg_bg1_tileram;
109
11099/***************************************************************************/
111100
112101static UINT16 coinctrl;
r4962r4963
875864
876865static UINT16 datsu_page[4];
877866
878void datsu_set_pages(void)
867static void datsu_set_pages(void)
879868{
880869   UINT16 page;
881870
r4962r4963
18411830   MDRV_CPU_PROGRAM_MAP(tturfbl_sound_map)
18421831   MDRV_CPU_IO_MAP(tturfbl_sound_io_map)
18431832
1844   MDRV_SOUND_REMOVE("7759")
1833   MDRV_DEVICE_REMOVE("7759")
18451834   MDRV_SOUND_ADD("5205", MSM5205, 220000)
18461835   MDRV_SOUND_CONFIG(tturfbl_msm5205_interface)
18471836   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.80)
r4962r4963
21272116
21282117static UINT8 *decrypted_region;
21292118
2130DRIVER_INIT( goldnabl )
2119static DRIVER_INIT( goldnabl )
21312120{
21322121   int i;
21332122   UINT8 *ROM = memory_region(machine, "maincpu");
r4962r4963
21572146}
21582147
21592148
2160DRIVER_INIT( bayrouteb1 )
2149static DRIVER_INIT( bayrouteb1 )
21612150{
21622151   // it has the same encryption as the golden axe bootleg!
21632152   //
r4962r4963
33473336   MDRV_CPU_MODIFY("soundcpu")
33483337   MDRV_CPU_PROGRAM_MAP(shdancbl_sound_map)
33493338   MDRV_CPU_IO_MAP(shdancbl_sound_io_map)
3350   MDRV_SOUND_REMOVE("5c68")
3339   MDRV_DEVICE_REMOVE("5c68")
33513340
33523341   MDRV_SOUND_ADD("5205", MSM5205, 200000)
33533342   MDRV_SOUND_CONFIG(shdancbl_msm5205_interface)
src/mame/drivers/cps1.c
r4962r4963
28262826   MDRV_NVRAM_HANDLER(qsound)
28272827
28282828   /* sound hardware */
2829   MDRV_SPEAKER_REMOVE("mono")
2829   MDRV_DEVICE_REMOVE("mono")
28302830   MDRV_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
28312831
2832   MDRV_SOUND_REMOVE("2151")
2833   MDRV_SOUND_REMOVE("oki")
2832   MDRV_DEVICE_REMOVE("2151")
2833   MDRV_DEVICE_REMOVE("oki")
28342834
28352835   MDRV_SOUND_ADD("qsound", QSOUND, QSOUND_CLOCK)
28362836   MDRV_SOUND_ROUTE(0, "lspeaker", 1.0)
src/mame/drivers/wiz.c
r4962r4963
756756   MDRV_SOUND_MODIFY("8910.2")
757757   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.12)
758758
759   MDRV_SOUND_REMOVE("8910.3")
759   MDRV_DEVICE_REMOVE("8910.3")
760760
761761   MDRV_SOUND_ADD("discrete", DISCRETE, 0)
762762   MDRV_SOUND_CONFIG_DISCRETE(stinger)
src/mame/drivers/galaxian.c
r4962r4963
413413static WRITE8_HANDLER( konami_sound_filter_w )
414414{
415415   const device_config *discrete = devtag_get_device(space->machine, "konami");
416   static const char *ayname[2] = { "8910.0", "8910.1" };
416   static const char *const ayname[2] = { "8910.0", "8910.1" };
417417   int which, chan;
418418
419419   /* the offset is used as data, 6 channels * 2 bits each */
src/mame/drivers/kyugo.c
r4962r4963
12391239GAME( 1985, flashgla, flashgal, flashgla, flashgal, 0,        ROT0,  "Sega", "Flashgal (set 2)", 0 )
12401240GAME( 1986, srdmissn, 0,        srdmissn, srdmissn, srdmissn, ROT90, "Taito Corporation", "S.R.D. Mission", 0 )
12411241GAME( 1986, fx,       srdmissn, srdmissn, srdmissn, srdmissn, ROT90, "bootleg", "F-X", 0 )
1242GAME( 1986?,legend,   0,        legend,   legend,   srdmissn, ROT0,  "Sega / Coreland ?", "Legend", 0 )
1242GAME( 1986, legend,   0,        legend,   legend,   srdmissn, ROT0,  "Sega / Coreland", "Legend", 0 )
12431243GAME( 1987, airwolf,  0,        srdmissn, airwolf,  srdmissn, ROT0,  "Kyugo", "Airwolf", 0 )
12441244GAME( 1987, airwolfa, airwolf,  srdmissn, airwolf,  srdmissn, ROT0,  "Kyugo (UA Theatre license)", "Airwolf (US)", 0 )
12451245GAME( 1987, skywolf,  airwolf,  srdmissn, skywolf,  srdmissn, ROT0,  "bootleg", "Sky Wolf (set 1)", 0 )
src/mame/drivers/psikyo.c
r4962r4963
11841184static MACHINE_DRIVER_START( sngkace )
11851185
11861186   /* basic machine hardware */
1187   MDRV_CPU_ADD("maincpu", M68EC020, 16000000)
1187   MDRV_CPU_ADD("maincpu", M68EC020, XTAL_32MHz/2) /* verified on pcb */
11881188   MDRV_CPU_PROGRAM_MAP(psikyo_map)
11891189   MDRV_CPU_VBLANK_INT("screen", irq1_line_hold)
11901190
1191   MDRV_CPU_ADD("audiocpu", Z80, 4000000)   /* ? */
1191   MDRV_CPU_ADD("audiocpu", Z80, XTAL_32MHz/8) /* verified on pcb */
11921192   MDRV_CPU_PROGRAM_MAP(sngkace_sound_map)
11931193   MDRV_CPU_IO_MAP(sngkace_sound_io_map)
11941194
r4962r4963
12121212   /* sound hardware */
12131213   MDRV_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
12141214
1215   MDRV_SOUND_ADD("ym", YM2610, 8000000)
1215   MDRV_SOUND_ADD("ym", YM2610, XTAL_32MHz/4) /* verified on pcb */
12161216   MDRV_SOUND_CONFIG(sngkace_ym2610_interface)
12171217   MDRV_SOUND_ROUTE(0, "lspeaker",  1.2)
12181218   MDRV_SOUND_ROUTE(0, "rspeaker", 1.2)
src/mame/drivers/rockola.c
r4962r4963
888888   MDRV_SOUND_CONFIG(satansat_sn76477_intf)
889889   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
890890
891   MDRV_SOUND_REMOVE("sn76477.2")
892   MDRV_SOUND_REMOVE("sn76477.3")
891   MDRV_DEVICE_REMOVE("sn76477.2")
892   MDRV_DEVICE_REMOVE("sn76477.3")
893893MACHINE_DRIVER_END
894894
895895static MACHINE_DRIVER_START( vanguard )
r4962r4963
957957   MDRV_SOUND_CONFIG_DISCRETE(fantasy)
958958   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
959959
960   MDRV_SOUND_REMOVE("sn76477.2")
960   MDRV_DEVICE_REMOVE("sn76477.2")
961961MACHINE_DRIVER_END
962962
963963static MACHINE_DRIVER_START( nibbler )
r4962r4963
965965   MDRV_IMPORT_FROM(fantasy)
966966
967967   // sound hardware
968   MDRV_SOUND_REMOVE("samples")
968   MDRV_DEVICE_REMOVE("samples")
969969MACHINE_DRIVER_END
970970
971971static MACHINE_DRIVER_START( pballoon )
src/mame/drivers/galaxold.c
r4962r4963
30243024GAME( 1985, trvchlng, 0,        racknrol, trvchlng, 0,         ROT90,  "Joyland (Senko License)", "Trivia Challenge", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
30253025GAME( 1981, ckongg,   0,        ckongg,   ckongg,   0,        ROT90,  "bootleg", "Crazy Kong (bootleg on Galaxian hardware, set 1)", GAME_SUPPORTS_SAVE )
30263026GAME( 1981, kkgalax,  ckongg,   kkgalax,  kkgalax,  0,        ROT90,  "bootleg", "Crazy Kong (bootleg on Galaxian hardware, set 2)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) // set was marked as 'King Kong on Galaxian'
3027GAME( 19??, porter,   0,        mooncrst, porter,   0,        ROT90,  "[Nova Games Ltd.] (bootleg)", "Port Man (bootleg on Moon Cresta hardware)", GAME_IMPERFECT_GRAPHICS ) // missing GFX bank switch!
3027GAME( 1982, porter,   0,        mooncrst, porter,   0,        ROT90,  "[Nova Games Ltd.] (bootleg)", "Port Man (bootleg on Moon Cresta hardware)", GAME_IMPERFECT_GRAPHICS ) // missing GFX bank switch!
src/mame/drivers/laserbas.c
r4962r4963
238238
239239GAME( 1981, laserbas, 0,        laserbas, laserbas, 0, ROT270, "Amstar/HOEI", "Laser Base (set 1)", GAME_NO_SOUND | GAME_NOT_WORKING)
240240GAME( 1981, laserbsa, laserbas, laserbas, laserbas, 0, ROT270, "Amstar/HOEI", "Laser Base (set 2)", GAME_NO_SOUND | GAME_NOT_WORKING )
241GAME( 19??, futflash, laserbas, laserbas, laserbas, 0, ROT270, "HOEI",        "Future Flash",       GAME_NO_SOUND | GAME_NOT_WORKING)
241GAME( 1981, futflash, laserbas, laserbas, laserbas, 0, ROT270, "HOEI",        "Future Flash",       GAME_NO_SOUND | GAME_NOT_WORKING)
src/mame/drivers/shadfrce.c
r4962r4963
2121
2222*******************************************************************************
2323
24Shadow Force
25Technos 1993
26
27PCB Layout
28----------
29
30TA-0032-P1-24
31MADE IN JAPAN
32|--------------------------------------------------------|
33|LA4460 MB3615 YM3012  3.579545MHz 32J8-0.32             |
34|VOL    MB3615 YM2151  Z80            32J7-0.25          |
35|              M6295                     32J6-0.24       |
36|   32J9-0.76         32J10.42              32J5-0.13    |
37|                     6116                     32J4-0.12 |
38|                                           |-------|    |
39|                                           |TECHNOS|    |
40|J                            62256         |TJ-005 |    |
41|A          62256             13.4952MHz    |       |    |
42|M          62256             28MHz         |-------|    |
43|M          32J11-0.55                       6116        |
44|A                 |-------|    |-------|    6116        |
45|                  |TECHNOS|    |TECHNOS|                |
46|                  |TJ-004 |    |TJ-002 |   32J3-0.6     |
47|DSW3              |       |    |       |   32J2-0.5     |
48|DSW2              |-------|    |-------|   32J1-0.4     |
49|DSW1           32A12-0.34                               |
50|CN2                32A14-0.33                           |
51|                62256  32A13-0.26     62256   A1010     |
52|        68000   62256      32J15-0.14 62256             |
53|--------------------------------------------------------|
54Notes:
55      68000    - Clock 14.000MHz [28/2]
56      Z80      - Clock 3.579545MHz
57      YM2151   - Clock 3.579545MHz
58      YM3012   - Clock 1.7897725MHz [3.579545/2]
59      M6295    - Clock 1.6869MHz [13.4952/8]. Pin 7 HIGH (5.0V)
60      A1010    - Actel A1010A-1 FPGA labelled 'TJ32A 92.11.30' (PLCC68)
61      LA4460   - Audio Power Amp
62      CN2      - 9 pin connector for extra buttons
63      MB3615   - Fujitsu MB3615 Quad Operational Amplifier (like TL074 except pin 11 tied to GND, not -5V)
64      6116     - 2k x8 SRAM (DIP24)
65      62256    - 32k x8 SRAM (DIP28)
66      DSW1/2/3 - 8-position dip switches
67
68      ROMs
69      ----
70      32J1 thru 32J8  - 16M mask ROM (DIP42)
71      32A12/13/14/J15 - 27C2001 EPROM (DIP32)
72      32J9            - 4M mask ROM (DIP32)
73      32J10           - 27C512 EPROM (DIP28)
74      32J11           - 27C010 EPROM (DIP32)
75
76      Measurements
77      ------------
78      X1     - 27.99987MHz
79      X2     - 3.57899MHz
80      X4     - 13.4894MHz
81      VSync  - 57.4446Hz
82      HSync  - 15.6248kHz
83
2484-- Read Me --
2585
2686Shadow Force (c)1993 Technos
r4962r4963
548608
549609ROM_START( shadfrce )
550610   ROM_REGION( 0x100000, "maincpu", 0 ) /* 68000 Code */
551   ROM_LOAD16_BYTE( "32a12-01.34", 0x00001, 0x40000, CRC(04501198) SHA1(50f981c13f9ed19d681d494376018ba86464ea13) )
611   ROM_LOAD16_BYTE( "32a12-01.34", 0x00001, 0x40000, CRC(04501198) SHA1(50f981c13f9ed19d681d494376018ba86464ea13) ) /* US Version 2 */
552612   ROM_LOAD16_BYTE( "32a13-01.26", 0x00000, 0x40000, CRC(b8f8a05c) SHA1(bd9d4218a7cf57b56aec1f7e710e02af8471f9d7) )
553613   ROM_LOAD16_BYTE( "32a14-0.33",  0x80001, 0x40000, CRC(08279be9) SHA1(1833526b23feddb58b21874070ad2bf3b6be8dca) )
554614   ROM_LOAD16_BYTE( "32a15-0.14",  0x80000, 0x40000, CRC(bfcadfea) SHA1(1caa9fc30d8622ce4c7221039c446e99cc8f5346) )
r4962r4963
577637
578638ROM_START( shadfrcj )
579639   ROM_REGION( 0x100000, "maincpu", 0 ) /* 68000 Code */
580   ROM_LOAD16_BYTE( "32j12-01.ic34", 0x00001, 0x40000, CRC(38fdbe1d) SHA1(476d8ef2c0d2a8c568ce44631f93f8c730f91b08) )
581   ROM_LOAD16_BYTE( "32j13-01.ic26", 0x00000, 0x40000, CRC(6e1df6f1) SHA1(c165553fe967b437413dd7ddc87a267548dd0ca9) )
582   ROM_LOAD16_BYTE( "32j14-01.ic33", 0x80001, 0x40000, CRC(89e3fb60) SHA1(90de38558d63215a0079079030e8b1097599c9e5) )
583   ROM_LOAD16_BYTE( "32j15-01.ic14", 0x80000, 0x40000, CRC(3dc3a84a) SHA1(166ad91b93192d94e3f6d2fe6dde02f59d334f75) )
640   ROM_LOAD16_BYTE( "32a12-011.34", 0x00001, 0x40000, CRC(0c041e08) SHA1(7b9d52cb1f6bc217c6e64287bd9630aa37243513) ) /* Japan Version 3 */
641   ROM_LOAD16_BYTE( "32a13-010.26", 0x00000, 0x40000, CRC(00985361) SHA1(e9da1b096b25a6ee46bab6230dda66dccdd4bed8) )
642   ROM_LOAD16_BYTE( "32a14-010.33", 0x80001, 0x40000, CRC(ea03ca25) SHA1(7af1ee7c36c70f80ba1e096473b5786b205ab00b) )
643   ROM_LOAD16_BYTE( "32j15-01.14",  0x80000, 0x40000, CRC(3dc3a84a) SHA1(166ad91b93192d94e3f6d2fe6dde02f59d334f75) )
584644
585645   ROM_REGION( 0x10000, "audiocpu", 0 ) /* Z80 Code */
586646   ROM_LOAD( "32j10-0.42",  0x00000, 0x10000, CRC(65daf475) SHA1(7144332b2d17af8645e22e1926b33113db0d20e2) )
587647
588648   ROM_REGION( 0x020000, "gfx1", ROMREGION_DISPOSE ) /* Chars */
589   ROM_LOAD( "32j11-0.ic55",  0x00000, 0x20000, CRC(7252d993) SHA1(43f7de381841039aa290486aafb98e2cf3b8579b) )
649   ROM_LOAD( "32j11-0.55",  0x00000, 0x20000, CRC(7252d993) SHA1(43f7de381841039aa290486aafb98e2cf3b8579b) )
590650
591651   ROM_REGION( 0xa00000, "gfx2", ROMREGION_DISPOSE ) /* Sprite Tiles */
592652   ROM_LOAD( "32j4-0.12",  0x000000, 0x200000, CRC(1ebea5b6) SHA1(35bd49dda9ad75326d45ffb10c87d83fc4f1b7a8) )
r4962r4963
604664   ROM_LOAD( "32j9-0.76",  0x000000, 0x080000, CRC(16001e81) SHA1(67928d2024f963aee91f1498b6f4c76101d2f3b8) )
605665ROM_END
606666
667ROM_START( shadfrcjv2 )
668   ROM_REGION( 0x100000, "maincpu", 0 ) /* 68000 Code */
669   ROM_LOAD16_BYTE( "32j12-01.34", 0x00001, 0x40000, CRC(38fdbe1d) SHA1(476d8ef2c0d2a8c568ce44631f93f8c730f91b08) ) /* Japan Version 2 */
670   ROM_LOAD16_BYTE( "32j13-01.26", 0x00000, 0x40000, CRC(6e1df6f1) SHA1(c165553fe967b437413dd7ddc87a267548dd0ca9) )
671   ROM_LOAD16_BYTE( "32j14-01.33", 0x80001, 0x40000, CRC(89e3fb60) SHA1(90de38558d63215a0079079030e8b1097599c9e5) )
672   ROM_LOAD16_BYTE( "32j15-01.14", 0x80000, 0x40000, CRC(3dc3a84a) SHA1(166ad91b93192d94e3f6d2fe6dde02f59d334f75) )
607673
608GAME( 1993, shadfrce, 0,        shadfrce, shadfrce, 0, ROT0, "Technos Japan", "Shadow Force (US Version 2)", GAME_NO_COCKTAIL )
609GAME( 1993, shadfrcj, shadfrce, shadfrce, shadfrce, 0, ROT0, "Technos Japan", "Shadow Force (Japan Version 2)", GAME_NO_COCKTAIL )
674   ROM_REGION( 0x10000, "audiocpu", 0 ) /* Z80 Code */
675   ROM_LOAD( "32j10-0.42",  0x00000, 0x10000, CRC(65daf475) SHA1(7144332b2d17af8645e22e1926b33113db0d20e2) )
676
677   ROM_REGION( 0x020000, "gfx1", ROMREGION_DISPOSE ) /* Chars */
678   ROM_LOAD( "32j11-0.55",  0x00000, 0x20000, CRC(7252d993) SHA1(43f7de381841039aa290486aafb98e2cf3b8579b) )
679
680   ROM_REGION( 0xa00000, "gfx2", ROMREGION_DISPOSE ) /* Sprite Tiles */
681   ROM_LOAD( "32j4-0.12",  0x000000, 0x200000, CRC(1ebea5b6) SHA1(35bd49dda9ad75326d45ffb10c87d83fc4f1b7a8) )
682   ROM_LOAD( "32j5-0.13",  0x200000, 0x200000, CRC(600026b5) SHA1(5641246300d7e20dcff1eae004647faaee6cd1c6) )
683   ROM_LOAD( "32j6-0.24",  0x400000, 0x200000, CRC(6cde8ebe) SHA1(750933798235951fe24b2e667c33f692612c0aa0) )
684   ROM_LOAD( "32j7-0.25",  0x600000, 0x200000, CRC(bcb37922) SHA1(f3eee73c8b9f4873a7f1cc42e334e7502eaee3c8) )
685   ROM_LOAD( "32j8-0.32",  0x800000, 0x200000, CRC(201bebf6) SHA1(c89d2895ea5b19daea1f88542419f4e10f437c73) )
686
687   ROM_REGION( 0x300000, "gfx3", ROMREGION_DISPOSE ) /* BG Tiles */
688   ROM_LOAD( "32j1-0.4",  0x000000, 0x100000, CRC(f1cca740) SHA1(339079b95ca137e66b4f032ad67a0adf58cca100) )
689   ROM_LOAD( "32j2-0.5",  0x100000, 0x100000, CRC(5fac3e01) SHA1(20c30f4c76e303285ae37e596afe86aa4812c3b9) )
690   ROM_LOAD( "32j3-0.6",  0x200000, 0x100000, CRC(d297925e) SHA1(5bc4d37bf0dc54114884c816b94a64ef1ccfeda5) )
691
692   ROM_REGION( 0x080000, "oki", 0 ) /* Samples */
693   ROM_LOAD( "32j9-0.76",  0x000000, 0x080000, CRC(16001e81) SHA1(67928d2024f963aee91f1498b6f4c76101d2f3b8) )
694ROM_END
695
696
697GAME( 1993, shadfrce,   0,        shadfrce, shadfrce, 0, ROT0, "Technos Japan", "Shadow Force (US Version 2)", GAME_NO_COCKTAIL )
698GAME( 1993, shadfrcj,   shadfrce, shadfrce, shadfrce, 0, ROT0, "Technos Japan", "Shadow Force (Japan Version 3)", GAME_NO_COCKTAIL )
699GAME( 1993, shadfrcjv2, shadfrce, shadfrce, shadfrce, 0, ROT0, "Technos Japan", "Shadow Force (Japan Version 2)", GAME_NO_COCKTAIL )
src/mame/drivers/ghosteo.c
r4962r4963
548548      U16        - 27C801 8MBit EPROM
549549      U20        - 29F040 EEPROM
550550      IC42S16800 - ISSI IC42S16800 4(2)M x 8(16) Bits x 4 Banks (128MBit) SDRAM
551
552      QS1000     - QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100)
553                   see http://www.hwass.co.kr/product.htm for more info on QS100x chips.
554      QS1001A    - QDSP QS1001A 512k x8 MaskROM (SOP32)
555
556      qs1001a.u17 was not dumped from this PCB, but is a standard sample rom found on many Eolith games
557                  see eolith.c and vegaeo.c drivers
551558*/
552559
553560ROM_START( bballoon )
r4962r4963
558565   ROM_REGION( 0x080000, "user2", 0 )
559566   ROM_LOAD( "b2.u20",       0x000000, 0x080000, CRC(0a12334c) SHA1(535b5b34f28435517218100d70147d87809f485a) )
560567
561   ROM_REGION( 0x100000, "unknown", 0 ) // sound wave
568   ROM_REGION( 0x100000, "sfx", 0 ) /* QDSP samples (SFX) */
562569   ROM_LOAD( "b1.u16",       0x000000, 0x100000, CRC(c42c1c85) SHA1(e1f49d556ffd6bc27142a7784c3bb8e37999857d) )
570
571   ROM_REGION( 0x080000, "wavetable", 0 ) /* QDSP wavetable rom */
572   ROM_LOAD( "qs1001a.u17",  0x000000, 0x80000, CRC(d13c6407) SHA1(57b14f97c7d4f9b5d9745d3571a0b7115fbe3176) )
563573ROM_END
564574
565575static DRIVER_INIT( bballoon )
src/mame/drivers/plygonet.c
r4962r4963
230230   if (mem_mask == 0x0000ff00)   { hi_addr++; }   /* Low byte */
231231   if (mem_mask == 0xff000000) {}            /* High byte */
232232
233   value = dsp56k_host_interface_read((device_config*)cputag_get_cpu(space->machine, "dsp"), hi_addr);
233   value = dsp56k_host_interface_read(cputag_get_cpu(space->machine, "dsp"), hi_addr);
234234
235235   if (mem_mask == 0x0000ff00)   { value <<= 8;  }
236236   if (mem_mask == 0xff000000) { value <<= 24; }
r4962r4963
299299   if (mem_mask == 0xff000000) { hi_data = (data & 0xff000000) >> 24; }
300300
301301   logerror("write (host-side) %08x %08x %08x (HI %04x)\n", offset, mem_mask, data, hi_addr);
302   dsp56k_host_interface_write((device_config*)cputag_get_cpu(space->machine, "dsp"), hi_addr, hi_data);
302   dsp56k_host_interface_write(cputag_get_cpu(space->machine, "dsp"), hi_addr, hi_data);
303303}
304304
305305
r4962r4963
375375
376376static UINT8 dsp56k_bank_group(const device_config* cpu)
377377{
378   UINT16 portC = dsp56k_get_peripheral_memory((device_config*)cpu, 0xffe3);
378   UINT16 portC = dsp56k_get_peripheral_memory(cpu, 0xffe3);
379379
380380   /* If bank group B is on, it overrides bank group A */
381381   if (portC & 0x0002)
r4962r4963
388388
389389static UINT8 dsp56k_bank_num(const device_config* cpu, UINT8 bank_group)
390390{
391   UINT16 portC = dsp56k_get_peripheral_memory((device_config*)cpu, 0xffe3);
391   UINT16 portC = dsp56k_get_peripheral_memory(cpu, 0xffe3);
392392
393393   if (bank_group == BANK_GROUP_A)
394394   {
r4962r4963
413413/* BANK HANDLERS */
414414static READ16_HANDLER( dsp56k_ram_bank00_read )
415415{
416   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
417   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
416   UINT8 en_group = dsp56k_bank_group(space->cpu);
417   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
418418   UINT32 driver_bank_offset = (en_group * dsp56k_bank00_size * 8) + (bank_num * dsp56k_bank00_size);
419419
420420   return dsp56k_bank00_ram[driver_bank_offset + offset];
r4962r4963
422422
423423static WRITE16_HANDLER( dsp56k_ram_bank00_write )
424424{
425   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
426   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
425   UINT8 en_group = dsp56k_bank_group(space->cpu);
426   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
427427   UINT32 driver_bank_offset = (en_group * dsp56k_bank00_size * 8) + (bank_num * dsp56k_bank00_size);
428428
429429   COMBINE_DATA(&dsp56k_bank00_ram[driver_bank_offset + offset]);
r4962r4963
432432
433433static READ16_HANDLER( dsp56k_ram_bank01_read )
434434{
435   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
436   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
435   UINT8 en_group = dsp56k_bank_group(space->cpu);
436   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
437437   UINT32 driver_bank_offset = (en_group * dsp56k_bank01_size * 8) + (bank_num * dsp56k_bank01_size);
438438
439439   return dsp56k_bank01_ram[driver_bank_offset + offset];
r4962r4963
441441
442442static WRITE16_HANDLER( dsp56k_ram_bank01_write )
443443{
444   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
445   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
444   UINT8 en_group = dsp56k_bank_group(space->cpu);
445   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
446446   UINT32 driver_bank_offset = (en_group * dsp56k_bank01_size * 8) + (bank_num * dsp56k_bank01_size);
447447
448448   COMBINE_DATA(&dsp56k_bank01_ram[driver_bank_offset + offset]);
r4962r4963
454454
455455static READ16_HANDLER( dsp56k_ram_bank02_read )
456456{
457   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
458   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
457   UINT8 en_group = dsp56k_bank_group(space->cpu);
458   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
459459   UINT32 driver_bank_offset = (en_group * dsp56k_bank02_size * 8) + (bank_num * dsp56k_bank02_size);
460460
461461   return dsp56k_bank02_ram[driver_bank_offset + offset];
r4962r4963
463463
464464static WRITE16_HANDLER( dsp56k_ram_bank02_write )
465465{
466   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
467   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
466   UINT8 en_group = dsp56k_bank_group(space->cpu);
467   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
468468   UINT32 driver_bank_offset = (en_group * dsp56k_bank02_size * 8) + (bank_num * dsp56k_bank02_size);
469469
470470   COMBINE_DATA(&dsp56k_bank02_ram[driver_bank_offset + offset]);
r4962r4963
473473
474474static READ16_HANDLER( dsp56k_shared_ram_read )
475475{
476   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
477   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
476   UINT8 en_group = dsp56k_bank_group(space->cpu);
477   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
478478   UINT32 driver_bank_offset = (en_group * dsp56k_shared_ram_16_size * 8) + (bank_num * dsp56k_shared_ram_16_size);
479479
480480   return dsp56k_shared_ram_16[driver_bank_offset + offset];
r4962r4963
482482
483483static WRITE16_HANDLER( dsp56k_shared_ram_write )
484484{
485   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
486   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
485   UINT8 en_group = dsp56k_bank_group(space->cpu);
486   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
487487   UINT32 driver_bank_offset = (en_group * dsp56k_shared_ram_16_size * 8) + (bank_num * dsp56k_shared_ram_16_size);
488488
489489   COMBINE_DATA(&dsp56k_shared_ram_16[driver_bank_offset + offset]);
r4962r4963
501501
502502static READ16_HANDLER( dsp56k_ram_bank04_read )
503503{
504   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
505   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
504   UINT8 en_group = dsp56k_bank_group(space->cpu);
505   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
506506   UINT32 driver_bank_offset = (en_group * dsp56k_bank04_size * 8) + (bank_num * dsp56k_bank04_size);
507507
508508   return dsp56k_bank04_ram[driver_bank_offset + offset];
r4962r4963
510510
511511static WRITE16_HANDLER( dsp56k_ram_bank04_write )
512512{
513   UINT8 en_group = dsp56k_bank_group((device_config*)space->cpu);
514   UINT8 bank_num = dsp56k_bank_num((device_config*)space->cpu, en_group);
513   UINT8 en_group = dsp56k_bank_group(space->cpu);
514   UINT8 bank_num = dsp56k_bank_num(space->cpu, en_group);
515515   UINT32 driver_bank_offset = (en_group * dsp56k_bank04_size * 8) + (bank_num * dsp56k_bank04_size);
516516
517517   COMBINE_DATA(&dsp56k_bank04_ram[driver_bank_offset + offset]);
src/mame/drivers/warriorb.c
r4962r4963
198198
199199static WRITE8_HANDLER( warriorb_pancontrol )
200200{
201   static const char *fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
201   static const char *const fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
202202
203203   offset = offset&3;
204204   ninjaw_pandata[offset] = (data<<1) + data;   /* original volume*3 */
src/mame/drivers/igs_blit.c
r4962r4963
25232523   MDRV_VIDEO_EOF(vbowl)   // trackball
25242524//  MDRV_GFXDECODE(chmplst2)
25252525
2526   MDRV_SOUND_REMOVE("oki")
2526   MDRV_DEVICE_REMOVE("oki")
25272527   MDRV_SOUND_ADD("ics", ICS2115, 0)
25282528   MDRV_SOUND_CONFIG(vbowl_ics2115_interface)
25292529   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 5.0)
src/mame/drivers/megazone.c
r4962r4963
5656
5757static WRITE8_DEVICE_HANDLER( megazone_portB_w )
5858{
59   static const char *fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
59   static const char *const fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
6060   int i;
6161
6262
src/mame/drivers/galaga.c
r4962r4963
17671767   /* basic machine hardware */
17681768   MDRV_IMPORT_FROM(galaga)
17691769
1770   MDRV_NAMCO_54XX_REMOVE("54xx")
1770   MDRV_DEVICE_REMOVE("54xx")
17711771
17721772   MDRV_CPU_ADD("sub3", Z80, MASTER_CLOCK/6)   /* 3.072 MHz */
17731773   MDRV_CPU_PROGRAM_MAP(galaga_mem4)
17741774
17751775   /* sound hardware */
1776   MDRV_SOUND_REMOVE("discrete")
1776   MDRV_DEVICE_REMOVE("discrete")
17771777MACHINE_DRIVER_END
17781778
17791779
r4962r4963
18331833   /* basic machine hardware */
18341834   MDRV_IMPORT_FROM( xevious )
18351835
1836   MDRV_NAMCO_50XX_REMOVE("50xx")
1837   MDRV_NAMCO_54XX_REMOVE("54xx")
1836   MDRV_DEVICE_REMOVE("50xx")
1837   MDRV_DEVICE_REMOVE("54xx")
18381838
18391839   MDRV_CPU_ADD("sub3", Z80, MASTER_CLOCK/6)   /* 3.072 MHz */
18401840   MDRV_CPU_PROGRAM_MAP(battles_mem4)
r4962r4963
18461846   MDRV_PALETTE_INIT(battles)
18471847
18481848   /* sound hardware */
1849   MDRV_SOUND_REMOVE("discrete")
1849   MDRV_DEVICE_REMOVE("discrete")
18501850
18511851   MDRV_SOUND_ADD("samples", SAMPLES, 0)
18521852   MDRV_SOUND_CONFIG(battles_samples_interface)
src/mame/drivers/lasso.c
r4962r4963
566566   MDRV_VIDEO_UPDATE(pinbo)
567567
568568   /* sound hardware */
569   MDRV_SOUND_REMOVE("sn76489.1")
570   MDRV_SOUND_REMOVE("sn76489.2")
569   MDRV_DEVICE_REMOVE("sn76489.1")
570   MDRV_DEVICE_REMOVE("sn76489.2")
571571
572572   MDRV_SOUND_ADD("ay1", AY8910, 1250000)
573573   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.55)
src/mame/drivers/retofinv.c
r4962r4963
386386static MACHINE_DRIVER_START( retofinb )
387387
388388   MDRV_IMPORT_FROM(retofinv)
389   MDRV_CPU_REMOVE("68705")
389   MDRV_DEVICE_REMOVE("68705")
390390
391391MACHINE_DRIVER_END
392392
src/mame/drivers/mcr68.c
r4962r4963
959959   /* basic machine hardware */
960960   MDRV_IMPORT_FROM(mcr68)
961961   MDRV_IMPORT_FROM(sounds_good)
962   MDRV_SPEAKER_REMOVE("mono")
962   MDRV_DEVICE_REMOVE("mono")
963963   MDRV_IMPORT_FROM(turbo_chip_squeak)
964964MACHINE_DRIVER_END
965965
src/mame/drivers/taito_z.c
r4962r4963
14471447/**** sound pan control ****/
14481448static WRITE8_HANDLER( taitoz_pancontrol )
14491449{
1450   static const char *fltname[] = { "2610.1.r", "2610.1.l", "2610.2.r", "2610.2.l" };
1450   static const char *const fltname[] = { "2610.1.r", "2610.1.l", "2610.2.r", "2610.2.l" };
14511451
14521452//  static UINT8 taitoz_pandata[4];
14531453
src/mame/drivers/aristmk5.c
r4962r4963
9393   ROM_LOAD32_WORD( "indiandr.u12", 0x100002, 0x80000, CRC(4bbe67f6) SHA1(928f88387da66697f1de54f086531f600f80a15e) )
9494ROM_END
9595
96ROM_START( dolphntr )
97   ROM_REGION( 0x800000, "maincpu", 0 ) /* ARM Code */
98   ROM_LOAD32_WORD( "0100424v.u7",  0x000000, 0x80000, CRC(657faef7) SHA1(09e1f9d461e855c10cf8b825ef83dd3e7db65b43) )
99   ROM_LOAD32_WORD( "0100424v.u11", 0x000002, 0x80000, CRC(65aa46ec) SHA1(3ad4270efbc2e947097d94a3258a544d79a1d599) )
100   ROM_LOAD32_WORD( "0100424v.u8",  0x100000, 0x80000, CRC(e77868ad) SHA1(3345da120075bc0da47bac0a4840790693382620) )
101   ROM_LOAD32_WORD( "0100424v.u12", 0x100002, 0x80000, CRC(6abd9309) SHA1(c405a13f5bfe447c1ab20d92e140e4fb145920d4) )
102ROM_END
103
104ROM_START( dolphtra )
105   ROM_REGION( 0x800000, "maincpu", 0 ) /* ARM Code */
106   ROM_LOAD32_WORD( "0200424v.u7",  0x000000, 0x80000, CRC(5dd88306) SHA1(ee8ec7d123d057e8df9be0e8dadecea7dab7aafd) )
107   ROM_LOAD32_WORD( "0200424v.u11", 0x000002, 0x80000, CRC(bcb732ea) SHA1(838300914846c6e740780e5a24b9db7304a8a88d) )
108ROM_END
109
96110ROM_START( goldprmd )
97111   ROM_REGION( 0x800000, "maincpu", 0 ) /* ARM Code */
98112   ROM_LOAD32_WORD( "goldprmd.u7",  0x000000, 0x80000, CRC(2fbed80c) SHA1(fb0d97cb2be96da37c487fc3aef06c6120efdb46) )
r4962r4963
150164
151165GAME( 1995, swthrt2v, 0, aristmk5, aristmk5, aristmk5, ROT0,  "Aristocrat", "Sweet Hearts II (C - 07/09/95, Venezuela version)", GAME_NOT_WORKING|GAME_NO_SOUND )
152166GAME( 1995, enchfrst, 0, aristmk5, aristmk5, aristmk5, ROT0,  "Aristocrat", "Enchanted Forest (E - 23/06/95, Local)", GAME_NOT_WORKING|GAME_NO_SOUND )
167GAME( 1996, dolphntr, 0, aristmk5, aristmk5, aristmk5, ROT0,  "Aristocrat", "Dolphin Treasure (B - 06/12/96, NSW/ACT, Rev 1.24.4.0)", GAME_NOT_WORKING|GAME_NO_SOUND )
168GAME( 1996, dolphtra, 0, aristmk5, aristmk5, aristmk5, ROT0,  "Aristocrat", "Dolphin Treasure (B - 06/12/96, NSW/ACT, Rev 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
153169GAME( 1997, goldprmd, 0, aristmk5, aristmk5, aristmk5, ROT0,  "Aristocrat", "Golden Pyramids (B - 13-05-97, USA)", GAME_NOT_WORKING|GAME_NO_SOUND )
154170GAME( 1997, qotn,     0, aristmk5, aristmk5, aristmk5, ROT0,  "Aristocrat", "Queen of the Nile (B - 13-05-97, NSW/ACT)", GAME_NOT_WORKING|GAME_NO_SOUND )
155171GAME( 1997, dmdtouch, 0, aristmk5, aristmk5, aristmk5, ROT0,  "Aristocrat", "Diamond Touch (E - 30-06-97, Local)", GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/mirax.c
r4962r4963
22****************************************************
33Mirax (C)1985 Current Technologies
44
5skeleton driver by Tomasz Slanina analog[AT]op[DOT]pl
5driver by
6Tomasz Slanina analog[AT]op[DOT]pl
7Angelo Salese
8Olivier Galibert
69
10TODO:
11- emulate sound properly;
12- sprite offsets?
13- score / credits display should stay above the sprites?
714
15====================================================
16
817CPU: Ceramic potted module, Z80C
918Sound: AY-3-8912 (x2)
1019RAM: 74S201, 74S201 (x6), 2148 (x6), 2114 (x2), 58725 (x2), 6116
r4962r4963
6574#include "deprecat.h"
6675#include "sound/ay8910.h"
6776
68static UINT8 nSndNum;
6977static UINT8 nAyCtrl, nAyData;
78static UINT8 nmi_mask;
7079
7180static VIDEO_START(mirax)
7281{
7382}
7483
84static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
85{
86   int count;
7587
88   for(count=0;count<0x200;count+=4)
89   {
90      int spr_offs,x,y,color,fx,fy;
91
92      if(spriteram[count] == 0x00 || spriteram[count+3] == 0x00)
93         continue;
94
95      spr_offs = (spriteram[count+1] & 0x3f);
96      color = spriteram[count+2] & 0x7;
97      fx = spriteram[count+1] & 0x40; //<- guess
98      fy = spriteram[count+1] & 0x80;
99
100      spr_offs += (spriteram[count+2] & 0xe0)<<1;
101      spr_offs += (spriteram[count+2] & 0x10)<<5;
102
103      y = 0x100 - spriteram[count];
104      x = spriteram[count+3];
105
106      drawgfx(bitmap,machine->gfx[1],spr_offs,color,fx,fy,x,y-16,cliprect,TRANSPARENCY_PEN,0);
107   }
108}
109
76110static VIDEO_UPDATE(mirax)
77111{
78112   const gfx_element *gfx = screen->machine->gfx[0];
79113   int count = 0x00000;
80
81114   int y,x;
82115
83
84116   for (y=0;y<32;y++)
85117   {
86118      for (x=0;x<32;x++)
87119      {
88120         int tile = videoram[count];
89         //int colour = tile>>12;
90         drawgfx(bitmap,gfx,tile & 0xff,0,0,0,x*8,y*8,cliprect,TRANSPARENCY_NONE,0);
121         int color = (colorram[x*2]<<8) | (colorram[(x*2)+1]);
122         int x_scroll = (color & 0xff00)>>8;
123         tile |= ((color & 0xe0)<<3);
91124
125         drawgfx(bitmap,gfx,tile,color & 7,0,0,(x*8),(y*8)-x_scroll,cliprect,TRANSPARENCY_NONE,0);
126         /* wrap-around */
127         drawgfx(bitmap,gfx,tile,color & 7,0,0,(x*8),(y*8)-x_scroll+256,cliprect,TRANSPARENCY_NONE,0);
128
92129         count++;
93130      }
94131   }
95132
133   draw_sprites(screen->machine,bitmap,cliprect);
96134
135   count = 0x00000;
97136
98#ifdef MAME_DEBUG
99   //audio tester
100   if(input_code_pressed_once(KEYCODE_Q))
137   /* draw score and credit displays above the sprites */
138   for (y=0;y<32;y++)
101139   {
102      cputag_set_input_line(screen->machine, "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
140      for (x=0;x<32;x++)
141      {
142         int tile = videoram[count];
143         int color = (colorram[x*2]<<8) | (colorram[(x*2)+1]);
144         int x_scroll = (color & 0xff00)>>8;
145         tile |= ((color & 0xe0)<<3);
146
147         if(x <= 1 || x >= 30)
148         {
149            drawgfx(bitmap,gfx,tile,color & 7,0,0,(x*8),(y*8)-x_scroll,cliprect,TRANSPARENCY_NONE,0);
150            /* wrap-around */
151            drawgfx(bitmap,gfx,tile,color & 7,0,0,(x*8),(y*8)-x_scroll+256,cliprect,TRANSPARENCY_NONE,0);
152         }
153
154         count++;
155      }
103156   }
104#endif
157
105158   return 0;
106159}
107160
108161
109162static SOUND_START(mirax)
110163{
111   nSndNum = 0x10;
112164   nAyCtrl = 0x00;
113165   nAyData = 0x00;
114166}
115167
116static READ8_HANDLER(snd_read)
117{
118   /* bit 6 is used to select AY (1st or 2nd) */
119
120   return nSndNum++;
121}
122
123168static WRITE8_HANDLER(audio_w)
124169{
125170   if(cpu_get_previouspc(space->cpu)==0x2fd)
r4962r4963
129174   }
130175}
131176
132
133177static WRITE8_DEVICE_HANDLER(ay_sel)
134178{
135179   if(cpu_get_previouspc(cputag_get_cpu(device->machine, "audiocpu"))==0x309)
r4962r4963
141185
142186static READ8_HANDLER( unk_r )
143187{
144   return mame_rand(space->machine);
188   return 0xff;
145189}
146190
191static WRITE8_HANDLER( nmi_mask_w )
192{
193   nmi_mask = data & 1;
194   if(data & 0xfe)
195      printf("Warning: %02x written at $f501\n",data);
196}
197
198static WRITE8_HANDLER( mirax_sound_cmd_w )
199{
200   soundlatch_w(space, 0, data & 0xff);
201   cputag_set_input_line(space->machine, "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
202}
203
147204static ADDRESS_MAP_START( mirax_main_map, ADDRESS_SPACE_PROGRAM, 8 )
148   AM_RANGE(0x0000, 0xbfff) AM_ROM AM_WRITENOP //shoudn't write there!
149   //AM_RANGE(0xc000, 0xc7ff) AM_RAM
150   //AM_RANGE(0xc800, 0xcfff) AM_RAM //probably spriteram
151   AM_RANGE(0xd000, 0xd7ff) AM_RAM
152   //AM_RANGE(0xd800, 0xdfff) AM_RAM
205   AM_RANGE(0x0000, 0xbfff) AM_ROM
206   AM_RANGE(0xc800, 0xd7ff) AM_RAM
153207   AM_RANGE(0xe000, 0xe3ff) AM_RAM AM_BASE(&videoram)
154   AM_RANGE(0xf300, 0xf300) AM_READ(unk_r) //watchdog?
208   AM_RANGE(0xe800, 0xe9ff) AM_RAM AM_BASE(&spriteram)
209   AM_RANGE(0xea00, 0xea3f) AM_RAM AM_BASE(&colorram) //per-column color + bank bits for the videoram
210   AM_RANGE(0xf000, 0xf000) AM_READ_PORT("P1")
211   AM_RANGE(0xf100, 0xf100) AM_READ_PORT("P2")
212   AM_RANGE(0xf200, 0xf200) AM_READ_PORT("DSW1")
213   AM_RANGE(0xf300, 0xf300) AM_READ(unk_r) //watchdog? value is always read then discarded
214   AM_RANGE(0xf400, 0xf400) AM_READ_PORT("DSW2")
215//  AM_RANGE(0xf500, 0xf500) //coin counter
216   AM_RANGE(0xf501, 0xf501) AM_WRITE(nmi_mask_w)
217//  AM_RANGE(0xf506, 0xf506)
218//  AM_RANGE(0xf507, 0xf507)
219   AM_RANGE(0xf800, 0xf800) AM_WRITE(mirax_sound_cmd_w)
220//  AM_RANGE(0xf900, 0xf900) //sound cmd mirror? ack?
155221ADDRESS_MAP_END
156222
157static ADDRESS_MAP_START( mirax_io_map, ADDRESS_SPACE_IO, 8 )
158
159ADDRESS_MAP_END
160
161223static ADDRESS_MAP_START( mirax_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
162224   AM_RANGE(0x0000, 0x1fff) AM_ROM
163225   AM_RANGE(0x8000, 0x8fff) AM_RAM
164   AM_RANGE(0xa000, 0xa000) AM_READ(snd_read)
226   AM_RANGE(0xa000, 0xa000) AM_READ(soundlatch_r)
165227
166228   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("ay1", ay_sel) //1st ay ?
167229   AM_RANGE(0xe001, 0xe001) AM_WRITENOP
r4962r4963
172234   AM_RANGE(0xe403, 0xe403) AM_WRITENOP
173235
174236   AM_RANGE(0xf900, 0xf9ff) AM_WRITE(audio_w)
175
176237ADDRESS_MAP_END
177238
178static ADDRESS_MAP_START( mirax_sound_io_map, ADDRESS_SPACE_IO, 8 )
179
180ADDRESS_MAP_END
181
182239static const gfx_layout layout16 =
183240{
184241   16,16,
r4962r4963
206263static GFXDECODE_START( mirax )
207264   GFXDECODE_ENTRY( "gfx1", 0, layout8,     0, 8 )
208265   GFXDECODE_ENTRY( "gfx2", 0, layout16,    0, 8 )
209   GFXDECODE_ENTRY( "gfx3", 0, layout16,    0, 8 )
210266GFXDECODE_END
211267
212268static INPUT_PORTS_START( mirax )
269   /* up/down directions are trusted according of the continue screen */
270   PORT_START("P1") //player-1
271   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
272   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
273   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
274   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
275   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
276   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
277   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN1 )
278   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN2 )
213279
280   PORT_START("P2") //player-2
281   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
282   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
283   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
284   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
285   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)
286   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
287   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )
288   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
289
290   PORT_START("DSW1") //dip-sw bank 1
291   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )
292   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
293   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
294   PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
295   PORT_DIPSETTING(    0x02, DEF_STR( 1C_3C ) )
296   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
297   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
298   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
299   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
300   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
301   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
302   PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) )
303   PORT_DIPSETTING(    0x30, "2" )
304   PORT_DIPSETTING(    0x00, "3" )
305   PORT_DIPSETTING(    0x10, "4" )
306   PORT_DIPSETTING(    0x20, "5" )
307   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
308   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
309   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
310   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
311   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
312   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
313
314   PORT_START("DSW2") //dip-sw bank 2
315   PORT_DIPNAME( 0x01, 0x01, "DSW_BANK2" )
316   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
317   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
318   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
319   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
320   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
321   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) )
322   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
323   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
324   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) )
325   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
326   PORT_DIPSETTING(    0x08, DEF_STR( Yes ) )
327   /* this dip makes the game to behave like attract mode, even if you insert a coin */
328   PORT_DIPNAME( 0x10, 0x00, "Auto-Play Mode (Debug)" )
329   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
330   PORT_DIPSETTING(    0x10, DEF_STR( Yes ) )
331   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
332   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
333   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
334   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
335   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
336   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
337   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
338   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
339   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
214340INPUT_PORTS_END
215341
216342
217PALETTE_INIT( mirax )
343static PALETTE_INIT( mirax )
218344{
219345   int i;
220346
r4962r4963
233359      bit2 = (color_prom[i] >> 5) & 0x01;
234360      g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
235361      /* blue component */
236      bit0 = 0;
237      bit1 = (color_prom[i] >> 6) & 0x01;
238      bit2 = (color_prom[i] >> 7) & 0x01;
239      b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
362      bit0 = (color_prom[i] >> 6) & 0x01;
363      bit1 = (color_prom[i] >> 7) & 0x01;
364      b = 0x4f * bit0 + 0xa8 * bit1;
240365
241366      palette_set_color(machine,i,MAKE_RGB(r,g,b));
242367   }
243368}
244369
370static INTERRUPT_GEN( mirax_vblank_irq )
371{
372   if(nmi_mask)
373      cpu_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE);
374}
375
245376static MACHINE_DRIVER_START( mirax )
246   MDRV_CPU_ADD("maincpu", Z80, 12000000) // ceramic potted module, encrypted z80
377   MDRV_CPU_ADD("maincpu", Z80, 12000000/2) // ceramic potted module, encrypted z80
247378   MDRV_CPU_PROGRAM_MAP(mirax_main_map)
248   MDRV_CPU_IO_MAP(mirax_io_map)
249   //MDRV_CPU_VBLANK_INT("screen",nmi_line_pulse)
379   MDRV_CPU_VBLANK_INT("screen",mirax_vblank_irq)
250380
251   MDRV_CPU_ADD("audiocpu", Z80, 12000000) // audio cpu ?
381   MDRV_CPU_ADD("audiocpu", Z80, 12000000/2) // audio cpu ?
252382   MDRV_CPU_PROGRAM_MAP(mirax_sound_map)
253   MDRV_CPU_IO_MAP(mirax_sound_io_map)
254383   MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold, 2)
255384
256385   /* video hardware */
r4962r4963
259388   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
260389   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
261390   MDRV_SCREEN_SIZE(256, 256)
262   MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
391   MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
263392
264393   MDRV_PALETTE_LENGTH(0x40)
265394   MDRV_PALETTE_INIT(mirax)
r4962r4963
274403   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
275404   MDRV_SOUND_ADD("ay2", AY8910, 12000000/6 /* guess */)
276405   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
277
278406MACHINE_DRIVER_END
279407
408
280409ROM_START( mirax )
281   ROM_REGION( 0xc000, "maincpu", 0 ) // encrypted code
410   ROM_REGION( 0xc000, "maincpu", ROMREGION_ERASE00 ) // put decrypted code there
411
412   ROM_REGION( 0xc000, "data_code", 0 ) // encrypted code for the main cpu
282413   ROM_LOAD( "mxp5-42.rom",   0x0000, 0x4000, CRC(716410a0) SHA1(55171376e1e164b1d5e728789da6e04a3a33c172) )
283414   ROM_LOAD( "mxr5-4v.rom",   0x4000, 0x4000, CRC(c9484fc3) SHA1(101c5e4b9d49d2424ad80970eb3bdb87949a9966) )
284415   ROM_LOAD( "mxs5-4v.rom",   0x8000, 0x4000, CRC(e0085f91) SHA1(cf143b94048e1ebb5c899b94b500e193dfd42e18) )
r4962r4963
291422   ROM_LOAD( "mxh3-4v.rom",   0x4000, 0x4000, CRC(58221502) SHA1(daf5c508939b44616ca76308fc33f94d364ed587) )
292423   ROM_LOAD( "mxk3-4v.rom",   0x8000, 0x4000, CRC(6dbc2961) SHA1(5880c28f1ef704fee2d625a42682c7d65613acc8) )
293424
294   ROM_REGION( 0xc000, "gfx2", ROMREGION_DISPOSE )
295   ROM_LOAD( "mxe2-4v.rom",   0x0000, 0x4000, CRC(2cf5d8b7) SHA1(f66bce4d413a48f6ae07974870dc0f31eefa68e9) )
296   ROM_LOAD( "mxf2-4v.rom",   0x4000, 0x4000, CRC(1f42c7fa) SHA1(33e56c6ddf7676a12f57de87ec740c6b6eb1cc8c) )
297   ROM_LOAD( "mxh2-4v.rom",   0x8000, 0x4000, CRC(cbaff4c6) SHA1(2dc4a1f51b28e98be0cfb5ab7576047c748b6728) )
425   ROM_REGION( 0x18000, "gfx2", ROMREGION_DISPOSE )
426   ROM_LOAD( "mxe2-4v.rom",   0x04000, 0x4000, CRC(2cf5d8b7) SHA1(f66bce4d413a48f6ae07974870dc0f31eefa68e9) )
427   ROM_LOAD( "mxf2-4v.rom",   0x0c000, 0x4000, CRC(1f42c7fa) SHA1(33e56c6ddf7676a12f57de87ec740c6b6eb1cc8c) )
428   ROM_LOAD( "mxh2-4v.rom",   0x14000, 0x4000, CRC(cbaff4c6) SHA1(2dc4a1f51b28e98be0cfb5ab7576047c748b6728) )
429   ROM_LOAD( "mxf3-4v.rom",   0x00000, 0x4000, CRC(14b1ca85) SHA1(775a4c81a81b78490d45095af31e24c16886f0a2) )
430   ROM_LOAD( "mxi3-4v.rom",   0x08000, 0x4000, CRC(20fb2099) SHA1(da6bbd5d2218ba49b8ef98e7affdcab912f84ade) )
431   ROM_LOAD( "mxl3-4v.rom",   0x10000, 0x4000, CRC(918487aa) SHA1(47ba6914722a253f65c733b5edff4d15e73ea6c2) )
298432
299   ROM_REGION( 0xc000, "gfx3", ROMREGION_DISPOSE )
300   ROM_LOAD( "mxf3-4v.rom",   0x0000, 0x4000, CRC(14b1ca85) SHA1(775a4c81a81b78490d45095af31e24c16886f0a2) )
301   ROM_LOAD( "mxi3-4v.rom",   0x4000, 0x4000, CRC(20fb2099) SHA1(da6bbd5d2218ba49b8ef98e7affdcab912f84ade) )
302   ROM_LOAD( "mxl3-4v.rom",   0x8000, 0x4000, CRC(918487aa) SHA1(47ba6914722a253f65c733b5edff4d15e73ea6c2) )
303
304433   ROM_REGION( 0x0060, "proms", 0 ) // data ? encrypted roms for cpu1 ?
305434   ROM_LOAD( "mra3.prm",   0x0000, 0x0020, CRC(ae7e1a63) SHA1(f5596db77c1e352ef7845465db3e54e19cd5df9e) )
306435   ROM_LOAD( "mrb3.prm",   0x0020, 0x0020, CRC(e3f3d0f5) SHA1(182b06c9db5bec1e3030f705247763bd2380ba83) )
r4962r4963
310439
311440static DRIVER_INIT( mirax )
312441{
442   UINT8 *DATA = memory_region(machine, "data_code");
313443   UINT8 *ROM = memory_region(machine, "maincpu");
314444   int i;
315445
316   for(i=0;i<0xc000;i++)
317      ROM[i] = BITSWAP8(ROM[i], 1, 3, 7, 0, 5, 6, 4, 2) ^ 0xff;
446   for(i=0x0000;i<0x4000;i++)
447      ROM[BITSWAP16(i, 15,14,13,12,11,10,9, 5,7,6,8, 4,3,2,1,0)] = (BITSWAP8(DATA[i], 1, 3, 7, 0, 5, 6, 4, 2) ^ 0xff);
448
449   for(i=0x4000;i<0x8000;i++)
450      ROM[BITSWAP16(i, 15,14,13,12,11,10,9, 5,7,6,8, 4,3,2,1,0)] = (BITSWAP8(DATA[i], 2, 1, 0, 6, 7, 5, 3, 4) ^ 0xff);
451
452   for(i=0x8000;i<0xc000;i++)
453      ROM[BITSWAP16(i, 15,14,13,12,11,10,9, 5,7,6,8, 4,3,2,1,0)] = (BITSWAP8(DATA[i], 1, 3, 7, 0, 5, 6, 4, 2) ^ 0xff);
454
318455}
319456
320GAME( 1985, mirax,  0,      mirax, mirax, mirax, ROT90, "Current Technologies", "Mirax", GAME_NOT_WORKING)
457GAME( 1985, mirax,  0,      mirax, mirax, mirax, ROT90, "Current Technologies", "Mirax", GAME_IMPERFECT_SOUND )
src/mame/drivers/triforce.c
r4962r4963
707707GAME( 2004, vs4,      triforce, triforcegd,    triforce,    0, ROT0, "Sega",           "Virtua Striker 4 (Export) (GDT-0015)", GAME_NO_SOUND|GAME_NOT_WORKING )
708708GAME( 2004, avalon20, triforce, triforcegd,    triforce,    0, ROT0, "Sega",           "The Key Of Avalon 2.0 - Eutaxy and Commandment - Client (GDT-0017B) (V3.001)", GAME_NO_SOUND|GAME_NOT_WORKING )
709709GAME( 2006, vs42006,  triforce, triforcegd,    triforce,    0, ROT0, "Sega",           "Virtua Striker 4 ver. 2006 (Rev D) (Japan) (GDT-0020D)", GAME_NO_SOUND|GAME_NOT_WORKING )
710
711
src/mame/drivers/segas16b.c
r4962r4963
32703270   MDRV_IMPORT_FROM(system16b)
32713271
32723272   /* basic machine hardware */
3273   MDRV_CPU_REMOVE("soundcpu")
3273   MDRV_DEVICE_REMOVE("soundcpu")
32743274   MDRV_MACHINE_RESET(atomicp)
32753275
32763276   /* sound hardware */
32773277   MDRV_SOUND_REPLACE("ym", YM2413, 5000000) /* 20MHz OSC divided by 4 */
32783278   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
32793279
3280   MDRV_SOUND_REMOVE("upd")
3280   MDRV_DEVICE_REMOVE("upd")
32813281MACHINE_DRIVER_END
32823282
32833283
src/mame/drivers/ninjaw.c
r4962r4963
392392static int ninjaw_pandata[4];
393393static WRITE8_HANDLER( ninjaw_pancontrol )
394394{
395   static const char *fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
395   static const char *const fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
396396   offset = offset&3;
397397   ninjaw_pandata[offset] = (float)data * (100.f / 255.0f);
398398   //popmessage(" pan %02x %02x %02x %02x", ninjaw_pandata[0], ninjaw_pandata[1], ninjaw_pandata[2], ninjaw_pandata[3] );
src/mame/drivers/arkanoid.c
r4962r4963
802802   MDRV_CPU_MODIFY("maincpu")
803803   MDRV_CPU_PROGRAM_MAP(bootleg_map)
804804
805   MDRV_CPU_REMOVE("mcu")
805   MDRV_DEVICE_REMOVE("mcu")
806806MACHINE_DRIVER_END
807807
808808
src/mame/drivers/pacman.c
r4962r4963
33353335   /* basic machine hardware */
33363336   MDRV_IMPORT_FROM(pacman)
33373337
3338   MDRV_CPU_REMOVE("maincpu")
3338   MDRV_DEVICE_REMOVE("maincpu")
33393339   MDRV_CPU_ADD("maincpu", S2650, MASTER_CLOCK/6/2)   /* 2H */
33403340   MDRV_CPU_PROGRAM_MAP(s2650games_map)
33413341   MDRV_CPU_VBLANK_INT("screen", s2650_interrupt)
src/mame/drivers/williams.c
r4962r4963
16761676
16771677   /* basic machine hardware */
16781678   MDRV_IMPORT_FROM(williams2)
1679   MDRV_SPEAKER_REMOVE("mono")
1679   MDRV_DEVICE_REMOVE("mono")
16801680   MDRV_IMPORT_FROM(williams_cvsd_sound)
16811681
16821682   MDRV_MACHINE_START(joust2)
src/mame/drivers/royalmah.c
r4962r4963
33843384   ROM_LOAD( "82s123.prm", 0x00, 0x20, CRC(d3007282) SHA1(e4d863ab193e49208ed0f59dcddb1da0492314f6) )
33853385ROM_END
33863386
3387ROM_START( janputer )
3388   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
3389    ROM_LOAD( "1.bin",   0x0000, 0x2000, CRC(f36f4222) SHA1(ce18c273a59f86cb17ea6ba8a3daefc3d750df1e) )
3390    ROM_LOAD( "2.bin",   0x2000, 0x2000, CRC(7d57cb48) SHA1(38b97c5d02e3ab6187e5e0f86c06b8a3747b51a8) )
3391    ROM_LOAD( "3.bin",   0x4000, 0x2000, CRC(fb481d9a) SHA1(122e2b0d11fe1fe8cf219da9c8f96fe5a1016bb6) )
3392    ROM_LOAD( "7.bin",   0x6000, 0x1000, NO_DUMP ) // reads from here for the gfx data.
3393
3394    ROM_REGION( 0x20, "proms", 0 )
3395    /* taken from Royal Mahjong, might or might not be the same. */
3396    ROM_LOAD( "82s123.prm", 0x00, 0x20, BAD_DUMP CRC(d3007282) SHA1(e4d863ab193e49208ed0f59dcddb1da0492314f6) )
3397ROM_END
3398
33873399/***************************************************************************
33883400Janyou Part II
33893401(c)1984 Cosmo Denshi
r4962r4963
46114623GAME( 1981?, openmj,   royalmj,  royalmah, royalmah, 0,        ROT0,   "Sapporo Mechanic",           "Open Mahjong [BET] (Japan)",            0 )
46124624GAME( 1982,  royalmah, royalmj,  royalmah, royalmah, 0,        ROT0,   "bootleg",                    "Royal Mahjong (Falcon bootleg, v1.01)", 0 )
46134625GAME( 1983,  janyoup2, royalmj,  ippatsu,  janyoup2, 0,        ROT0,   "Cosmo Denshi",               "Janyou Part II (ver 7.03, July 1 1983)",0 )
4626GAME( 1981,  janputer, 0,        royalmah, royalmah, 0,        ROT0,   "Taito Corporation",          "Janputer (Japan)",                      GAME_NOT_WORKING )
46144627GAME( 1984,  janoh,    0,        royalmah, royalmah, 0,        ROT0,   "Toaplan",                    "Jan Oh (set 1)",                        GAME_NOT_WORKING )
46154628GAME( 1984,  janoha,   janoh,    janoh,    royalmah, 0,        ROT0,   "Toaplan",                    "Jan Oh (set 2)",                        GAME_NOT_WORKING ) // this one is complete?
46164629GAME( 1985,  jansou,   0,        jansou,   jansou,   0,        ROT180, "Dyna",                       "Jansou (set 1)",                        GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/m10.c
r4962r4963
10401040ROM_END
10411041
10421042GAME( 1979, andromed, 0, m11,     skychut,  andromed, ROT270, "Irem", "Andromeda (Japan?)", GAME_NO_COCKTAIL | GAME_NO_SOUND | GAME_IMPERFECT_COLORS | GAME_NOT_WORKING )
1043GAME( 1979?,ipminvad, 0, m10,     ipminvad, 0,        ROT270, "Irem", "I P M Invader", GAME_NO_COCKTAIL | GAME_IMPERFECT_COLORS )
1044GAME( ????, ipminva1, 0, m10,     ipminvad, ipminva1, ROT270, "Irem", "I P M Invader (Incomplete Dump)", GAME_NOT_WORKING )
1043GAME( 1979, ipminvad, 0, m10,     ipminvad, 0,        ROT270, "Irem", "I P M Invader", GAME_NO_COCKTAIL | GAME_IMPERFECT_COLORS )
1044GAME( 1979, ipminva1, 0, m10,     ipminvad, ipminva1, ROT270, "Irem", "I P M Invader (Incomplete Dump)", GAME_NOT_WORKING )
10451045GAME( 1980, skychut,  0, m11,     skychut,  0,        ROT270, "Irem", "Sky Chuter", GAME_NO_COCKTAIL | GAME_NO_SOUND | GAME_IMPERFECT_COLORS )
10461046GAME( 1979, spacbeam, 0, m15,     spacbeam, 0,        ROT270, "Irem", "Space Beam", GAME_NO_COCKTAIL | GAME_NO_SOUND | GAME_IMPERFECT_COLORS )
1047GAME( 1979?,headoni,  0, headoni, headoni,  0,        ROT270, "Irem", "Head On (Irem, M-15 Hardware)", GAME_NO_COCKTAIL | GAME_NO_SOUND | GAME_IMPERFECT_COLORS )
1047GAME( 1979, headoni,  0, headoni, headoni,  0,        ROT270, "Irem", "Head On (Irem, M-15 Hardware)", GAME_NO_COCKTAIL | GAME_NO_SOUND | GAME_IMPERFECT_COLORS )
10481048GAME( 1980, greenber, 0, m15,     spacbeam, 0,        ROT270, "Irem", "Green Beret (Irem)", GAME_NO_COCKTAIL | GAME_NO_SOUND | GAME_IMPERFECT_COLORS | GAME_NOT_WORKING )
src/osd/winui/treeview.h
r4962r4963
7373void CreateManufacturerFolders(int parent_index);
7474void CreateYearFolders(int parent_index);
7575void CreateSourceFolders(int parent_index);
76void CreateScreenFolders(int parent_index);
7677void CreateCPUFolders(int parent_index);
7778void CreateSoundFolders(int parent_index);
7879void CreateOrientationFolders(int parent_index);
r4962r4963
115116   FOLDER_BIOS,
116117   FOLDER_HORIZONTAL,
117118   FOLDER_VERTICAL,
119   FOLDER_SCREENS,
118120#ifdef MESS
119121   FOLDER_CONSOLE,
120122   FOLDER_COMPUTER,
src/osd/winui/resource.h
r4962r4963
445445#define ID_FOLDER_VECTORPROPERTIES      40097
446446#define ID_ARRANGE_ICONS                40098
447447#define ID_OPTIONS_CHEAT                40099
448#define ID_OPTIONS_MAMEINFO             40101
449#define ID_OPTIONS_HISTORY              40102
448#define ID_OPTIONS_MAMEINFO             40100
449#define ID_OPTIONS_HISTORY              40101
450450#define IDC_STATIC                      -1
451451
452452// Next default values for new objects
r4962r4963
456456#define _APS_NO_MFC                     1
457457#define _APS_3D_CONTROLS                     1
458458#define _APS_NEXT_RESOURCE_VALUE        189
459#define _APS_NEXT_COMMAND_VALUE         40103
459#define _APS_NEXT_COMMAND_VALUE         40102
460460#define _APS_NEXT_CONTROL_VALUE         1254
461461#define _APS_NEXT_SYMED_VALUE           93
462462#endif
src/osd/winui/mameui.rc
r4962r4963
2424#undef APSTUDIO_READONLY_SYMBOLS
2525
2626/////////////////////////////////////////////////////////////////////////////
27// English (U.S.) resources
27// Englisch (USA) resources
2828
2929#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
3030#ifdef _WIN32
r4962r4963
409409END
410410
411411IDD_AUDIT DIALOG  0, 0, 283, 188
412STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
412STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
413413CAPTION "File Audit"
414414FONT 8, "MS Shell Dlg"
415415BEGIN
r4962r4963
418418    GROUPBOX        "ROMs",IDC_STATIC,6,4,132,65
419419    LTEXT           "Correct:",IDC_STATIC,51,28,32,8
420420    CONTROL         "Progress1",IDC_ROMS_PROGRESS,"msctls_progress32",
421                    WS_BORDER | 0x1,14,16,116,8
421                    PBS_SMOOTH | WS_BORDER,14,16,116,8
422422    LTEXT           "Incorrect:",IDC_STATIC,51,42,32,8
423423    LTEXT           "Total:",IDC_STATIC,51,56,32,8
424424    LTEXT           "0",IDC_ROMS_CORRECT,87,28,20,8
r4962r4963
426426    LTEXT           "0",IDC_ROMS_TOTAL,87,56,20,8
427427    GROUPBOX        "Samples",IDC_STATIC,145,4,132,65
428428    CONTROL         "Progress1",IDC_SAMPLES_PROGRESS,"msctls_progress32",
429                    WS_BORDER | 0x1,153,16,116,8
429                    PBS_SMOOTH | WS_BORDER,153,16,116,8
430430    LTEXT           "Correct:",IDC_STATIC,191,28,33,8
431431    LTEXT           "Incorrect:",IDC_STATIC,191,42,33,8
432432    LTEXT           "Total:",IDC_STATIC,191,56,33,8
r4962r4963
440440END
441441
442442IDD_DIRECTORIES DIALOG  0, 0, 230, 107
443STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
443STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
444444CAPTION "Directories"
445445FONT 8, "MS Shell Dlg"
446446BEGIN
r4962r4963
460460END
461461
462462IDD_COLUMNS DIALOG  0, 0, 302, 145
463STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
463STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
464464CAPTION "Customize Fields"
465465FONT 8, "MS Shell Dlg"
466466BEGIN
r4962r4963
483483END
484484
485485IDD_PROP_CONTROLLER DIALOGEX 0, 0, 220, 240
486STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
486STYLE DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
487487CAPTION "Controller Mapping"
488488FONT 8, "MS Shell Dlg", 0, 0, 0x1
489489BEGIN
r4962r4963
520520END
521521
522522IDD_PROP_SCREEN DIALOGEX 0, 0, 220, 240
523STYLE DS_SETFONT | WS_CHILD | WS_CAPTION
523STYLE WS_CHILD | WS_CAPTION
524524CAPTION "Screen"
525525FONT 8, "MS Shell Dlg", 0, 0, 0x1
526526BEGIN
r4962r4963
567567                    0,0,HIDC_USE_DEFAULT
568568END
569569
570IDD_PROP_GAME DIALOG  0, 0, 220, 240
571STYLE DS_SETFONT | WS_CHILD | WS_CAPTION
570IDD_PROP_GAME DIALOG  0, 0, 220, 276
571STYLE WS_CHILD | WS_CAPTION
572572CAPTION "General"
573573FONT 8, "MS Shell Dlg"
574574BEGIN
575    ICON            IDI_MAMEUI_ICON,IDC_GAME_ICON,20,10,20,20
575    ICON            IDI_MAMEUI_ICON,IDC_GAME_ICON,20,10,21,20
576576    LTEXT           "Title\nDirectory\nExtra",IDC_PROP_TITLE,52,9,161,25,
577577                    SS_NOPREFIX
578578    CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDHORZ,20,38,178,1
r4962r4963
590590                    75,135,139,45
591591    CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDHORZ,18,181,178,1
592592    LTEXT           "Screen:",IDC_STATIC,18,188,47,8
593    LTEXT           "Static",IDC_PROP_SCREEN,75,188,139,8
594    LTEXT           "Colors:",IDC_STATIC,18,198,47,8
595    LTEXT           "Static",IDC_PROP_COLORS,75,198,139,8
596    LTEXT           "Clone of:",IDC_PROP_CLONEOF_TEXT,18,218,50,8
597    LTEXT           "Static",IDC_PROP_CLONEOF,75,218,130,18
598    LTEXT           "Source:",IDC_STATIC,18,208,47,8
599    LTEXT           "Static",IDC_PROP_SOURCE,75,208,139,8
593    LTEXT           "Static\nStatic\nStatic",IDC_PROP_SCREEN,75,188,139,27
594    LTEXT           "Colors:",IDC_STATIC,16,228,47,8
595    LTEXT           "Static",IDC_PROP_COLORS,73,228,139,8
596    LTEXT           "Clone of:",IDC_PROP_CLONEOF_TEXT,16,249,50,8
597    LTEXT           "Static",IDC_PROP_CLONEOF,74,249,130,11
598    LTEXT           "Source:",IDC_STATIC,16,238,47,8
599    LTEXT           "Static",IDC_PROP_SOURCE,73,238,139,8
600    CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDHORZ,19,218,177,1
600601END
601602
602603IDD_PROP_AUDIT DIALOG  0, 0, 220, 240
603STYLE DS_SETFONT | WS_CHILD | WS_CAPTION
604STYLE WS_CHILD | WS_CAPTION
604605CAPTION "Audit"
605606FONT 8, "MS Shell Dlg"
606607BEGIN
r4962r4963
618619END
619620
620621IDD_PROP_DISPLAY DIALOGEX 0, 0, 220, 240
621STYLE DS_SETFONT | WS_CHILD | WS_CAPTION
622STYLE WS_CHILD | WS_CAPTION
622623CAPTION "Display"
623624FONT 8, "MS Shell Dlg", 0, 0, 0x1
624625BEGIN
r4962r4963
687688END
688689
689690IDD_PROP_SOUND DIALOGEX 0, 0, 220, 240
690STYLE DS_SETFONT | WS_CHILD | WS_CAPTION
691STYLE WS_CHILD | WS_CAPTION
691692CAPTION "Sound"
692693FONT 8, "MS Shell Dlg", 0, 0, 0x1
693694BEGIN
r4962r4963
719720END
720721
721722IDD_PROP_ADVANCED DIALOGEX 0, 0, 220, 255
722STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
723STYLE DS_FIXEDSYS | WS_CHILD | WS_CAPTION
723724CAPTION "Advanced"
724725FONT 8, "MS Shell Dlg", 0, 0, 0x1
725726BEGIN
r4962r4963
783784END
784785
785786IDD_PROP_DEBUG DIALOGEX 0, 0, 220, 255
786STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
787STYLE DS_FIXEDSYS | WS_CHILD | WS_CAPTION
787788CAPTION "Debug"
788789FONT 8, "MS Shell Dlg", 0, 0, 0x1
789790BEGIN
r4962r4963
814815END
815816
816817IDD_PROP_INPUT DIALOGEX 0, 0, 220, 240
817STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
818STYLE DS_FIXEDSYS | WS_CHILD | WS_CAPTION
818819CAPTION "Controllers"
819820FONT 8, "MS Shell Dlg", 0, 0, 0x1
820821BEGIN
r4962r4963
871872END
872873
873874IDD_PROP_MISC DIALOGEX 0, 0, 220, 240
874STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
875STYLE DS_FIXEDSYS | WS_CHILD | WS_CAPTION
875876CAPTION "Miscellaneous"
876877FONT 8, "MS Shell Dlg", 0, 0, 0x1
877878BEGIN
r4962r4963
952953END
953954
954955IDD_PROP_VECTOR DIALOGEX 0, 0, 220, 240
955STYLE DS_SETFONT | WS_CHILD | WS_CAPTION
956STYLE WS_CHILD | WS_CAPTION
956957CAPTION "Vector"
957958FONT 8, "MS Shell Dlg", 0, 0, 0x1
958959BEGIN
r4962r4963
981982#else
982983IDD_MAIN DIALOGEX 0, 0, 304, 206
983984#endif
984STYLE DS_SETFONT | DS_3DLOOK | DS_NOFAILCREATE | WS_MINIMIZEBOX |
985    WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
985STYLE DS_3DLOOK | DS_NOFAILCREATE | WS_MINIMIZEBOX | WS_MAXIMIZEBOX |
986    WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
986987EXSTYLE WS_EX_CONTROLPARENT
987988CAPTION "MAMEUI - overwritten at runtime"
988989CLASS "MainClass"
r4962r4963
10961097END
10971098
10981099IDD_RESET DIALOGEX 0, 0, 190, 122
1099STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION |
1100    WS_SYSMENU
1100STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION | WS_SYSMENU
11011101EXSTYLE WS_EX_CONTEXTHELP
11021102CAPTION "Reset Options"
11031103FONT 8, "MS Shell Dlg", 0, 0, 0x1
r4962r4963
11271127END
11281128
11291129IDD_LOAD_PROGRESS DIALOGEX 0, 0, 260, 187
1130STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION |
1131    WS_SYSMENU
1130STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
11321131EXSTYLE WS_EX_CONTROLPARENT
11331132FONT 8, "MS Shell Dlg", 0, 0, 0x1
11341133BEGIN
11351134    CONTROL         "Progress1",IDC_LOAD_PROGRESS,"msctls_progress32",
1136                    WS_BORDER | 0x1,6,7,248,12
1135                    PBS_SMOOTH | WS_BORDER,6,7,248,12
11371136    CTEXT           "",IDC_LOAD_ROMNAME,6,21,248,10,SS_CENTERIMAGE | NOT
11381137                    WS_GROUP
11391138    EDITTEXT        IDC_LOAD_STATUS,6,32,248,116,ES_MULTILINE | ES_READONLY |
r4962r4963
11451144END
11461145
11471146IDD_INTERFACE_OPTIONS DIALOGEX 0, 0, 378, 225
1148STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION |
1149    WS_SYSMENU
1147STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION | WS_SYSMENU
11501148EXSTYLE WS_EX_CONTEXTHELP
11511149CAPTION "Interface Options"
11521150FONT 8, "MS Shell Dlg", 0, 0, 0x1
r4962r4963
12161214END
12171215
12181216IDD_LANGUAGE DIALOGEX 0, 0, 190, 66
1219STYLE DS_SETFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION |
1220    WS_SYSMENU
1217STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
12211218EXSTYLE WS_EX_CONTEXTHELP
12221219CAPTION "Language"
12231220FONT 8, "MS Shell Dlg", 0, 0, 0x1
r4962r4963
12341231END
12351232
12361233IDD_CUSTOM_FILE DIALOG  0, 0, 190, 135
1237STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
1234STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
12381235CAPTION "Add Game To Custom Folder"
12391236FONT 8, "MS Shell Dlg"
12401237BEGIN
r4962r4963
12541251// Accelerator
12551252//
12561253
1257IDA_TAB_KEYS ACCELERATORS
1254IDA_TAB_KEYS ACCELERATORS MOVEABLE PURE
12581255BEGIN
12591256    "1",            ID_VIEW_TAB_SCREENSHOT, VIRTKEY, ALT, NOINVERT
12601257    "2",            ID_VIEW_TAB_FLYER,      VIRTKEY, ALT, NOINVERT
r4962r4963
12891286//
12901287
12911288#ifdef APSTUDIO_INVOKED
1292GUIDELINES DESIGNINFO
1289GUIDELINES DESIGNINFO MOVEABLE PURE
12931290BEGIN
12941291    IDD_ABOUT, DIALOG
12951292    BEGIN
r4962r4963
13551352        VERTGUIDE, 66
13561353        VERTGUIDE, 74
13571354        VERTGUIDE, 201
1358        BOTTOMMARGIN, 232
1355        BOTTOMMARGIN, 268
13591356    END
13601357
13611358    IDD_PROP_AUDIT, DIALOG
r4962r4963
16671664    ID_FOLDER_VECTORPROPERTIES "Display properties for all vector based games"
16681665END
16691666
1670#endif    // English (U.S.) resources
1667#endif    // Englisch (USA) resources
16711668/////////////////////////////////////////////////////////////////////////////
16721669
16731670
src/osd/winui/mui_opts.c
r4962r4963
289289
290290   { NULL,                           NULL,       OPTION_HEADER,     "INTERFACE OPTIONS" },
291291   { MUIOPTION_LANGUAGE,               "english",  0,                 NULL },
292   { MUIOPTION_CHECK_GAME,               "1",        OPTION_BOOLEAN,    NULL },
292   { MUIOPTION_CHECK_GAME,               "0",        OPTION_BOOLEAN,    NULL },
293293   { MUIOPTION_JOYSTICK_IN_INTERFACE,      "1",        OPTION_BOOLEAN,    NULL },
294294   { MUIOPTION_KEYBOARD_IN_INTERFACE,      "0",        OPTION_BOOLEAN,    NULL },
295295   { MUIOPTION_RANDOM_BACKGROUND,         "0",        OPTION_BOOLEAN,    NULL },
r4962r4963
13881388   options_set_string(global, OPTION_FONTPATH, paths, OPTION_PRIORITY_CMDLINE);
13891389}
13901390
1391const char* GetCrosshairDir(void)
1392{
1393   return options_get_string(global, OPTION_CRSSHAIRPATH);
1394}
1395
1396void SetCrosshairDir(const char* paths)
1397{
1398   options_set_string(global, OPTION_CRSSHAIRPATH, paths, OPTION_PRIORITY_CMDLINE);
1399}
1400
13911401const char* GetFlyerDir(void)
13921402{
13931403   return options_get_string(settings, MUIOPTION_FLYER_DIRECTORY);
r4962r4963
15621572
15631573   /* finally vector.ini */
15641574   save_options(OPTIONS_VECTOR, NULL, 0);
1575   /* finally horizont.ini */
1576   save_options(OPTIONS_HORIZONTAL, NULL, 0);
1577   /* finally vertical.ini */
1578   save_options(OPTIONS_VERTICAL, NULL, 0);
15651579}
15661580
15671581static void GetDriverOptionName(int driver_index, const char *option_name, char *buffer, size_t buffer_len)
r4962r4963
27272741      {
27282742         ui_parse_ini_file(opts, "vector");
27292743      }
2730
2731      machine_config_free(config);
2732
27332744      if (opt_type == OPTIONS_VECTOR)
27342745      {
27352746         return opts;
27362747      }
2748      /* parse "horizont.ini" for horizontal games */
2749      if (!DriverIsVertical(game_num))
2750      {
2751         ui_parse_ini_file(opts, "horizont");
2752      }
2753      if (opt_type == OPTIONS_HORIZONTAL)
2754      {
2755         return opts;
2756      }
2757      /* parse "vertical.ini" for vertical games */
2758      if (DriverIsVertical(game_num))
2759      {
2760         ui_parse_ini_file(opts, "vertical");
2761      }
2762      if (opt_type == OPTIONS_VERTICAL)
2763      {
2764         return opts;
2765      }
2766      machine_config_free(config);
27372767
2768
27382769      /* then parse "<sourcefile>.ini" */
27392770      basename = core_filename_extract_base(astring_alloc(), driver->source_file, TRUE);
27402771      srcname = astring_assemble_3(astring_alloc(), "source", PATH_SEPARATOR, astring_c(basename));
r4962r4963
27732804
27742805/*
27752806 * Save ini file based on game_num and passed in opt_type.  If opts are
2776 * NULL, the ini wiil be removed.
2807 * NULL, the ini will be removed.
27772808 *
27782809 * game_num must be valid or the driver cannot be expanded and anything
27792810 * with a higher priority than OPTIONS_VECTOR will not be saved.
r4962r4963
27862817
27872818   if (OPTIONS_GLOBAL != opt_type && NULL != opts && !options_equal(opts, global))
27882819   {
2789      baseopts = load_options(opt_type - 1, game_num);
2820      if (OPTIONS_VERTICAL == opt_type) {
2821         //since VERTICAL and HORIZONTAL are equally ranked
2822         //we need to subtract 2 from vertical to also get to global
2823         baseopts = load_options(opt_type - 2, game_num);
2824      }
2825      else {
2826         baseopts = load_options(opt_type - 1, game_num);
2827      }
27902828   }
27912829
27922830   if (game_num >= 0)
r4962r4963
28042842   } else if (opt_type == OPTIONS_VECTOR)
28052843   {
28062844      filename = astring_cpyc(astring_alloc(), "vector");
2845   } else if (opt_type == OPTIONS_VERTICAL)
2846   {
2847      filename = astring_cpyc(astring_alloc(), "vertical");
2848   } else if (opt_type == OPTIONS_HORIZONTAL)
2849   {
2850      filename = astring_cpyc(astring_alloc(), "horizont");
28072851   } else if (driver != NULL)
28082852   {
28092853      astring *basename, *srcname;
src/osd/winui/mui_opts.h
r4962r4963
2727// Various levels of ini's we can edit.
2828typedef enum {
2929   OPTIONS_GLOBAL = 0,
30   OPTIONS_HORIZONTAL,
31   OPTIONS_VERTICAL,
3032   OPTIONS_VECTOR,
3133   OPTIONS_SOURCE,
3234   OPTIONS_PARENT,
r4962r4963
347349const char* GetFontDir(void);
348350void  SetFontDir(const char* paths);
349351
352const char* GetCrosshairDir(void);
353void  SetCrosshairDir(const char* paths);
354
350355const char* GetCheatDir(void);
351356void SetCheatDir(const char* path);
352357
src/osd/winui/help/html/mameui_changes.txt
r4962r4963
1 +|koroleva  "Snezhnaja Koroleva"
2 +|oscarj2   "Psycho-Nics Oscar (Japan revision 2)"
3 +|oscaru    "Psycho-Nics Oscar (US)"
4 c|oscar     "Psycho-Nics Oscar (US)"
5 C|oscar     "Psycho-Nics Oscar (World revision 0)"
6 c|oscarj    "Psycho-Nics Oscar (Japan revision 2)"
7 c|oscarj0   "Psycho-Nics Oscar (Japan revision 0)"
8 C|speedatk  "Speed Attack! (Japan)"
9 c|speedatk  "Speed Attack!"
1 -|bayrtbl1          "Bay Route (bootleg set 1)"
2 -|bayrtbl2          "Bay Route (bootleg set 2)"
3 -|boomrana          "Boomer Rang'r / Genesis (set 2)"
4 -|goldnab2          "Golden Axe (bootleg)"
5 -|goldnabl          "Golden Axe (bootleg, encrypted)"
6 -|liberatb          "Liberation (bootleg)"
7 +|alpinr2a          "Alpine Racer 2 (Rev. ARS2 Ver.A)"
8 +|aquajet           "Aqua Jet (Rev. AJ2 Ver.B)"
9 +|bayrouteb1        "Bay Route (encrypted, protected bootleg)"
10 +|bayrouteb2        "Bay Route (Datsu bootleg)"
11 +|bldyroar          "Bloody Roar (JAPAN)"
12 +|bmiidx4           "beatmania IIDX 4th style (GCA03 JA)"
13 +|bmiidx6           "beatmania IIDX 6th style (GCB4U JA)"
14 +|bmiidx7           "beatmania IIDX 7th style (GCB44 JA)"
15 +|bmiidx8           "beatmania IIDX 8th style (GCC44 JA)"
16 +|bmiidxc           "beatmania IIDX with DDR 2nd Club Version (896 JAB)"
17 +|bmiidxc2          "beatmania IIDX Substream 2 with DDR 2nd Club Version (984 A01 BM)"
18 +|bmiidxca          "beatmania IIDX with DDR 2nd Club Version (896 JAA)"
19 +|boomranga         "Boomer Rang'r / Genesis (set 2)"
20 +|cb3b              "Cherry Bonus III (alt)"
21 +|ehrgeizj          "Ehrgeiz (Japan, EG1/VER.A)"
22 +|enchfrst          "Enchanted Forest (E - 23/06/95, Local)"
23 +|ftimpactj         "Fighters' Impact (Ver 2.02J)"
24 +|goldnaxeb1        "Golden Axe (encrypted bootleg)"
25 +|goldnaxeb2        "Golden Axe (bootleg)"
26 +|goldprmd          "Golden Pyramids (B - 13-05-97, USA)"
27 +|gq863             "Twinkle System"
28 +|hiimpac4          "High Impact Football (rev LA4 02/04/91)"
29 +|intruder          "Intruder"
30 +|liberateb         "Liberation (bootleg)"
31 +|micrombc          "Microman Battle Charge (J 990326 V1.000)"
32 +|mustangb2         "US AAF Mustang (TAB Austria bootleg)"
33 +|prosporta         "Pro. Sports (alternate)"
34 +|qotn              "Queen of the Nile (B - 13-05-97, NSW/ACT)"
35 +|techbowl          "Technical Bowling (J 971212 V1.000)"
36 +|tokyowar          "Tokyo Wars (Rev. TW2 Ver.A)"
37 +|unkch1            "Super Cherry Master / New Cherry Gold '99 (set 1)"
38 +|unkch2            "Super Cherry Master / Super Cherry Gold"
39 +|unkch3            "Super Cherry Master / New Cherry Gold '99 (set 2)"
40 +|unkch4            "Super Cherry Master / Grand Cherry Master"
41 c|chaoshea          "Chaos Heat (V2.08J)"
42 C|chaoshea          "Chaos Heat (V2.09O)"
43 C|chaoshej          "Chaos Heat (V2.08J)"
44 c|forgott1          "Forgotten Worlds (World?)"
45 c|forgottn          "Forgotten Worlds (US)"
46 C|forgottn          "Forgotten Worlds (World)"
47 C|forgottu          "Forgotten Worlds (US)"
48 c|hiimpact          "High Impact Football (rev LA4 02/04/91)"
49 C|hiimpact          "High Impact Football (rev LA5 02/15/91)"
50 c|propcycl          "Prop Cycle (Rev PR2 Ver.A)"
51 C|propcycl          "Prop Cycle (Rev. PR2 Ver.A)"
52 c|scin              "Special Criminal Investigation (Negro Torino hack)"
53 C|scin              "Super Special Criminal Investigation (Negro Torino hack)"
54 c|sqix              "Super Qix (set 1)"
55 C|sqix              "Super Qix (World, Rev 2)"
56 c|sqixa             "Super Qix (set 2)"
57 C|sqixb1            "Super Qix (bootleg set 1)"
58 C|sqixb2            "Super Qix (bootleg set 2)"
59 c|sqixbl            "Super Qix (bootleg)"
60 C|sqixr1            "Super Qix (World, Rev 1)"
61 C|wc90b1            "Euro League (Italian hack of Tecmo World Cup '90)"
62 c|wc90b1            "Euro League"
63 C|wizdfire          "Wizard Fire (Over Sea v2.1)"
64 c|wizdfire          "Wizard Fire (US v1.1)"
65 C|wizdfiru          "Wizard Fire (US v1.1)"
66 c|yellowcb          "Yellow Cab (bootleg)"
67 C|yellowcbb         "Yellow Cab (bootleg)"
68 C|yellowcbj         "Yellow Cab (Japan)"
69 c|yellowcj          "Yellow Cab (Japan)"
src/osd/winui/help/docs/whatsnew.txt
r4962r4963
10.128u4
10.131u3
22-------
33
4IMPORTANT NOTICE: This update represents the first part of a
5monumental internal change within MAME in the way CPU cores are
6managed and how memory is addressed. There are two ways you can help
7get these changes sorted out.
84
91. Test the games you are familiar with, and some you are not. Report
10bugs at http://mametesters.org/mantis for anything out of the
11ordinary.
12
132. If you are up to coding, help us by submitting patches that remove
14the use of [Mm]achine->activecpu and/or cpunum_get_active(). You
15should be able to derive which CPU you are referencing through other
16means. To avoid duplication of effort, either send these quickly in
17small bunches, or better yet, send a message to the submission address
18announcing your intention to work on a certain class of drivers.
19
20
21
225MAMETesters Bugs Fixed
236----------------------
24- 02668: [DIP/Input] vendetta + clones: NVRAM being corrupted
25         (Mamesick)
26- 02656: [Crash/Freeze] elevator: Elevator Action freezes after coin
27         insert with "8" (David Haywood)
28- 02660: [Crash/Freeze] All sets in decocass.c: Games freeze when the
29         count reach 15, 14 or 13. (couriersud)
30- 02654: [Crash/Freeze] timecris, timecrsa: Unable to start game due
31         to improper initialization (robiza)
32- 02667: [Sound] bbmanwj: No sound since 0.123u2. (robiza)
33- 02655: [Misc.] Some games using MC6845: A message reading "Mode
34         Control 88 is not supported!!!" is displayed (couriersud)
35- 02092: [Graphics] spinlbrk and clones: Priorities issues (robiza)
36- 02641: [Graphics] strider and clones: Problem with graphics layer
37         (Nicola Salmoria)
38- 02196: [DIP/Input] scross: Five Player 2 buttons are mapped twice
39         (Luigi30)
7- 03101: [Sound] jantotsu: Game gives incorrect calls (Angelo Salese)
8- 03196: [DIP/Input] daisyari: Game resets itself after full strip of
9         girl (Tafoid)
10- 02329: [Graphics] iganinju, plusalph and others: Very bad sprite lag
11         (Angelo Salese)
12- 03190: [Documentation] 86lions: 'Wrong' colours seem fixed when you
13         swap R/B values (Angelo Salese)
14- 03149: [Crash/Freeze] All sets in cps3.c: Access Violation
15         (Aaron Giles)
16- 03187: [Documentation] scin: Game title is different as shown in
17         picture (Fabio Priuli)
18- 03176: [Graphics] cheekyms: Graphic Regression (Pierpaolo Prazzoli)
19- 03182: [Sound] Many sets in system1.c: Missing Sound (Aaron Giles)
20- 03178: [DIP/Input] dragngun: Unable to move Crosshair (Fabio Priuli)
4021
4122
4223
4324Source Changes
4425--------------
45UPI-41/42 (still I8x41.c) changes: [couriersud]
46 * cpu/i8x41 should be renamed to UPI-4x, since UPI-41/42 was an
47    intel chip family postponed for now until core moved to pointers.
48 * removed I8041 definition from mcs48
49 * removed I8x41 cpu definition and config struct
50 * added I8041, I8741, I8042, I8242 and I8742 cpus to i8x41.c
51 * added internal memory maps
52 * internal ram now uses DATA memory space
53 * updated drivers
54 * increased interleave to 70 in decocass. This fixes decocass hanging
55    in countdown around 13. No idea when this bug was introduced.
56 * converted i8x41 to use pointers for state access
57 * separated opcodes into i8x41ops.c
26Fixed Oki banking in Grand Cross. [Angelo Salese]
5827
59Populated tag and static_config parts of fake CPU device. Removed
60'config' parameter from CPU_INIT. Modified CPU cores to pull config
61from the device static_config. [Aaron Giles]
28Added basic ADPCM support to Grand Cross [Angelo Salese]
6229
63s14001a.c: added chip pinout and operation notes. [Lord Nightmare]
30Fixed title screen display in Joshi Volleyball [Angelo Salese]
6431
65Clean-ups in the ST-V driver and corrected protection number seeds
66for elandore. [Angelo Salese]
32Fixed sound mute for system 2 games. [Aaron Giles]
6733
68Video emulation fixes to the Ghost Eolith HW (not yet working).
69[Angelo Salese]
34The logic for detecting merged roms did not check all the rom sources
35in the parent, leading to cases where roms from devices aren't
36detected as merged (e.g. ldv1000 in superdqs). This fixes it.
37[Atari Ace]
7038
71i960 core switched to pointer state access. [couriersud]
39Added save state to artmagic.c and runaway.c. [Xander]
7240
73Major cpuintrf changes: [Aaron Giles]
74 * added a set of cpu_* calls which accept a CPU device object;
75    these are now the preferred means of manipulating a CPU
76 * removed the cpunum_* calls; added an array of cpu[] to the
77    running_machine object; converted all existing cpunum_* calls
78    to cpu_* calls, pulling the CPU device object from the new
79    array in the running_machine
80 * removed the activecpu_* calls; added an activecpu member to
81    the running_machine object; converted all existing activecpu_*
82    calls to cpu_* calls, pulling the active CPU device object
83    from the running_machine
84 * changed cpuintrf_push_context() to cpu_push_context(), taking
85    a CPU object pointer; changed cpuintrf_pop_context() to
86    cpu_pop_context(); eventually these will go away
87 * many other similar changes moving toward a model where all CPU
88    references are done by the CPU object and not by index
89 * added CPU device parameters to all CPU callbacks except for the
90    context ones (which are going away), and the validity check.
41Added newly-dumped PROMs to Robocop. [Irongiant]
9142
92Converted TMS340x0 cores to be pointer-based. [Aaron Giles]
43Added static qualifiers to recently-added code. [Atari Ace]
9344
94Fixed Dip Switches for 'lkage' and clones. Fixed bootlegs visible
95area to match original sets. [stephh]
45Added missing coin lockout to lottofun. [Luigi30]
9646
97Fixed Dip Switches for 'magmax'. [stephh]
47Improved lamp output in MPU4.c. Redrawing now only occurs on the peaks
48of the 50Hz AC Power. [AGEMAME]
9849
99Fixed Dip Switches for all games in mermaid.c driver. [stephh]
50Updated the megatech.c parts list with info from more carts and
51fixed some errors in the notes for the rom definitions, and arranged
52them in correct order. [Smitdogg]
10053
101peplus.c updates: [couriersud]
102 * changed the 6845 type to R6545_1 (Rockwell as mentioned in the
103    driver).
104 * use transparent addressing
105 * lightpen code now generates a "lightpen_assert" at the right screen
106    position.
107 * Completely hooked up 6545 without wrappers.
54Added LSHIFT and RSHIFT as alises to << and >> for cheat files.
55[Pugsy]
10856
109abc_step and abc_reset now declared as DISCRETE_STEP( abc ) and
110DISCRETE_RESET( abc ). [couriersud]
57Added Guru-readme(TM) for Triforce. [Guru]
11158
112Fixed Dip Switches for 'momoko'. [stephh]
59Added Guru-readme(TM) for Sega model3 and I/O board. [Guru]
11360
114Fixed Dip Switches for 'joyfulr' and clone. [stephh]
61Moved the configuration of m6502-family callbacks to the cpu
62configuration. [Wilbert Pol]
11563
116Fix state save in discrete sound: [couriersud]
117 * sndindex now considered as well in state save
118 * expose discrete_sound_n_r(void *chip, ...) to enable accessing
119    multiple discrete sound cores
64Split Naomi video ram access into 32-bit / 64-bit areas pending more
65information on how they actually mirror (it's not a straight mirror).
66[David Haywood]
12067
121Kaneko changes: [David Haywood, Andreas Naive]
122 * Added Simulation of Toybox external data rom decryption
123 * Converted Blood Warrior, Bonk's Adventure, Great 1000 Miles Rally
124    1+2 to use the new code.
125 * Updated suprnova rendering to allow 2 sprite chips.
126 * Started work on Jackie Chan & Gals Panic 3
68psattack CF card redump and ID metadata added to create a CHD. [Guru]
12769
128Massive API cleanup/change: [Aaron Giles]
70H8 series MCU updates: [R. Belmont]
71 - Implemented 8-bit timers and free-running counter for H8/3334
72 - Added bld #imm, @Rd instruction
73 - Improvements to interrupts and the serial ports
12974
130  The primary goal is that all CPU-related APIs now take a device
131  pointer instead of an index. All functions that take a CPU device
132  are prefixed with cpu_*. All functions that are globally related to
133  cpu execution are prefixed with cpuexec_*. Below is a list of some
134  of the mappings:
135 
136    cpu_boost_interleave     -> cpuexec_boost_interleave
137    cpunum_suspend           -> cpu_suspend
138    cpunum_resume            -> cpu_resume
139    cpunum_is_suspended      -> cpu_is_suspended
140    cpunum_get_clock         -> cpu_get_clock
141    cpunum_set_clock         -> cpu_set_clock
142    cpunum_get_clockscale    -> cpu_get_clockscale
143    cpunum_set_clockscale    -> cpu_set_clockscale
144    cpunum_get_localtime     -> cpu_get_local_time
145    cpunum_gettotalcycles    -> cpu_get_total_cycles
146    activecpu_eat_cycles     -> cpu_eat_cycles
147    activecpu_adjust_icount  -> cpu_adjust_icount
148    cpu_trigger              -> cpuexec_trigger
149    cpu_triggertime          -> cpuexec_triggertime
150    cpunum_set_input_line    -> cpu_set_input_line
151    cpunum_set_irq_callback  -> cpu_set_irq_callback
152 
153  In addition, a number of functions retain the same name but now
154  require a specific CPU parameter to be passed in:
155 
156    cpu_yield
157    cpu_spin
158    cpu_spinuntil_time
159    cpu_spinuntil_int
160    cpu_spinuntil_trigger
161    cpu_triggerint
162 
163  Merged cpuint.c into cpuexec.c. One side-effect of this change is
164  that driver reset callbacks are called AFTER the CPUs and devices
165  are reset. This means that if you make changes to the CPU state and
166  expect the reset vectors to recognize the changes in your reset
167  routine, you will need to manually reset the CPU after making the
168  change (since it has already been reset).
169 
170  Added a number of inline helper functions to cpuintrf.h for
171  managing addresses.
172 
173  Removed cpu_gettotalcpu(). This information is rarely needed
174  outside of the core and can be obtained by looking at the
175  machine->cpu[] array.
176 
177  Changed CPU interrupt acknowledge callbacks to pass a CPU
178  device instead of machine/cpunum pair.
75Namco System 23 update: [R. Belmont]
76 - Changes and documentation added on how the I/O board is hooked up.
77The H8/3334 based TSS-I/O board sometimes handshakes successfully in
78Time Crisis 2 now but timing-related problems remain.
17979
180  Changed VBLANK and periodic timer callbacks to pass a CPU
181  device instead of machine/cpunum pair.
182 
183  Renamed all information getters from cpu_* to cpu_get_* and
184  from cputype_* to cputype_get_*.
80Namco System Super 22 update: [R. Belmont]
81 - Reimplemented SPOT RAM - Tokyo Wars relied on some details not
82    previously seen
83 - Fixed uninitialized RAM area that caused random sprite colors
84    since 0.120 (thanks to Phil Bennett for debugging the problem)
85 - Updated Guru Readme(tm)
18586
186Defined macros for standard sound core functions and updated all sound
187cores to use them. [Atari Ace]
87Fixed Aliens P2 inputs. [stephh]
18888
189Replaced the Machine parameter where an running_machine * is
190available and removes the deprecat.h where unnecessary.
191[Atari Ace, Oliver Stoeneberg]
89Gladiator coinage fix. [Tafoid]
19290
193Cleaned up use of running_machine in the Windows debugger code.
194[Oliver Stoeneberg]
91Fixed regressed sound in wc90b.c. Also fixed nested NMIs, improving
92msm sound, and converted memory maps to current standards.
93[Angelo Salese]
19594
196Fixed Dip Switches and Inputs for 'jchan' and clone. [stephh]
95Corrected the 202 entry in the LFO Frequency Table (and comments for
96it) for the YMF271 based on a formula by Olivier Galibert.
97[Brian Troha, Roman Scherzer]
19798
198Documented the CPS2 Phoenix sets, and what happens to a dead CPS2
199board. [MAMEPlus]
99Added PCB rom locations to Dog Fight (Thunderbolt) romdef as well as
100the bprom type. [Brian Troha]
200101
201Pointer-ified the 6800, 6809 and hd6309 cpu cores: [couriersud]
202 * temporarily named the state var m68_state in the 68xx cores
203 * reorganized some code for simpler comparison of 68xx cores
102Fixed ROM filename for Battle Zone. [Andrew Welburn]
204103
205Pre-irq rewrite submission in ST-V driver: [Angelo Salese]
206 * Better management of hblank/vblank bits;
207 * Makes dynamic resolutions to be called with a timer instead of
208    run-time;
209 * Makes dynamic resolutions to not be changed at every frame but
210    only when there's an actual change;
211 * Fixed Final Arch broken Test Mode;
212 * Demoted Super Major League / Final Arch as GAME_NOT_WORKING, they
213    hangs randomly due of SH-2 master/slave communication RAM issues
214 * Removed GAME_NOT_WORKING flag to Fighting Dragoon Legend Elan
215    Doree, because protection affects only in-game graphics and not
216    gameplay
217 * Removed all the read/write handler speed-up hacks, they aren't
218    needed anymore and they were doing more damage than being useful.
219This fixes Golden Axe: the Duel gameplay speed at the cost of breaking
220up Groove on Fight coin counter at start-up.
104Added basic MSM support for Super Crowns Golf, and fixed NMI
105generation. Also found & hooked up the flip screen bit, and cleaned
106up the memory maps. [Angelo Salese]
221107
222Major memory system change: [Aaron Giles, couriersud, smf, R. Belmont]
223
224  Changed READ/WRITE handlers to accept an address_space * instead of
225  a machine *. The address_space object was enhanced to contain a
226  machine and a pointer to the relevant CPU object.
227 
228  Added new function cpu_get_address_space() to fetch the address
229  space for calling in manually to these functions. In some instances,
230  code which should eventually be converted to a device is hard-coding
231  fetching the program space of CPU #0 in order to have something
232  valid to pass.
233
234Converted cultures driver to have separated color tables for each
235plane. [Angelo Salese]
236
237Significantly pared down the 68k core. Merged outer MAME shell into
238the core proper and removed unused macros. Changed all external
239interfaces to pass the CPU device. Enabled 64-bit operations by
240default. Re-derived the interface functions to cascade and share code
241more aggressively. These changes also seem to have cured the taito_f3
242issues as far as I can tell (at least pbobble3 seems right now).
243[Aaron Giles]
244
245Disentangled the 68000 core, converting it to be much simpler and less
246overly abstracted. Hard-coded it for the options that are relevant
247and never going to change. Removed old unused CPS2 encryption junk.
248Changed encryption interfaces to pass the CPU core object.
249[Aaron Giles]
250
251Updated CPS1 documentation. [Nicola Salmoria]
252
253Added m6809 config option to control where opcodes 10 and 11 fetch
254the second byte. [Nicola Salmoria]
255
256Changed kram3 to use a partially understood decryption algorithm and
257removed external tables. [Nicola Salmoria]
258
259Fixed Dip Switches for 'scotrsht'. [stephh]
260
261Naomi improvements: [Samuele Zannoli]
262 * This patch implements a "plug-in board" device for the Naomi.
263    It represents the rom boards for the various games and the dimm
264    board for the gdrom.
265 * Now the dimm board part contains only a routine to load the "rom
266    file" from the gdrom chd, but in the future it will be fully
267    implemented with its own sh4 processor, security chip and so on.
268 * Extracted .rom files are no longer needed, rom file is extracted
269    in code from the CHD.
270
271Added "tag" parameter to state_save_register_item_* calls. Removed
272state_save_combine_module_and_tag() function in favor of passing
273the tag when registering. Revisited all save state item registrations
274and changed them to use the tag where appropriate. [Aaron Giles]
275
276Changed 6809 disassembler to work with kram3. [Nicola Salmoria]
277
278Added template support to regrep. Changed output to not color the
279entire background of each cell. Switched to astrings and core_files
280internally. [Aaron Giles]
281
282ST-V IRQ rewrite and that removes several global hacks/game specific
283hacks. (SMPC irq bit/introdon irq register hack/pblbeach framebuffer
284hack plus some more). Note: some games have issues with it, but
285they'll be hopefully fixed on the next couple of updates.
108Hooked up sprite buffering in the Jaleco Mega System 1 driver.
286109[Angelo Salese]
287110
288Generalized the concept of opbase access into "direct" access.
289Removed opbase globals to the address_space structure. Cleaned up
290names of pointers (decrypted and raw versus rom and ram). Added inline
291functions to read/write data via any address space. Added macros for
292existing functions to point them to the new functions. Other related
293cleanups. [Aaron Giles]
111Corrected Euro League clock speeds. [Mike Coates]
294112
295Pointerized the CDP1802 CPU core. [Curt Coder]
113Fixed ADPCM stop flag in Jantotsu, and cleaned up some routines in the
114driver. Added an heuristic table for the msm samples. Fixed MSM
115frequency. [Angelo Salese]
296116
297Tweaked gun handling in beast busters a bit.. by halving the
298precision of the guns to 7-bit they can be calibrated more easily,
299maybe the originals were like this.  I've also added a default
300eeprom with them calibrated in a 'reasonable' way for MAME.  Sound
301is pretty awful on this, maybe the sound ROMs should be checked?
302[David Haywood]
117Hooked up sound in Super Shanghai Dragon's Eye. [Angelo Salese]
303118
304Cleaned up macro mess in the Z80 core. Switched to using generic
305memory calls instead of program_* and io_*. [Aaron Giles]
119Fixed some dip-switches quirks in the Mexico 86 driver and enabled the
120single board 4 players mode. [Angelo Salese]
306121
307Pointer-ified the ASAP core. [Aaron Giles]
122Improved timing of communication between the main and sound cpus in
123the megadriv driver. [Wilbert Pol]
308124
309Pointerized the COP400 CPU cores. [Curt Coder]
125Fixed flickering in Super Shanghai Dragon's Eye on girl presentation
126screens. Split memory maps for the different sshangha version, and
127fixed sound in the parent set. [Angelo Salese]
310128
311Switched mcs48, mcs51, m68000 to new memory functions. [couriersud]
129Added I8751 ROM to sqixu [Dr. Decapitator, Nicola Salmoria]
312130
313Documented alt Ajax rom board [Phil Morris]
131Fixed sqix/sqixa bootleg MCU bad dump by comparison with the original.
132[Nicola Salmoria]
314133
315Fixed basic controls in 2 Minutes Drill & added preliminary shutter/
316defender sensors. Still need proper ball hit/run sensors to get this
317working however. [Angelo Salese]
134Fixed coin lockout in Tetris (Arkanoid HW) and removed the
135GAME_WRONG_COLORS flag since the colors are correct. [Angelo Salese]
318136
319Big H8 update: [R. Belmont]
320 - Added support for 8-bit H8 family MCUs, starting with the H8/3344
321 - Pointer-ified all H8 cores
322 - Some cleanup and renames toward additional future work
137Added MSM hook-up for Ganbare Chinsan Ooshoubu. [Angelo Salese]
323138
324System 23: [R. Belmont]
325 - Added extremely preliminary support for I/O boards with the H8/3344
139Fixed background colors in Tryout and cleaned-up the NMI firings on
140coin insertion. [Angelo Salese]
326141
327Removed the change_pc() macro. Changed memory_set_direct_region() to
328return a boolean indicating whether the given address was successfully
329located in a bank. Change raw/decrypted access to look at this result,
330and if the given address is not in a bank, calls through to the
331standard read handlers. This should prevent most crashes when
332accessing opcodes. [Aaron Giles]
142Cleaned-up the Mazer Blazer driver. [Angelo Salese]
333143
334Fixed address space mapping handlers to invalidate direct access
335regions if a change is made to the mapping. This is needed to prevent
336the Sega dynamic memory mapping chips from falling over. [Aaron Giles]
144Fixed foreground color offsets in Tryout, game colors should now be
145100% accurate. Also fixed flip X on the sprites, fixed scrolling
146issues, and added screen disable flag. [Angelo Salese]
337147
338Refactored the CDP1802 and COP400 CPU cores to use the new memory
339functions. [Curt Coder]
148Disabled unused variables in the project that were only assigned to
149but never used. [Oliver Stoeneberg]
340150
341Switched m6809 and hd6309 to new memory functions: [couriersud]
342 * cleaned up some macros
343 * aligned code a bit more
344 * interrupts now checked in cpu_execute instead of set_context
151Removed the pulse input on the touchscreen for the touchmaster
152drivers, making centipede returns (tm4k), breakout3k (tm3k),
153wordsearch (tm8k) and possibly other games playable do to the need for
154"dragging" the screen. An example of this is the word search game
155where it is necessary to drag from the start letter to the end to
156highlight the selection, which is not possible with a pulse input.
157[Mike Green]
345158
346Pointerified the psx cpu core & switched it to the new memory
347functions. Changed some MIPS_* to PSXCPU_*. [smf]
159Corrected the clock speed for Pirate Ship Higemaru. [Stefan Lindberg]
348160
349Fixed broken crazywar eeprom. [David Haywood]
161Hand-tuned bgm OKI sound chip frequency in mirage.c. [Angelo Salese]
350162
351Another significant memory system change: [Aaron Giles]
163Added readmes to Jail Break, Ninja Warriors, Operation Wolf and
164Rainbow Islands. [Guru]
352165
353  Moved memory global state into a struct hanging off of the machine.
354  Updated almost all memory APIs to take an address_space * where
355  appropriate, and updated all callers. Changed memory internals to
356  use address spaces where appropriate. Changed accessors to point
357  to the memory_* functions instead of the address space-specific
358  functions. Improved internal handling of watchpoints.
359 
360  Added cputag_* functions: cputag_reset(), cputag_get_index(),
361  cputag_get_address_space(). These just expand via macros to an
362  initial fetch of the CPU via cputag_get_cpu() followed by the
363  standard CPU call.
364 
365  Added debugger_interrupt_hook() and debugger_exception_hook() calls
366  which intelligently look at the debugger flags before calling.
166Fixed sound banking and priorities in Mirage Youjuu Mahjongden.
167[Angelo Salese]
367168
368  Memory banking now requires a machine object. This makes the memory
369  system fully global-free.
169Decoded color proms and fixed bitplanes in Mirax. [Angelo Salese]
370170
371Pointer-ified the jaguar CPU core. [Aaron Giles]
171CPUs actually take some time to reset. Changed the 68000/68010 to
172eat an appropriate number of cycles after a reset. [Aaron Giles]
372173
373Pointer-ified the TMS32031 core. [Aaron Giles]
174Sega System 16A changes: [Aaron Giles, Dr. Decapitator]
175 * Added MCU dumps to quart21 and bodyslam
176 * Hooked up MCU in these games
177 * Marked games using simulated MCU as "unemulated protection"
178    as the MCUs clearly do more than what we are simulating
374179
375Replaced parent crkdown image with one containing valid settings data
376(prevents game booting with 0 seconds and invalid highscore data
377which it can't restore correctly). [David Haywood]
180Eliminated SMH_* usage in all memory maps in drivers beginning with
181A and B. [MooglyGuy]
378182
379Converted H8 CPUs to the new memory functions. [R. Belmont]
183Added some security custom info to the Sega drivers
184(from http://www.higenekodo.jp/sega_n.htm). [Yasuhiro Ogawa]
380185
381Debugger interfaces cleanup. Added callback parameters to the
382expression engine. Improved CPU parsing so you can use a CPU tag or
383index in most commands that take one. Switched to passing CPU and
384address space objects around where appropriate. Symbol tables now have
385a global ref as well as a per-symbol ref. Debugcpu is now clear of
386active CPU references and global Machine references. Lots of other
387minor tweaks. [Aaron Giles]
186Converted the Namco 50xx, 51xx, 52xx, 53xx, 54xx, and 06xx into
187proper devices. [Aaron Giles]
388188
389Pointer-ified cpu/nec (V30). [couriersud]
189Added DERIVED_CLOCK() macro which can be used by sub-devices to
190derive their clock from the parent device. [Aaron Giles]
390191
391Switched adsp21xx to new memory functions. [couriersud]
192Tweaked some of the laserdisc interfaces to use ROM_NAME() and
193MACHINE_DRIVER_NAME() macros. [Aaron Giles]
392194
393Fixed several protection issues with Double Wings, improved video
394and sound. [Angelo Salese]
195Changed the Namco 52xx and 53xx devices to run the actual MCU instead
196of simulating the behavior. Hooked them up properly in bosco, digdug,
197and polepos. [Aaron Giles]
395198
396Converted ssp1601 to pointers (still works, tested virtua racing
397genesis). [Curt Coder]
199Fixed Bronx regression. [Angelo Salese]
398200
399Pointer work on se3208 (although I haven't touched the disassembler..)
400[David Haywood]
201Guessed ADPCM PAL shuffling in Idol Janshi Suchie-Pai Special, it
202sounds better but I'm not sure if it's 100% accurate (I need a
203side-by-side test). [Angelo Salese]
401204
402Adjusted bbusters volume balance slightly. [David Haywood]
205Added mirrors to Pole Position memory maps. [Aaron Giles]
403206
404MC6845: Hsync needs to toggle on every scanline. [Curt Coder]
207DIP switch changes: [kanikani]
208 - added DIPLOCATION to scontra and thunderx
209 - added some DEF_STRs (Difficult, Very Difficult, etc.) and modified
210    drivers using them
405211
406Converted remaining CPU cores over to new memory functions.
407[Aaron Giles]
212Added internal memory maps and internal clock divider to the MB88xx
213CPUs. Removed now-redundant memory maps from drivers and removed
214explicitly-specified clock dividers. [Aaron Giles]
408215
409Un-deprecat'ed the H8. [R. Belmont]
216Continued changing CPU references from numbers to tags in drivers.
217[Fabio Priuli]
410218
411Removed cpu_read_byte/cpu_write_byte. Thesea are replaced with
412memory_read_byte/memory_write_byte. [Aaron Giles]
219Preliminary work on beatmania iidx, still lots to do. [smf]
413220
414Pointer-ified the M377xx. [R. Belmont]
221Several MB88xx changes/fixes: [Aaron Giles]
222 - internal timer support now works; prescaler is guessed based
223    on Pole Position sample playback frequency
224 - external counter support works
225 - a basic mechanism for reading serial input has been added; it
226    is not sufficient for a full implementation, but good enough
227    to sample the SI pin at startup
228 - fixed TSTS/TSTV to clear their respective flags
229 - fixed CI and CYI to compute imm-reg instead of reg-imm
230 - added masking of the PA register upon RTI/RTS to prevent bogus
231    PC values
415232
416Removed all direct memory accesses via program_read/write_* from
417game drivers. All drivers now use the memory_read/write_* and pass in
418an address space. [Aaron Giles]
233Fixes compilation with ARM7_DEBUG_CORE enabled.
234[Reijo Tomperi, Oliver Stoeneberg]
419235
420Removed ROM banking kludges from bublbobl, ninjakd2, tnzs, lsasquad,
421missb2, and other drivers. [Nicola Salmoria, David Haywood]
236Added support for parsing horizont.ini or vertical.ini based on the
237game's orientation. [Krick]
422238
423Pointer-"ified" the s2650 core. [couriersud]
239Made a pass at shuffling/improving the system 16 and 18 bootlegs.
240Some games are probably more broken now, but they are better
241structured for future improvements. [David Haywood]
424242
425Removed memory context switch. All memory accesses now specify an
426address space explicitly. There is no longer any concept of a
427"current" memory context. [Aaron Giles]
243Fixed a few potential memory leaks detected by cppcheck and also added
244an errormessage to verinfo. [Oliver Stoeneberg]
428245
429Enhanced the runtest.cmd to use all available processors.
430[Aaron Giles]
246Added Guru-readme(TM) for TWINKLE hardware. [Guru]
431247
432Removed cpu_num info from SH2 in favor of just keeping the device
433object. [Aaron Giles]
434248
435Better fix for vendetta eeprom. [Mamesick, Fabio Priuli]
436249
437Removed all vestiges of the old change_pc macro, which is no longer
438needed with the banking improvements. [Aaron Giles]
439
440Added the latest "what we know" to the plygonet driver. [Phil Bennett]
441
442More accurately describes the aux board behavior for Ms. Pac-Man.
443There is a thorough description of how the board works. mspacman is a
444more faithful emulation. In particular you can now enter service mode
445(F2) at anytime during game play. [Steve Golson]
446
447Derived clocks from crystals in in ace.c, asteroid.c, avalnche.c,
448blockade.c, boxer.c, bzone.c, cosmic.c, firetrk.c, galaga.c,
449lazercmd.c, meadows.c, missile.c, orbit.c, skydiver.c, sprint2.c,
450warpwarp.c, williams.c. [Luigi30]
451
452Added diplocations to meadows.c, mugsmash.c, orbit.c. [Luigi30]
453
454Unified sprint2.c memory map. [Luigi30]
455
456Unified galaga.c CPU4 memory maps. [Luigi30]
457
458Changed flyball CPU clock to a #defined crystal. Added dip locations.
459[Luigi30]
460
461Added new sound core for the Oki MSM6258. [Barry Rodewald]
462
463Added dates to Tron revisions. Swapped tron/tron2 now that we know
464tron2 is the later version. [Tim Lindquist]
465
466
467
468250New games added or promoted from NOT_WORKING status
469251---------------------------------------------------
470Filetto [Angelo Salese]
471Jackie Chan - The Kung-Fu Master
472   [David Haywood, Andreas Naive, stephh, Angelo Salese]
473Firefox [Aaron Giles, smf]
252Aqua Jet (Rev. AJ2 Ver.B) [Guru, R. Belmont, Phil Bennett]
474253
475254
476255
477256New clones added
478257----------------
479Beast Busters (US, Version 2) [Brian Hargrove]
480Puzzle Bobble 2 (Ver 2.3O 1995/07/31) [Ross Myers]
481Street Fighter II' - Champion Edition (Rainbow set 3, bootleg)
482   [Bill DeLeo]
483Violent Storm (ver UAC) [Bill DeLeo]
484Daitoride (YMF278B version) [Stefan Lindberg]
485Soldam (World?) [Gerald]
258Wizard Fire (Over Sea v2.1) [Irongiant]
259US AAF Mustang (TAB Austria bootleg) [Klaus Sommer]
260Chaos Heat (World) [Tormod / Brian Troha]
261Bloody Roar (Japan) [D. Alves, Smitdogg, Dumping Union]
262Fighters' Impact (Japan) [TH60]
263Ehrgeiz (Japan) [Uki]
264Super Qix (World, Rev 2) [Stefan Lindberg]
265High Impact Football (rev LA5 02/15/91)
266  [Tormod, Smitdogg, Dumping Union]
267Intruder [Smitdogg, jmurjr, ranger_lennier]
268Pro. Sports (alternate) [Smitdogg] -- not working
269Forgotten Worlds (World) [Corrado Tomaselli]
270Cherry Bonus III (alt) [David Haywood]
486271
487272
488273
489274New games marked as GAME_NOT_WORKING
490275------------------------------------
491Motocross Go! (MG3 Ver. A) [Guru]
276Alpine Racer 2 (Rev. ARS2 Ver.A) [Guru]
277Tokyo Wars (Rev. TW2 Ver.A) [Guru, R. Belmont, Phil Bennett]
278Microman Battle Charge [Guru]
279Technical Bowling [Guru]
280Enchanted Forest (E - 23/06/95, Local) [AGEMAME]
281Golden Pyramids (B - 13-05-97, USA) [AGEMAME]
282Queen of the Nile (B - 13-05-97, NSW/ACT) [AGEMAME]
283Super Cherry Master / New Cherry Gold '99 [David Haywood]
284Super Cherry Master / Super Cherry Gold [David Haywood]
285Super Cherry Master / Grand Cherry Master [David Haywood]
src/osd/winui/res/mameui.ico
src/osd/winui/layout.c
r4962r4963
6262   {"Sound",           "sound",             FOLDER_SND,          IDI_SOUND,                0,             0,            CreateSoundFolders },
6363   {"Imperfect",       "imperfect",         FOLDER_DEFICIENCY,   IDI_FOLDER,               0,             0,            CreateDeficiencyFolders },
6464     {"Dumping Status",  "dumping",           FOLDER_DUMPING,      IDI_FOLDER,               0,             0,            CreateDumpingFolders },
65     {"Screens",         "screens",           FOLDER_SCREENS,      IDI_FOLDER,               0,             0,            CreateScreenFolders },
6566   {"Working",         "working",           FOLDER_WORKING,      IDI_WORKING,              F_WORKING,     F_NONWORKING, NULL,                       DriverIsBroken,          FALSE },
6667   {"Not Working",     "nonworking",        FOLDER_NONWORKING,   IDI_NONWORKING,           F_NONWORKING,  F_WORKING,    NULL,                       DriverIsBroken,          TRUE },
6768   {"Originals",       "originals",         FOLDER_ORIGINAL,     IDI_FOLDER,               F_ORIGINALS,   F_CLONES,     NULL,                       DriverIsClone,           FALSE },
r4962r4963
119120   { "Background Images",     GetBgDir,        SetBgDir,        FALSE, 0 },
120121   { "Comment Files",         GetCommentDir,   SetCommentDir,   FALSE, DIRDLG_COMMENT },
121122   { "Fonts",                 GetFontDir,      SetFontDir,      FALSE, 0 },
123   { "Crosshairs",           GetCrosshairDir,      SetCrosshairDir,      FALSE, 0 },
122124   { NULL }
123125};
124126
src/osd/winui/winui.mak
r4962r4963
3434# uncomment next line to enable a Unicode build
3535# UNICODE = 1
3636
37# set this to the minimum Direct3D version to support (8 or 9)
38ifndef DIRECT3D
39DIRECT3D = 8
40endif
3741
42# set this to the minimum DirectInput version to support (7 or 8)
43ifndef DIRECTINPUT
44DIRECTINPUT = 7
45endif
46 
3847
48
3949###########################################################################
4050##################   END USER-CONFIGURABLE OPTIONS   ######################
4151###########################################################################
r4962r4963
135145endif
136146
137147# add some VC++-specific defines
138DEFS += -D_CRT_SECURE_NO_DEPRECATE -DXML_STATIC -D__inline__=__inline -Dsnprintf=_snprintf
148DEFS += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DXML_STATIC -D__inline__=__inline -Dsnprintf=_snprintf
139149
140150# make msvcprep into a pre-build step
141151# OSPREBUILD = $(VCONV)
r4962r4963
193203ifdef WIN95_MULTIMON
194204CFLAGS += -DWIN95_MULTIMON
195205endif
206 
196207
197208# add the windows libaries, 3 additional libs at the end for UI
198209LIBS += \
r4962r4963
200211   -lgdi32 \
201212   -lddraw \
202213   -ldsound \
203   -ldinput \
204214   -ldxguid \
205215   -lwinmm \
206216   -ladvapi32 \
207217   -lcomctl32 \
208218   -lshlwapi \
209219
220
221ifeq ($(DIRECTINPUT),7)
222LIBS += -ldinput
223CFLAGS += -DDIRECTINPUT_VERSION=0x0700
224else
225LIBS += -ldinput8
226CFLAGS += -DDIRECTINPUT_VERSION=0x0800
227endif
228
210229# add -mwindows for UI
211230LDFLAGSEMULATOR += \
212231   -mwindows \
r4962r4963
252271#-------------------------------------------------
253272
254273OSDOBJS = \
255   $(WINOBJ)/d3d8intf.o \
256274   $(WINOBJ)/d3d9intf.o \
257275   $(WINOBJ)/drawd3d.o \
258276   $(WINOBJ)/drawdd.o \
r4962r4963
266284   $(WINOBJ)/winmain.o \
267285
268286
287ifeq ($(DIRECT3D),8)
288OSDOBJS += $(WINOBJ)/d3d8intf.o
289else
290CFLAGS += -DDIRECT3D_VERSION=0x0900
291endif
292
293
269294# add UI objs
270295OSDOBJS += \
271296   $(UIOBJ)/mui_util.o \
src/osd/winui/mui_util.c
r4962r4963
5757   BOOL isHarddisk;
5858   BOOL hasOptionalBIOS;
5959   BOOL isStereo;
60   BOOL isMultiMon;
60   int screenCount;
6161   BOOL isVector;
6262   BOOL usesRoms;
6363   BOOL usesSamples;
r4962r4963
334334   return FALSE;
335335}
336336
337int numberOfScreens(const machine_config *config)
338{
339   const device_config *screen = video_screen_first(config);
340   int i=0;
341   for (; screen != NULL; screen = video_screen_next(screen)) {
342      i++;
343   }
344   return i;
345}
346
347
348
337349int numberOfSpeakers(const machine_config *config)
338350{
339351   int speakers = speaker_output_count(config);
r4962r4963
388400         num_speakers = numberOfSpeakers(config);
389401
390402         gameinfo->isStereo = (num_speakers > 1);
391         //gameinfo->isMultiMon = ((drv.video_attributes & VIDEO_DUAL_MONITOR) != 0);
392         // Was removed from Core
393         gameinfo->isMultiMon = 0;
403         gameinfo->screenCount = numberOfScreens(config);
394404         gameinfo->isVector = isDriverVector(config); // ((drv.video_attributes & VIDEO_TYPE_VECTOR) != 0);
395405         gameinfo->usesRoms = FALSE;
396406         for (source = rom_first_source(gamedrv, config); source != NULL; source = rom_next_source(gamedrv, config, source))
r4962r4963
420430                     samplenames = ((const samples_interface *)sound->static_config)->samplenames;
421431#endif
422432               }
423            }
424433
425            if (samplenames != 0 && samplenames[0] != 0)
426            {
427               gameinfo->usesSamples = TRUE;
428               break;
434               if (samplenames != 0 && samplenames[0] != 0)
435               {
436                  gameinfo->usesSamples = TRUE;
437                  break;
438               }         
429439            }         
430440         }
431441         /* Free the structure */
r4962r4963
497507{
498508   return GetDriversInfo(driver_index)->isStereo;
499509}
500BOOL DriverIsMultiMon(int driver_index)
510
511int DriverNumScreens(int driver_index)
501512{
502   return GetDriversInfo(driver_index)->isMultiMon;
513   return GetDriversInfo(driver_index)->screenCount;
503514}
504515
505516BOOL DriverIsVector(int driver_index)
src/osd/winui/treeview.c
r4962r4963
489489   SetNumOptionFolders(k-1);
490490}
491491
492void CreateScreenFolders(int parent_index)
493{
494   int i,jj, k=0;
495   int nGames = driver_list_get_count(drivers);
496   int start_folder = numFolders;
497   LPTREEFOLDER lpFolder = treeFolders[parent_index];
498
499   // no games in top level folder
500   SetAllBits(lpFolder->m_lpGameBits,FALSE);
501   for (jj = 0; jj < nGames; jj++)
502   {
503      int screens = DriverNumScreens(jj);
504      char s[2];
505      itoa(screens, s, 10);
506                         
507      // look for an existant screens treefolder for this game
508      // (likely to be the previous one, so start at the end)
509      for (i=numFolders-1;i>=start_folder;i--)
510      {
511         if (strcmp(treeFolders[i]->m_lpTitle,s) == 0)
512         {
513            AddGame(treeFolders[i],jj);
514            break;
515         }
516      }
517      if (i == start_folder-1)
518      {
519         // nope, it's a screen file we haven't seen before, make it.
520         LPTREEFOLDER lpTemp;
521         lpTemp = NewFolder(s, next_folder_id, parent_index, IDI_FOLDER,
522                           GetFolderFlags(numFolders));
523         ExtraFolderData[next_folder_id] = malloc(sizeof(EXFOLDERDATA) );
524         memset(ExtraFolderData[next_folder_id], 0, sizeof(EXFOLDERDATA));
525
526         ExtraFolderData[next_folder_id]->m_nFolderId = next_folder_id;
527         ExtraFolderData[next_folder_id]->m_nIconId = IDI_SOURCE;
528         ExtraFolderData[next_folder_id]->m_nParent = lpFolder->m_nFolderId;
529         ExtraFolderData[next_folder_id]->m_nSubIconId = -1;
530         strcpy( ExtraFolderData[next_folder_id]->m_szTitle, s );
531         ExtraFolderData[next_folder_id]->m_dwFlags = 0;
532
533         // Increment next_folder_id here in case code is added above
534         next_folder_id++;
535
536         AddFolder(lpTemp);
537         AddGame(lpTemp,jj);
538      }
539   }
540   SetNumOptionFolders(k-1);
541}
542
543
492544void CreateManufacturerFolders(int parent_index)
493545{
494546   int i,jj;
r4962r4963
14271479 * of FOLDER_SOURCE.
14281480 */
14291481static BOOL FolderHasIni(LPTREEFOLDER lpFolder) {
1430   if (FOLDER_VECTOR == lpFolder->m_nFolderId) {
1482   if (FOLDER_VECTOR == lpFolder->m_nFolderId ||
1483      FOLDER_VERTICAL == lpFolder->m_nFolderId ||
1484      FOLDER_HORIZONTAL == lpFolder->m_nFolderId) {
14311485      return TRUE;
14321486   }
14331487   if (lpFolder->m_nParent != -1
src/osd/winui/mui_util.h
r4962r4963
4242BOOL DriverIsHarddisk(int driver_index);
4343BOOL DriverHasOptionalBIOS(int driver_index);
4444BOOL DriverIsStereo(int driver_index);
45BOOL DriverIsMultiMon(int driver_index);
4645BOOL DriverIsVector(int driver_index);
46int  DriverNumScreens(int driver_index);
4747BOOL DriverIsBios(int driver_index);
4848BOOL DriverUsesRoms(int driver_index);
4949BOOL DriverUsesSamples(int driver_index);
r4962r4963
5555
5656int isDriverVector(const machine_config *config);
5757int numberOfSpeakers(const machine_config *config);
58int numberOfScreens(const machine_config *config);
5859
5960void FlushFileCaches(void);
6061
src/osd/winui/properties.c
r4962r4963
3535program    ini (executable root filename ini)
3636debug      ini (if running a debug build)
3737vector     ini (really is vector.ini!)
38vertical     ini (really is vertical.ini!)
39horizont     ini (really is horizont.ini!)
3840driver     ini (source code root filename in which this driver is found)
39granparent ini (grandparent, not sure these exist, but it is possible)
41grandparent ini (grandparent, not sure these exist, but it is possible)
4042parent     ini (where parent is the name of the parent driver)
4143game       ini (where game is the driver name for this game)
4244
r4962r4963
250252#define HIGHLIGHT_COLOR RGB(0,196,0)
251253static HBRUSH highlight_brush = NULL;
252254static HBRUSH background_brush = NULL;
255
256#define ORIENTATION_COLOR RGB( 190, 128, 0) //LIGHT BROWN
253257#define VECTOR_COLOR RGB( 190, 0, 0) //DARK RED
254258#define FOLDER_COLOR RGB( 0, 128, 0 ) // DARK GREEN
255259#define PARENT_COLOR RGB( 190, 128, 192 ) // PURPLE
r4962r4963
515519   if (opt_type > OPTIONS_GLOBAL)
516520   {
517521      default_type -= 1;
522      if (OPTIONS_VERTICAL == opt_type) {
523         //since VERTICAL and HORIZONTAL are equally ranked
524         //we need to subtract 2 from vertical to also get to correct default
525         default_type -= 1;
526      }
527
518528   }
519529   pDefaultOpts = load_options(default_type, game_num);
520530
r4962r4963
562572      t_description = tstring_from_utf8(ModifyThe(drivers[g_nGame]->description));
563573      break;
564574   case OPTIONS_VECTOR:
575   case OPTIONS_VERTICAL:
576   case OPTIONS_HORIZONTAL:
565577   case OPTIONS_SOURCE:
566578      t_description = tstring_from_utf8(GetFolderNameByID(g_nFolder));
567579      break;
r4962r4963
708720{
709721   static char buf[1024];
710722   machine_config *config = machine_config_alloc(drivers[nIndex]->machine_config);
723   memset(buf, '\0', 1024);
711724
712725   if (isDriverVector(config))
713726   {
r4962r4963
716729   else
717730   {
718731      const device_config *screen = video_screen_first(config);
732      if (screen == NULL) {
733         strcpy(buf, "Screenless Game");
734      }
735      else {
736         for (; screen != NULL; screen = video_screen_next(screen)) {
737            const screen_config *scrconfig = screen->inline_config;
738            char tmpbuf[256];
719739
720      if (screen != NULL)
721      {     
722         const screen_config *scrconfig = screen->inline_config;
723
724         if (drivers[nIndex]->flags & ORIENTATION_SWAP_XY)
725         {
726            sprintf(buf,"%d x %d (V) %f Hz",
727            scrconfig->visarea.max_y - scrconfig->visarea.min_y + 1,
728               scrconfig->visarea.max_x - scrconfig->visarea.min_x + 1,
729               ATTOSECONDS_TO_HZ(scrconfig->refresh));
730         }
731         else
732         {
733            sprintf(buf,"%d x %d (H) %f Hz",
734               scrconfig->visarea.max_x - scrconfig->visarea.min_x + 1,
740            if (drivers[nIndex]->flags & ORIENTATION_SWAP_XY)
741            {
742               sprintf(tmpbuf,"%d x %d (V) %f Hz\n",
735743               scrconfig->visarea.max_y - scrconfig->visarea.min_y + 1,
736               ATTOSECONDS_TO_HZ(scrconfig->refresh));
744                     scrconfig->visarea.max_x - scrconfig->visarea.min_x + 1,
745                     ATTOSECONDS_TO_HZ(scrconfig->refresh));
746            } else {
747               sprintf(tmpbuf,"%d x %d (H) %f Hz\n",
748                     scrconfig->visarea.max_x - scrconfig->visarea.min_x + 1,
749                     scrconfig->visarea.max_y - scrconfig->visarea.min_y + 1,
750                     ATTOSECONDS_TO_HZ(scrconfig->refresh));
751            }
752            strcat(buf, tmpbuf);
737753         }
738754      }
739755   }
r4962r4963
948964
949965   if (OPTIONS_GLOBAL == opt_type)
950966      strcpy(buf, "Global game options\nDefault options used by all games");
951   else if (OPTIONS_SOURCE == opt_type || OPTIONS_VECTOR == opt_type)
967   else if (OPTIONS_SOURCE == opt_type || OPTIONS_VECTOR == opt_type ||
968      OPTIONS_VERTICAL == opt_type || OPTIONS_HORIZONTAL == opt_type)
952969      strcpy(buf, "Global folder options\nDefault options used by all games in the folder");
953970   else
954971      sprintf(buf, "%s\n\"%s\"", ModifyThe(drivers[nIndex]->description), drivers[nIndex]->name);
r4962r4963
13341351         }
13351352      }
13361353      break;
1354
13371355#if 0
1338   /* FIXME - Not sure what to do here. */
1356   /* FIXME
1357    * We need to figure out in which ini of our hierarchy the current value is set, then apply the corresponding colouring.
1358    * Is there an easy way to figure this out?
1359    * The actual colour coding should still work
1360    */
13391361   case WM_CTLCOLORSTATIC :
13401362   case WM_CTLCOLOREDIT :
1341     
1342      if( g_nGame >= 0 )
13431363      {
1344         if( DriverIsClone(g_nGame) )
1364         int nParentIndex = 0;
1365         if( g_nGame >= 0 )
13451366         {
1346            nParentIndex = GetParentIndex( drivers[g_nGame] );
1367            if( DriverIsClone(g_nGame) )
1368            {
1369               nParentIndex = GetParentIndex( drivers[g_nGame] );
1370            }
13471371         }
1348      }
1349      //Set the Coloring of the elements
1350      if (GetWindowLong((HWND)lParam, GWL_ID) < 0)
1351         break;
1352      if (IsControlOptionValue(hDlg,(HWND)lParam, GetDefaultOptions( -1, FALSE) ) )
1353      {
1354         //Normal Black case
1355         SetTextColor((HDC)wParam,COLOR_WINDOWTEXT);
1356      }
1357      else if (IsControlOptionValue(hDlg,(HWND)lParam, GetVectorOptions() )  && DriverIsVector(g_nFolderGame) )
1358      {
1359         SetTextColor((HDC)wParam,VECTOR_COLOR);
1360      }
1361      else if (IsControlOptionValue(hDlg,(HWND)lParam, GetSourceOptions(g_nFolderGame ) ) )
1362      {
1363         SetTextColor((HDC)wParam,FOLDER_COLOR);
1364      }
1365      else if ((nParentIndex >=0) && (IsControlOptionValue(hDlg,(HWND)lParam, GetGameOptions(nParentIndex, g_nFolder ) ) ) )
1366      {
1367         SetTextColor((HDC)wParam,PARENT_COLOR);
1368      }
1369//      else if ( (g_nGame >= 0) && (IsControlOptionValue(hDlg,(HWND)lParam, GetGameOptions(g_nGame, g_nFolder) ) ) )
1370      else if ( (g_nGame >= 0) && (IsControlOptionValue(hDlg,(HWND)lParam, pOrigOpts ) ) )
1371      {
1372         SetTextColor((HDC)wParam,GAME_COLOR);
1373      }
1374      else
1375      {
1376         switch ( g_nPropertyMode )
1372         //Set the Coloring of the elements
1373         if (GetWindowLong((HWND)lParam, GWL_ID) < 0) {
1374            break;
1375         }
1376         if (IsControlOptionValue(hDlg,(HWND)lParam, GetDefaultOptions( -1, FALSE) ) )
13771377         {
1378            case OPTIONS_GAME:
1379               SetTextColor((HDC)wParam,GAME_COLOR);
1380               break;
1381            case OPTIONS_SOURCE:
1382               SetTextColor((HDC)wParam,FOLDER_COLOR);
1383               break;
1384            case OPTIONS_VECTOR:
1385               SetTextColor((HDC)wParam,VECTOR_COLOR);
1386               break;
1387            default:
1388            case OPTIONS_GLOBAL:
1389               SetTextColor((HDC)wParam,COLOR_WINDOWTEXT);
1390               break;
1378            //Normal Black case
1379            SetTextColor((HDC)wParam,COLOR_WINDOWTEXT);
13911380         }
1392      }
1393      if( Msg == WM_CTLCOLORSTATIC )
1394      {
1395         if (SafeIsAppThemed())
1381         else if (IsControlOptionValue(hDlg,(HWND)lParam, GetHorizontalOptions() )  && !DriverIsVertical(g_nFolderGame) )
13961382         {
1397            HWND hWnd = PropSheet_GetTabControl(GetParent(hDlg));
1398            // Set the background mode to transparent
1399            SetBkMode((HDC)wParam, TRANSPARENT);
1383            SetTextColor((HDC)wParam,ORIENTATION_COLOR);
1384         }
1385         else if (IsControlOptionValue(hDlg,(HWND)lParam, GetVerticalOptions() )  && DriverIsVertical(g_nFolderGame) )
1386         {
1387            SetTextColor((HDC)wParam,ORIENTATION_COLOR);
1388         }
1389         else if (IsControlOptionValue(hDlg,(HWND)lParam, GetVectorOptions() )  && DriverIsVector(g_nFolderGame) )
1390         {
1391            SetTextColor((HDC)wParam,VECTOR_COLOR);
1392         }
1393         else if (IsControlOptionValue(hDlg,(HWND)lParam, GetSourceOptions(g_nFolderGame ) ) )
1394         {
1395            SetTextColor((HDC)wParam,FOLDER_COLOR);
1396         }
1397         else if ((nParentIndex >=0) && (IsControlOptionValue(hDlg,(HWND)lParam, GetGameOptions(nParentIndex, g_nFolder ) ) ) )
1398         {
1399            SetTextColor((HDC)wParam,PARENT_COLOR);
1400         }
1401         else if ( (g_nGame >= 0) && (IsControlOptionValue(hDlg,(HWND)lParam, pOrigOpts ) ) )
1402         {
1403            SetTextColor((HDC)wParam,GAME_COLOR);
1404         }
1405         else
1406         {
1407            switch ( g_nPropertyMode )
1408            {
1409               case OPTIONS_GAME:
1410                  SetTextColor((HDC)wParam,GAME_COLOR);
1411                  break;
1412               case OPTIONS_SOURCE:
1413                  SetTextColor((HDC)wParam,FOLDER_COLOR);
1414                  break;
1415               case OPTIONS_VECTOR:
1416                  SetTextColor((HDC)wParam,VECTOR_COLOR);
1417                  break;
1418               case OPTIONS_HORIZONTAL:
1419                  SetTextColor((HDC)wParam,ORIENTATION_COLOR);
1420                  break;
1421               case OPTIONS_VERTICAL:
1422                  SetTextColor((HDC)wParam,ORIENTATION_COLOR);
1423                  break;
1424               default:
1425               case OPTIONS_GLOBAL:
1426                  SetTextColor((HDC)wParam,COLOR_WINDOWTEXT);
1427                  break;
1428            }
1429         }
1430         if( Msg == WM_CTLCOLORSTATIC )
1431         {
1432            if (SafeIsAppThemed())
1433            {
1434               RECT rc;
1435               HWND hWnd = PropSheet_GetTabControl(GetParent(hDlg));
1436               // Set the background mode to transparent
1437               SetBkMode((HDC)wParam, TRANSPARENT);
14001438
1401            // Get the controls window dimensions
1402            GetWindowRect((HWND)lParam, &rc);
1439               // Get the controls window dimensions
1440               GetWindowRect((HWND)lParam, &rc);
14031441
1404            // Map the coordinates to coordinates with the upper left corner of dialog control as base
1405            MapWindowPoints(NULL, hWnd, (LPPOINT)(&rc), 2);
1442               // Map the coordinates to coordinates with the upper left corner of dialog control as base
1443               MapWindowPoints(NULL, hWnd, (LPPOINT)(&rc), 2);
14061444
1407            // Adjust the position of the brush for this control (else we see the top left of the brush as background)
1408            SetBrushOrgEx((HDC)wParam, -rc.left, -rc.top, NULL);
1445               // Adjust the position of the brush for this control (else we see the top left of the brush as background)
1446               SetBrushOrgEx((HDC)wParam, -rc.left, -rc.top, NULL);
14091447
1410            // Return the brush
1411            return (INT_PTR)(hBkBrush);
1448               // Return the brush
1449               return (INT_PTR)(hBkBrush);
1450            }
1451            else
1452            {
1453               SetBkColor((HDC) wParam,GetSysColor(COLOR_3DFACE) );
1454            }
14121455         }
1413         else
1414         {
1415            SetBkColor((HDC) wParam,GetSysColor(COLOR_3DFACE) );
1456         else {
1457            SetBkColor((HDC)wParam,RGB(255,255,255) );
14161458         }
1459         UnrealizeObject(background_brush);
1460         return (DWORD)background_brush;
14171461      }
1418      else
1419         SetBkColor((HDC)wParam,RGB(255,255,255) );
1420      UnrealizeObject(background_brush);
1421      return (DWORD)background_brush;
14221462      break;
1423#endif // 0 Not sure what to do here
1463#endif
14241464
14251465   case WM_HELP:
14261466      /* User clicked the ? from the upper right on a control */
r4962r4963
26052645   if (hCtrl)
26062646   {
26072647      const device_config *sound;
2608      for (sound = sound_first(config); sound != NULL; sound = sound_next(sound))
2648      if (config != NULL)
26092649      {
2610         if (sound_get_type(sound) == SOUND_SAMPLES
2650         for (sound = sound_first(config); sound != NULL; sound = sound_next(sound))
2651         {
2652            if (sound_get_type(sound) == SOUND_SAMPLES
26112653#if HAS_VLM5030
2612            ||  sound_get_type(sound) == SOUND_VLM5030
2654               ||  sound_get_type(sound) == SOUND_VLM5030
26132655#endif
2614            )
2615         {
2616            enabled = TRUE;
2656               )
2657            {
2658               enabled = TRUE;
2659            }
26172660         }
26182661      }
26192662
src/emu/cpu/h83002/h8_8.c
r4962r4963
398398//  peripherals
399399static void recalc_8bit_timer(h83xx_state *h8, int t)
400400{
401   static INT32 dividers[8] = { 0, 0, 8, 2, 64, 32, 1024, 256 };
401   static const INT32 dividers[8] = { 0, 0, 8, 2, 64, 32, 1024, 256 };
402402   int div;
403403   INT32 time;
404404
r4962r4963
428428// IRQs: timer 0: 19 A 20 B 21 OV  timer1: 22 A 23 B 24 OV
429429static void timer_8bit_expire(h83xx_state *h8, int t, int sel)
430430{
431   static int irqbase[2] = { 19, 22 };
431   static const int irqbase[2] = { 19, 22 };
432432
433433   timer_adjust_oneshot(h8->timer[(t*2)+sel], attotime_never, 0);
434434
r4962r4963
512512   UINT8 val;
513513   UINT8 reg;
514514   UINT64 frc;
515   static UINT64 divider[4] = { 2, 8, 32, 1 };
515   static const UINT64 divider[4] = { 2, 8, 32, 1 };
516516   h83xx_state *h8 = (h83xx_state *)space->cpu->token;
517517
518518   reg = (offset + 0x88) & 0xff;
src/emu/cpu/m37710/m37710.c
r4962r4963
303303   }
304304}
305305
306static void m37710_recalc_timer(m37710i_cpu_struct *cpustate, running_machine *machine, int timer)
306static void m37710_recalc_timer(m37710i_cpu_struct *cpustate, int timer)
307307{
308308   int tval;
309309   static const int tcr[8] = { 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d };
r4962r4963
505505            if ((data & (1<<i)) && !(cpustate->m37710_regs[offset] & (1<<i)))
506506            {
507507               cpustate->m37710_regs[offset] |= (1<<i);
508               m37710_recalc_timer(cpustate, cpustate->device->machine, i);
508               m37710_recalc_timer(cpustate, i);
509509            }
510510         }
511511
src/emu/cpu/tms57002/tmsmake.c
r4962r4963
5151  int ppos[4];
5252} pinf;
5353
54const static pdesc pp_r[] = {
54static const pdesc pp_r[] = {
5555  { "a",    0, PA   },
5656  { "c",    0, PC   },
5757  { "d",    0, PD   },
r4962r4963
8282
8383enum { IxCMODE, IxDMODE, IxSFAI, IxCRM, IxDBP, IxSFAO, IxSFMO, IxRND, IxMOVM, IxSFMA, IxCOUNT };
8484
85static vinfo vinf[] = {
85static const vinfo vinf[] = {
8686  { I_CMODE, 3, "cmode", "xmode(opcode, 'c')" },
8787  { I_DMODE, 3, "dmode", "xmode(opcode, 'd')" },
8888  { I_SFAI,  2, "sfai",  "sfai(s->st1)"       },
r4962r4963
9696  { 0 }
9797};
9898
99static char *xstrdup(const char *str)
100{
101  char *cpy = NULL;
102  if (str != NULL) {
103    cpy = (char *)malloc(strlen(str) + 1);
104    if (cpy != NULL)
105      strcpy(cpy, str);
106  }
107  return cpy;
108}
109
99110static char *sconcat(char *dest, const char *src)
100111{
101112  char *r;
r4962r4963
156167   p = buf;
157168   while(*p == ' ' || *p == '\t')
158169     p++;
159   i->dasm = strdup(p);
170   i->dasm = xstrdup(p);
160171      }
161172    } else {
162173      char *name=0, *cat=0, *id=0, *cyc=0, *rep=0, *type=0;
r4962r4963
224235   exit(1);
225236      }
226237
227      i->name = strdup(name);
238      i->name = xstrdup(name);
228239      i->line = line;
229240      i->cycles = strtol(cyc, 0, 10);
230241      i->flags = flags;
r4962r4963
399410
400411static void save_dasm_cat(FILE *f, const char *def, instr *il, int count)
401412{
402  const static pdesc pp[] = {
413  static const pdesc pp[] = {
403414    { "c", 0, PC },
404415    { "d", 0, PD },
405416    { "i", 0, PI },
src/emu/cpu/dsp56k/dsp56mem.c
r4962r4963
610610
611611/* These two functions are exposed to the outside world */
612612/* They represent the host side of the dsp56k's host interface */
613void dsp56k_host_interface_write(device_config* device, UINT8 offset, UINT8 data)
613void dsp56k_host_interface_write(const device_config* device, UINT8 offset, UINT8 data)
614614{
615615   dsp56k_core* cpustate = get_safe_token(device);
616616
r4962r4963
706706   }
707707}
708708
709UINT8 dsp56k_host_interface_read(device_config* device, UINT8 offset)
709UINT8 dsp56k_host_interface_read(const device_config* device, UINT8 offset)
710710{
711711   dsp56k_core* cpustate = get_safe_token(device);
712712
r4962r4963
934934
935935
936936/* MISC*/
937UINT16 dsp56k_get_peripheral_memory(device_config* device, UINT16 addr)
937UINT16 dsp56k_get_peripheral_memory(const device_config* device, UINT16 addr)
938938{
939939   // TODO // THIS COMES BACK dsp56k_core* cpustate = get_safe_token(device);
940940   return dsp56k_peripheral_ram[A2O(addr)];
src/emu/cpu/dsp56k/dsp56k.h
r4962r4963
243243    PUBLIC FUNCTIONS
244244***************************************************************************/
245245
246void  dsp56k_host_interface_write(device_config* device, UINT8 offset, UINT8 data);
247UINT8 dsp56k_host_interface_read(device_config* device, UINT8 offset);
246void  dsp56k_host_interface_write(const device_config* device, UINT8 offset, UINT8 data);
247UINT8 dsp56k_host_interface_read(const device_config* device, UINT8 offset);
248248
249UINT16 dsp56k_get_peripheral_memory(device_config* device, UINT16 addr);
249UINT16 dsp56k_get_peripheral_memory(const device_config* device, UINT16 addr);
250250
251251#endif /* __DSP56K_H__ */
src/emu/cpu/dsp56k/dsp56pcu.c
r4962r4963
107107//static void SE_bit_set(dsp56k_core* cpustate, UINT8 value) {};
108108
109109
110UINT8 dsp56k_operating_mode(dsp56k_core* cpustate)
110static UINT8 dsp56k_operating_mode(dsp56k_core* cpustate)
111111{
112112   return ((MB_bit(cpustate) << 1) | MA_bit(cpustate));
113113}
src/emu/cpu/i860/i860dec.c
r4962r4963
29612961   So we only represent the PFAM table and use a special flag on any entry
29622962   where the PFMAM table would use the M pipe rather than the A pipe.
29632963   Also, entry 16 is not valid for PFMAM.  */
2964static struct
2964static const struct
29652965{
29662966   int M_unit_op1;
29672967   int M_unit_op2;
r4962r4963
40834083
40844084
40854085/* First-level decode table (i.e., for the 6 primary opcode bits).  */
4086static decode_tbl_t decode_tbl[64] = {
4086static const decode_tbl_t decode_tbl[64] = {
40874087   /* A slight bit of decoding for loads and stores is done in the
40884088       execution routines (operand size and addressing mode), which
40894089       is why their respective entries are identical.  */
r4962r4963
41554155
41564156
41574157/* Second-level decode table (i.e., for the 3 core escape opcode bits).  */
4158static decode_tbl_t core_esc_decode_tbl[8] = {
4158static const decode_tbl_t core_esc_decode_tbl[8] = {
41594159   { 0,                0},
41604160   { 0,                0},   /* lock  (FIXME: unimplemented).  */
41614161   { insn_calli,       DEC_DECODED}, /* calli isrc1ni.                 */
r4962r4963
41684168
41694169
41704170/* Second-level decode table (i.e., for the 7 FP extended opcode bits).  */
4171static decode_tbl_t fp_decode_tbl[128] = {
4171static const decode_tbl_t fp_decode_tbl[128] = {
41724172   /* Floating point instructions.  The least significant 7 bits are
41734173       the (extended) opcode and bits 10:7 are P,D,S,R respectively
41744174       ([p]ipelined, [d]ual, [s]ource prec., [r]esult prec.).
src/emu/cpu/i860/i860dis.c
r4962r4963
388388
389389
390390/* First-level decode table (i.e., for the 6 primary opcode bits).  */
391static decode_tbl_t decode_tbl[64] =
391static const decode_tbl_t decode_tbl[64] =
392392{
393393   /* A slight bit of decoding for loads and stores is done in the
394394       execution routines (operand size and addressing mode), which
r4962r4963
461461
462462
463463/* Second-level decode table (i.e., for the 3 core escape opcode bits).  */
464static decode_tbl_t core_esc_decode_tbl[8] =
464static const decode_tbl_t core_esc_decode_tbl[8] =
465465{
466466   { 0,         0          , 0           },
467467   { int_0,     DEC_DECODED, "lock"      }, /* lock.           */
r4962r4963
475475
476476
477477/* Second-level decode table (i.e., for the 7 FP extended opcode bits).  */
478static decode_tbl_t fp_decode_tbl[128] =
478static const decode_tbl_t fp_decode_tbl[128] =
479479{
480480   /* Floating point instructions.  The least significant 7 bits are
481481       the (extended) opcode and bits 10:7 are P,D,S,R respectively
src/emu/cpu/tlcs900/dasm900.c
r4962r4963
3535};
3636
3737
38static const char *s_mnemonic[] =
38static const char *const s_mnemonic[] =
3939{
4040   "adc", "add", "and", "andcf", "bit", "bs1b",
4141   "bs1f", "call", "calr", "ccf", "chg", "cp",
r4962r4963
13581358
13591359
13601360
1361static const char *s_reg8[8] = { "W", "A", "B", "C", "D", "E", "H", "L" };
1362static const char *s_reg16[8] = { "WA", "BC", "DE", "HL", "IX", "IY", "IZ", "SP" };
1363static const char *s_reg32[8] = { "XWA", "XBC", "XDE", "XHL", "XIX", "XIY", "XIZ", "XSP" };
1364static const char *s_mulreg16[8] = { "??", "WA", "??", "BC", "??", "DE", "??", "HL" };
1365static const char *s_allreg8[256] =
1361static const char *const s_reg8[8] = { "W", "A", "B", "C", "D", "E", "H", "L" };
1362static const char *const s_reg16[8] = { "WA", "BC", "DE", "HL", "IX", "IY", "IZ", "SP" };
1363static const char *const s_reg32[8] = { "XWA", "XBC", "XDE", "XHL", "XIX", "XIY", "XIZ", "XSP" };
1364static const char *const s_mulreg16[8] = { "??", "WA", "??", "BC", "??", "DE", "??", "HL" };
1365static const char *const s_allreg8[256] =
13661366{
13671367   "RA0" ,"RW0" ,"QA0" ,"QW0" ,"RC0" ,"RB0" ,"QC0" ,"QB0" ,"RE0" ,"RD0" ,"QE0" ,"QD0" ,"RL0" ,"RH0" ,"QL0" ,"QH0" ,
13681368   "RA1" ,"RW1" ,"QA1" ,"QW1" ,"RC1" ,"RB1" ,"QC1" ,"QB1" ,"RE1" ,"RD1" ,"QE1" ,"QD1" ,"RL1" ,"RH1" ,"QL1" ,"QH1" ,
r4962r4963
13831383};
13841384
13851385
1386static const char *s_allreg16[256] =
1386static const char *const s_allreg16[256] =
13871387{
13881388   "RWA0","r01W","QWA0","r03W","RBC0","r05W","QBC0","r07W","RDE0","r09W","QDE0","r0BW","RHL0","r0DW","QHL0","r0FW",
13891389   "RWA1","r11W","QWA1","r13W","RBC1","r15W","QBC1","r17W","RDE1","r19W","QDE1","r1BW","RHL1","r1DW","QHL1","r1FW",
r4962r4963
14041404};
14051405
14061406
1407static const char *s_allreg32[256] =
1407static const char *const s_allreg32[256] =
14081408{
14091409   "XWA0","XWA0","XWA0","r03L","XBC0","XBC0","XBC0","r07L","XDE0","XDE0","XDE0","r0BL","XHL0","XHL0","XHL0","r0FL",
14101410   "XWA1","XWA1","XWA1","r13L","XBC1","XBC1","XBC1","r17L","XDE1","XDE1","XDE1","r1BL","XHL1","XHL1","XHL1","r1FL",
r4962r4963
14251425};
14261426
14271427
1428static const char *s_cond[16] =
1428static const char *const s_cond[16] =
14291429{
14301430   "F","LT","LE","ULE","PE/OV","M/MI","Z","C","T","GE","GT","UGT","PO/NOV","P/PL","NZ","NC"
14311431};
src/emu/cpu/ssem/ssem.c
r4962r4963
8282                fprintf(dasm, "%02X: %08X    %s\n", i, opcode, string);
8383            }
8484
85            fclose(dasm);
85            fclose(disasm);
8686        }
8787    }
8888#endif
r4962r4963
186186        }
187187        else
188188        {
189            op = 7;
189            op = 0x0000e000;
190190        }
191191
192192        switch (INSTR)
src/emu/cpu/z80/z80.c
r4962r4963
330330static const UINT8 cc_xy[0x100] = {
331331 4, 4, 4, 4, 4, 4, 4, 4, 4,15, 4, 4, 4, 4, 4, 4,
332332 4, 4, 4, 4, 4, 4, 4, 4, 4,15, 4, 4, 4, 4, 4, 4,
333 4,14,20,10, 9, 9, 9, 4, 4,15,20,10, 9, 9, 9, 4,
333 4,14,20,10, 9, 9,11, 4, 4,15,20,10, 9, 9,11, 4,
334334 4, 4, 4, 4,23,23,19, 4, 4,15, 4, 4, 4, 4, 4, 4,
335335 4, 4, 4, 4, 9, 9,19, 4, 4, 4, 4, 4, 9, 9,19, 4,
336336 4, 4, 4, 4, 9, 9,19, 4, 4, 4, 4, 4, 9, 9,19, 4,
r4962r4963
33243324            PUSH(z80, pc);
33253325            z80->PCD = irq_vector & 0x0038;
33263326            /* RST $xx + 2 cycles */
3327            z80->icount -= z80->cc_op[z80->PCD] + z80->cc_ex[z80->PCD];
3327            z80->icount -= z80->cc_op[0xff] + z80->cc_ex[0xff];
33283328            break;
33293329      }
33303330   }
src/emu/cpu/esrip/esrip.c
r4962r4963
368368   return (val >> sel) & 1;
369369}
370370
371INLINE int check_jmp(esrip_state *cpustate, running_machine *machine, UINT8 jmp_ctrl)
371INLINE int check_jmp(esrip_state *cpustate, UINT8 jmp_ctrl)
372372{
373373   int ret = 0;
374374
r4962r4963
382382         /* T3 */      case 6: ret = BIT(cpustate->t, 2);  break;
383383         /* T4 */      case 1: ret = BIT(cpustate->t, 3);  break;
384384         /* /LBRM */   case 5: ret = !get_lbrm(cpustate);  break;
385         /* /HBLANK */ case 3: ret = !get_hblank(machine); break;
385         /* /HBLANK */ case 3: ret = !get_hblank(cpustate->device->machine); break;
386386         /* JMP */     case 7: ret = 0;                    break;
387387      }
388388
r4962r4963
17621762
17631763      if ((((cpustate->l5 >> 3) & 0x1f) & 0x18) != 0x18)
17641764      {
1765         if ( check_jmp(cpustate, device->machine, (cpustate->l5 >> 3) & 0x1f) )
1765         if ( check_jmp(cpustate, (cpustate->l5 >> 3) & 0x1f) )
17661766            next_pc = cpustate->l1;
17671767         else
17681768            next_pc = cpustate->pc + 1;
src/emu/cpu/pdp1/tx0.c
r4962r4963
127127      ;
128128}
129129
130static void tx0_init_common(int is_64kw, const device_config *device, cpu_irq_callback irqcallback)
130static void tx0_init_common(const device_config *device, cpu_irq_callback irqcallback, int is_64kw)
131131{
132132   tx0_state *cpustate = get_safe_token(device);
133133
r4962r4963
143143
144144static CPU_INIT( tx0_64kw )
145145{
146   tx0_init_common(1, device, irqcallback);
146   tx0_init_common(device, irqcallback, 1);
147147}
148148
149149static CPU_INIT( tx0_8kw)
150150{
151   tx0_init_common(0, device, irqcallback);
151   tx0_init_common(device, irqcallback, 0);
152152}
153153
154154static CPU_RESET( tx0 )
src/emu/cpu/arm7/arm7core.c
r4962r4963
507507 ***************************************************************************/
508508
509509// CPU INIT
510static void arm7_core_init(const char *cpuname, const device_config *device)
510static void arm7_core_init(const device_config *device, const char *cpuname)
511511{
512512    arm_state *cpustate = get_safe_token(device);
513513
src/emu/cpu/arm7/arm7.c
r4962r4963
8686   arm_state *cpustate = get_safe_token(device);
8787
8888   // must call core
89   arm7_core_init("arm7", device);
89   arm7_core_init(device, "arm7");
9090
9191   cpustate->irq_callback = irqcallback;
9292   cpustate->device = device;
src/emu/devtempl.h
r4962r4963
1111
1212    Typical usage is as follows:
1313
14static const char *DEVTEMPLATE_SOURCE = __FILE__;
14static const char DEVTEMPLATE_SOURCE[] = __FILE__;
1515
1616// for a primary device....
1717#define DEVTEMPLATE_ID(p,s)             p##devicenameprefix##s
r4962r4963
7575#define DT_HAS_ROM_REGION      0x0080
7676#define DT_HAS_MACHINE_CONFIG   0x0100
7777#define DT_HAS_INLINE_CONFIG   0x0200
78#define DT_HAS_CONTRACT_LIST   0x0400
7879
7980
8081/* verify core stuff is specified */
r4962r4963
168169#if ((DEVTEMPLATE_FEATURES) & DT_HAS_MACHINE_CONFIG)
169170      case DEVINFO_PTR_MACHINE_CONFIG:      info->machine_config = DEVTEMPLATE_ID(machine_config_,);      break;
170171#endif
172#if ((DEVTEMPLATE_FEATURES) & DT_HAS_CONTRACT_LIST)
173      case DEVINFO_PTR_CONTRACT_LIST:         info->contract_list = DEVTEMPLATE_ID(device_contract_list_,);   break;
174#endif
171175
172176      /* --- the following bits of info are returned as pointers to data or functions --- */
173177#if ((DEVTEMPLATE_FEATURES) & DT_HAS_START)
r4962r4963
240244#if ((DEVTEMPLATE_DERIVED_FEATURES) & DT_HAS_MACHINE_CONFIG)
241245      case DEVINFO_PTR_MACHINE_CONFIG:      info->machine_config = DEVTEMPLATE_DERIVED_ID(machine_config_,);       break;
242246#endif
247#if ((DEVTEMPLATE_DERIVED_FEATURES) & DT_HAS_CONTRACT_LIST)
248      case DEVINFO_PTR_CONTRACT_LIST:         info->contract_list = DEVTEMPLATE_DERIVED_ID(contract_list_,);          break;
249#endif
243250
244251      /* --- the following bits of info are returned as pointers to data or functions --- */
245252#if ((DEVTEMPLATE_DERIVED_FEATURES) & DT_HAS_START)
src/emu/video/tms9928a.c
r4962r4963
100100/*
101101** Forward declarations of internal functions.
102102*/
103static void draw_mode0 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
104static void draw_mode1 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
105static void draw_mode2 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
106static void draw_mode12 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
107static void draw_mode3 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
108static void draw_mode23 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
109static void draw_modebogus (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
110static void draw_sprites (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect);
103static void draw_mode0 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
104static void draw_mode1 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
105static void draw_mode2 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
106static void draw_mode12 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
107static void draw_mode3 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
108static void draw_mode23 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
109static void draw_modebogus (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
110static void draw_sprites (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect);
111111static void change_register (running_machine *machine, int reg, UINT8 data);
112112
113static void (*const ModeHandlers[])(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) = {
113static void (*const ModeHandlers[])(const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) = {
114114        draw_mode0, draw_mode1, draw_mode2,  draw_mode12,
115115        draw_mode3, draw_modebogus, draw_mode23,
116116        draw_modebogus };
r4962r4963
403403      bitmap_fill(bitmap, cliprect, screen->machine->pens[BackColour]);
404404   else
405405   {
406      (*ModeHandlers[TMS_MODE])(screen->machine, tms.tmpbmp, cliprect);
406      (*ModeHandlers[TMS_MODE])(screen, tms.tmpbmp, cliprect);
407407
408408      copybitmap(bitmap, tms.tmpbmp, 0, 0, LEFT_BORDER, TOP_BORDER, cliprect);
409409      {
r4962r4963
421421         bitmap_fill (bitmap, &rt, BackColour);
422422         rt.min_x = LEFT_BORDER+256; rt.max_x = LEFT_BORDER+256+RIGHT_BORDER-1;
423423         bitmap_fill (bitmap, &rt, BackColour);
424       }
424                }
425425      if (TMS_SPRITES_ENABLED)
426         draw_sprites(screen->machine, bitmap, cliprect);
426         draw_sprites(screen, bitmap, cliprect);
427427   }
428428
429429   return 0;
r4962r4963
449449    return b;
450450}
451451
452static void draw_mode1 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
452static void draw_mode1 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
453453    int pattern,x,y,yy,xx,name,charcode;
454454    UINT8 fg,bg,*patternptr;
455   rectangle rt;
455    rectangle rt;
456    const pen_t *pens;
456457
457    fg = machine->pens[tms.Regs[7] / 16];
458    bg = machine->pens[tms.Regs[7] & 15];
458    pens = screen->machine->pens;
459    fg = pens[tms.Regs[7] / 16];
460    bg = pens[tms.Regs[7] & 15];
459461
460462   /* colours at sides must be reset */
461463   rt.min_y = 0; rt.max_y = 191;
r4962r4963
482484    }
483485}
484486
485static void draw_mode12 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
487static void draw_mode12 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
486488    int pattern,x,y,yy,xx,name,charcode;
487489    UINT8 fg,bg,*patternptr;
488   rectangle rt;
490    const pen_t *pens;
491    rectangle rt;
489492
490    fg = machine->pens[tms.Regs[7] / 16];
491    bg = machine->pens[tms.Regs[7] & 15];
493    pens = screen->machine->pens;
494    fg = pens[tms.Regs[7] / 16];
495    bg = pens[tms.Regs[7] & 15];
492496
493497   /* colours at sides must be reset */
494498   rt.min_y = 0; rt.max_y = 191;
r4962r4963
515519    }
516520}
517521
518static void draw_mode0 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
522static void draw_mode0 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
519523    int pattern,x,y,yy,xx,name,charcode,colour;
520524    UINT8 fg,bg,*patternptr;
525    const pen_t *pens;
521526
527    pens = screen->machine->pens;
522528    name = 0;
523529    for (y=0;y<24;y++) {
524530        for (x=0;x<32;x++) {
r4962r4963
526532            name++;
527533            patternptr = tms.vMem + tms.pattern + charcode*8;
528534            colour = tms.vMem[tms.colour+charcode/8];
529            fg = machine->pens[colour / 16];
530            bg = machine->pens[colour & 15];
535            fg = pens[colour / 16];
536            bg = pens[colour & 15];
531537            for (yy=0;yy<8;yy++) {
532538                pattern=*patternptr++;
533539                for (xx=0;xx<8;xx++) {
r4962r4963
539545    }
540546}
541547
542static void draw_mode2 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
548static void draw_mode2 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
543549    int colour,name,x,y,yy,pattern,xx,charcode;
544550    UINT8 fg,bg;
551    const pen_t *pens;
545552    UINT8 *colourptr,*patternptr;
546553
554    pens = screen->machine->pens;
547555    name = 0;
548556    for (y=0;y<24;y++) {
549557        for (x=0;x<32;x++) {
r4962r4963
556564            for (yy=0;yy<8;yy++) {
557565                pattern = *patternptr++;
558566                colour = *colourptr++;
559                fg = machine->pens[colour / 16];
560                bg = machine->pens[colour & 15];
567                fg = pens[colour / 16];
568                bg = pens[colour & 15];
561569                for (xx=0;xx<8;xx++) {
562570               *BITMAP_ADDR16(bitmap, y*8+yy, x*8+xx) = (pattern & 0x80) ? fg : bg;
563571                    pattern *= 2;
r4962r4963
567575    }
568576}
569577
570static void draw_mode3 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
578static void draw_mode3 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
571579    int x,y,yy,yyy,name,charcode;
572580    UINT8 fg,bg,*patternptr;
581    const pen_t *pens;
573582
583    pens = screen->machine->pens;
574584    name = 0;
575585    for (y=0;y<24;y++) {
576586        for (x=0;x<32;x++) {
r4962r4963
578588            name++;
579589            patternptr = tms.vMem+tms.pattern+charcode*8+(y&3)*2;
580590            for (yy=0;yy<2;yy++) {
581                fg = machine->pens[(*patternptr / 16)];
582                bg = machine->pens[((*patternptr++) & 15)];
591                fg = pens[(*patternptr / 16)];
592                bg = pens[((*patternptr++) & 15)];
583593                for (yyy=0;yyy<4;yyy++) {
584594         *BITMAP_ADDR16(bitmap, y*8+yy*4+yyy, x*8+0) = fg;
585595         *BITMAP_ADDR16(bitmap, y*8+yy*4+yyy, x*8+1) = fg;
r4962r4963
595605    }
596606}
597607
598static void draw_mode23 (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
608static void draw_mode23 (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
599609    int x,y,yy,yyy,name,charcode;
600610    UINT8 fg,bg,*patternptr;
611    const pen_t *pens;
601612
613    pens = screen->machine->pens;
602614    name = 0;
603615    for (y=0;y<24;y++) {
604616        for (x=0;x<32;x++) {
r4962r4963
607619            patternptr = tms.vMem + tms.pattern +
608620                ((charcode+(y&3)*2+(y/8)*256)&tms.patternmask)*8;
609621            for (yy=0;yy<2;yy++) {
610                fg = machine->pens[(*patternptr / 16)];
611                bg = machine->pens[((*patternptr++) & 15)];
622                fg = pens[(*patternptr / 16)];
623                bg = pens[((*patternptr++) & 15)];
612624                for (yyy=0;yyy<4;yyy++) {
613625         *BITMAP_ADDR16(bitmap, y*8+yy*4+yyy, x*8+0) = fg;
614626         *BITMAP_ADDR16(bitmap, y*8+yy*4+yyy, x*8+1) = fg;
r4962r4963
624636    }
625637}
626638
627static void draw_modebogus (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
639static void draw_modebogus (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
628640    UINT8 fg,bg;
629641    int x,y,n,xx;
642    const pen_t *pens;
630643
631    fg = machine->pens[tms.Regs[7] / 16];
632    bg = machine->pens[tms.Regs[7] & 15];
644    pens = screen->machine->pens;
645    fg = pens[tms.Regs[7] / 16];
646    bg = pens[tms.Regs[7] & 15];
633647
634648    for (y=0;y<192;y++) {
635649        xx=0;
r4962r4963
651665**
652666** This code should be optimized. One day.
653667*/
654static void draw_sprites (running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) {
668static void draw_sprites (const device_config *screen, bitmap_t *bitmap, const rectangle *cliprect) {
655669    UINT8 *attributeptr,*patternptr,c;
656670    int p,x,y,size,i,j,large,yy,xx,limit[192],
657671        illegalsprite,illegalspriteline;
658672    UINT16 line,line2;
673    const pen_t *pens;
659674
675    pens = screen->machine->pens;
660676    attributeptr = tms.vMem + tms.spriteattribute;
661677    size = (tms.Regs[1] & 2) ? 16 : 8;
662678    large = (int)(tms.Regs[1] & 1);
r4962r4963
710726                            }
711727                            if (c && ! (tms.dBackMem[yy*256+xx] & 0x02))
712728                            {
713                               tms.dBackMem[yy*256+xx] |= 0x02;
714                               if (bitmap)
715                                  *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = machine->pens[c];
716                     }
729                                tms.dBackMem[yy*256+xx] |= 0x02;
730                                if (bitmap)
731                                    *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = pens[c];
732                            }
717733                        }
718734                    }
719735                    line *= 2;
r4962r4963
747763                                    } else {
748764                                        tms.dBackMem[yy*256+xx] = 0x01;
749765                                    }
750                                  if (c && ! (tms.dBackMem[yy*256+xx] & 0x02))
751                                  {
752                                     tms.dBackMem[yy*256+xx] |= 0x02;
766                                    if (c && ! (tms.dBackMem[yy*256+xx] & 0x02))
767                                    {
768                                        tms.dBackMem[yy*256+xx] |= 0x02;
753769                                        if (bitmap)
754                                        *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = machine->pens[c];
755                                  }
770                                            *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = pens[c];
771                                    }
756772                                }
757773                                if (((xx+1) >=0) && ((xx+1) < 256)) {
758774                                    if (tms.dBackMem[yy*256+xx+1]) {
r4962r4963
760776                                    } else {
761777                                        tms.dBackMem[yy*256+xx+1] = 0x01;
762778                                    }
763                                  if (c && ! (tms.dBackMem[yy*256+xx+1] & 0x02))
764                                  {
765                                     tms.dBackMem[yy*256+xx+1] |= 0x02;
779                                    if (c && ! (tms.dBackMem[yy*256+xx+1] & 0x02))
780                                    {
781                                        tms.dBackMem[yy*256+xx+1] |= 0x02;
766782                                        if (bitmap)
767                                        *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx+1) = machine->pens[c];
768                           }
783                                            *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx+1) = pens[c];
784                                    }
769785                                }
770786                            }
771787                            line *= 2;
src/emu/video/tms9927.h
r4962r4963
2626   MDRV_DEVICE_CLOCK(_clock) \
2727   MDRV_DEVICE_CONFIG(_config)
2828
29#define MDRV_TMS9927_REMOVE(_tag) \
30   MDRV_DEVICE_REMOVE(_tag)
3129
3230
33
3431/* interface */
3532typedef struct _tms9927_interface tms9927_interface;
3633struct _tms9927_interface
src/emu/video/voodoo.c
r4962r4963
46594659   }
46604660}
46614661
4662static const char *DEVTEMPLATE_SOURCE = __FILE__;
4662static const char DEVTEMPLATE_SOURCE[] = __FILE__;
46634663
46644664#define DEVTEMPLATE_ID(p,s)      p##voodoo##s
46654665#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET | DT_HAS_STOP | DT_HAS_INLINE_CONFIG
src/emu/video/voodoo.h
r4962r4963
8888#define MDRV_3DFX_VOODOO_MODIFY(_tag) \
8989   MDRV_DEVICE_MODIFY(_tag)
9090
91#define MDRV_3DFX_VOODOO_REMOVE(_tag) \
92   MDRV_DEVICE_REMOVE(_tag)
9391
9492
95
9693/***************************************************************************
9794    FUNCTION PROTOTYPES
9895***************************************************************************/
src/emu/video/mc6845.h
r4962r4963
2424   MDRV_DEVICE_ADD(_tag, _variant, _clock) \
2525   MDRV_DEVICE_CONFIG(_config)
2626
27#define MDRV_MC6845_REMOVE(_tag) \
28   MDRV_DEVICE_REMOVE(_tag)
2927
3028
31
3229/* callback definitions */
3330typedef void * (*mc6845_begin_update_func)(const device_config *device, bitmap_t *bitmap, const rectangle *cliprect);
3431#define MC6845_BEGIN_UPDATE(name)   void *name(const device_config *device, bitmap_t *bitmap, const rectangle *cliprect)
src/emu/watchdog.c
r4962r4963
11/***************************************************************************
22
3    watchdog.h
3    watchdog.c
44
55    Watchdog handling
66
r4962r4963
1313
1414
1515
16
1716/***************************************************************************
1817    GLOBAL VARIABLES
1918***************************************************************************/
src/emu/video.c
r4962r4963
13431343static TIMER_CALLBACK( vblank_begin_callback )
13441344{
13451345   int i;
1346   device_config *screen = (device_config *)ptr;
1346   const device_config *screen = (const device_config *)ptr;
13471347   screen_state *state = get_safe_token(screen);
13481348
13491349   /* reset the starting VBLANK time */
r4962r4963
13631363
13641364   /* if no VBLANK period, call the VBLANK end callback immedietely, otherwise reset the timer */
13651365   if (state->vblank_period == 0)
1366      vblank_end_callback(machine, screen, 0);
1366      vblank_end_callback(machine, ptr, 0);
13671367   else
13681368      timer_adjust_oneshot(state->vblank_end_timer, video_screen_get_time_until_vblank_end(screen), 0);
13691369}
src/emu/video.h
r4962r4963
9999   MDRV_DEVICE_ADD(_tag, VIDEO_SCREEN, 0) \
100100   MDRV_DEVICE_CONFIG_DATA32(screen_config, type, SCREEN_TYPE_##_type)
101101
102#define MDRV_SCREEN_REMOVE(_tag) \
103   MDRV_DEVICE_REMOVE(_tag)
104
105102#define MDRV_SCREEN_MODIFY(_tag) \
106103   MDRV_DEVICE_MODIFY(_tag)
107104
src/emu/devintrf.c
r4962r4963
246246}
247247
248248
249/*-------------------------------------------------
250    device_get_contract - find a given contract
251    on a device
252-------------------------------------------------*/
249253
254const device_contract *device_get_contract(const device_config *device, const char *name)
255{
256   const device_contract *contract = (const device_contract *)device_get_info_ptr(device, DEVINFO_PTR_CONTRACT_LIST);
257
258   /* if no contracts, obviously we don't have it */
259   if (contract == NULL)
260      return NULL;
261
262   /* scan forward through the array looking for a match */
263   for ( ; contract->name != NULL; contract++)
264      if (strcmp(name, contract->name) == 0)
265         return contract;
266
267   return NULL;
268}
269
270
271
250272/***************************************************************************
251273    TYPE-BASED DEVICE ACCESS
252274***************************************************************************/
src/emu/machine/timekpr.h
r4962r4963
2424#define MDRV_M48T02_ADD(_tag) \
2525   MDRV_DEVICE_ADD(_tag, M48T02, 0)
2626
27#define MDRV_M48T02_REMOVE(_tag) \
28   MDRV_DEVICE_REMOVE(_tag)
2927
30
3128#define M48T35 DEVICE_GET_INFO_NAME(m48t35)
3229DEVICE_GET_INFO(m48t35);
3330
3431#define MDRV_M48T35_ADD(_tag) \
3532   MDRV_DEVICE_ADD(_tag, M48T35, 0)
3633
37#define MDRV_M48T35_REMOVE(_tag) \
38   MDRV_DEVICE_REMOVE(_tag)
3934
40
4135#define M48T58 DEVICE_GET_INFO_NAME(m48t58)
4236DEVICE_GET_INFO(m48t58);
4337
4438#define MDRV_M48T58_ADD(_tag) \
4539   MDRV_DEVICE_ADD(_tag, M48T58, 0)
4640
47#define MDRV_M48T58_REMOVE(_tag) \
48   MDRV_DEVICE_REMOVE(_tag)
4941
50
5142#define MK48T08 DEVICE_GET_INFO_NAME(mk48t08)
5243DEVICE_GET_INFO(mk48t08);
5344
5445#define MDRV_MK48T08_ADD(_tag) \
5546   MDRV_DEVICE_ADD(_tag, MK48T08, 0)
5647
57#define MDRV_MK48T08_REMOVE(_tag) \
58   MDRV_DEVICE_REMOVE(_tag)
5948
60
6149/* memory handlers */
6250
6351WRITE8_DEVICE_HANDLER( timekeeper_w );
src/emu/machine/6526cia.h
r4962r4963
2525   MDRV_DEVICE_ADD(_tag, _variant, _clock) \
2626   MDRV_DEVICE_CONFIG(_config)
2727
28#define MDRV_CIA6526_REMOVE(_tag) \
29   MDRV_DEVICE_REMOVE(_tag)
30
3128#define MDRV_CIA8520_ADD(_tag, _clock, _config) \
3229   MDRV_DEVICE_ADD(_tag, CIA8520, _clock) \
3330   MDRV_DEVICE_CONFIG(_config)
3431
35#define MDRV_CIA8520_REMOVE(_tag) \
36   MDRV_DEVICE_REMOVE(_tag)
3732
3833
39
4034/***************************************************************************
4135    TYPE DEFINITIONS
4236***************************************************************************/
src/emu/machine/74123.h
r4962r4963
5252   MDRV_DEVICE_ADD(_tag, TTL74123, 0) \
5353   MDRV_DEVICE_CONFIG(_config)
5454
55#define MDRV_TTL74123_REMOVE(_tag) \
56   MDRV_DEVICE_REMOVE(_tag)
5755
58
5956/* constants for the different ways the cap/res can be connected.
6057   This determines the formula for calculating the pulse width */
6158#define TTL74123_NOT_GROUNDED_NO_DIODE      (1)
src/emu/machine/adc1213x.c
r4962r4963
354354    device definition
355355-------------------------------------------------*/
356356
357static const char *DEVTEMPLATE_SOURCE = __FILE__;
357static const char DEVTEMPLATE_SOURCE[] = __FILE__;
358358
359359#define DEVTEMPLATE_ID(p,s)      p##adc12138##s
360360#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/6821pia.c
r4962r4963
13221322    device definition
13231323-------------------------------------------------*/
13241324
1325static const char *DEVTEMPLATE_SOURCE = __FILE__;
1325static const char DEVTEMPLATE_SOURCE[] = __FILE__;
13261326
13271327#define DEVTEMPLATE_ID(p,s)            p##pia6821##s
13281328#define DEVTEMPLATE_FEATURES         DT_HAS_START | DT_HAS_RESET
src/emu/machine/idectrl.h
r4962r4963
4949   MDRV_DEVICE_CONFIG_DATAPTR(ide_config, bmcpu, _cpu) \
5050   MDRV_DEVICE_CONFIG_DATA32(ide_config, bmspace, ADDRESS_SPACE_##_space)
5151
52#define MDRV_IDE_CONTROLLER_REMOVE(_tag) \
53   MDRV_DEVICE_REMOVE(_tag)
5452
5553
56
5754/***************************************************************************
5855    FUNCTION PROTOTYPES
5956***************************************************************************/
src/emu/machine/adc1213x.h
r4962r4963
2424   MDRV_DEVICE_ADD(_tag, ADC12130, 0) \
2525   MDRV_DEVICE_CONFIG(_config)
2626
27#define MDRV_ADC12130_REMOVE(_tag) \
28   MDRV_DEVICE_REMOVE(_tag)
29
3027#define MDRV_ADC12132_ADD(_tag, _config) \
3128   MDRV_DEVICE_ADD(_tag, ADC12132, 0) \
3229   MDRV_DEVICE_CONFIG(_config)
3330
34#define MDRV_ADC12132_REMOVE(_tag) \
35   MDRV_DEVICE_REMOVE(_tag)
36
3731#define MDRV_ADC12138_ADD(_tag, _config) \
3832   MDRV_DEVICE_ADD(_tag, ADC12138, 0) \
3933   MDRV_DEVICE_CONFIG(_config)
4034
41#define MDRV_ADC12138_REMOVE(_tag) \
42   MDRV_DEVICE_REMOVE(_tag)
4335
44
4536/***************************************************************************
4637    TYPE DEFINITIONS
4738***************************************************************************/
src/emu/machine/6821pia.h
r4962r4963
114114   MDRV_DEVICE_MODIFY(_tag) \
115115   MDRV_DEVICE_CONFIG(_intrf)
116116
117#define MDRV_PIA6821_REMOVE(_tag) \
118   MDRV_DEVICE_REMOVE(_tag)
119
120117#define MDRV_PIA6822_ADD(_tag, _intrf) \
121118   MDRV_DEVICE_ADD(_tag, PIA6822, 0) \
122119   MDRV_DEVICE_CONFIG(_intrf)
r4962r4963
125122   MDRV_DEVICE_MODIFY(_tag) \
126123   MDRV_DEVICE_CONFIG(_intrf)
127124
128#define MDRV_PIA6822_REMOVE(_tag) \
129   MDRV_DEVICE_REMOVE(_tag)
130
131125#endif /* __6821NEW_H__ */
src/emu/machine/68681.h
r4962r4963
1717   MDRV_DEVICE_ADD(_tag, DUART68681, _clock) \
1818   MDRV_DEVICE_CONFIG(_config)
1919
20#define MDRV_DUART_68681_REMOVE(_tag) \
21   MDRV_DEVICE_REMOVE(_tag)
2220
23
2421READ8_DEVICE_HANDLER(duart68681_r);
2522WRITE8_DEVICE_HANDLER(duart68681_w);
2623
src/emu/machine/6532riot.h
r4962r4963
3737   MDRV_DEVICE_ADD(_tag, RIOT6532, _clock) \
3838   MDRV_DEVICE_CONFIG(_intrf)
3939
40#define MDRV_RIOT6532_REMOVE(_tag) \
41   MDRV_DEVICE_REMOVE(_tag)
4240
4341
44
4542/***************************************************************************
4643    FUNCTION PROTOTYPES
4744***************************************************************************/
src/emu/machine/6522via.h
r4962r4963
2727   MDRV_DEVICE_ADD(_tag, VIA6522, _clock) \
2828   MDRV_DEVICE_CONFIG(_intrf)
2929
30#define MDRV_VIA6522_REMOVE(_tag) \
31   MDRV_DEVICE_REMOVE(_tag)
32
3330#define   VIA_PB       0
3431#define   VIA_PA       1
3532#define   VIA_DDRB    2
r4962r4963
8077READ8_DEVICE_HANDLER(via_r);
8178WRITE8_DEVICE_HANDLER(via_w);
8279
83READ8_DEVICE_HANDLER(via_porta_r);
8480WRITE8_DEVICE_HANDLER(via_porta_w);
8581
8682READ8_DEVICE_HANDLER(via_portb_r);
src/emu/machine/6840ptm.c
r4962r4963
839839    device definition
840840-------------------------------------------------*/
841841
842static const char *DEVTEMPLATE_SOURCE = __FILE__;
842static const char DEVTEMPLATE_SOURCE[] = __FILE__;
843843
844844#define DEVTEMPLATE_ID(p,s)      p##ptm6840##s
845845#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/6840ptm.h
r4962r4963
2121   MDRV_DEVICE_ADD(_tag, PTM6840, 0) \
2222   MDRV_DEVICE_CONFIG(_config)
2323
24#define MDRV_PTM6840_REMOVE(_tag) \
25   MDRV_DEVICE_REMOVE(_tag)
2624
2725/***************************************************************************
2826    TYPE DEFINITIONS
src/emu/machine/pd4990a.c
r4962r4963
104104    upd4990a_increment_month
105105-------------------------------------------------*/
106106
107void upd4990a_increment_month( const device_config *device )
107static void upd4990a_increment_month( const device_config *device )
108108{
109109   upd4990a_state *upd4990a = get_safe_token(device);
110110
r4962r4963
127127    upd4990a_increment_day
128128-------------------------------------------------*/
129129
130void upd4990a_increment_day( const device_config *device )
130static void upd4990a_increment_day( const device_config *device )
131131{
132132   upd4990a_state *upd4990a = get_safe_token(device);
133133   int real_year;
r4962r4963
526526    device definition
527527-------------------------------------------------*/
528528
529static const char *DEVTEMPLATE_SOURCE = __FILE__;
529static const char DEVTEMPLATE_SOURCE[] = __FILE__;
530530
531531#define DEVTEMPLATE_ID(p,s)      p##upd4990a##s
532532#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/pd4990a.h
r4962r4963
1919#define MDRV_UPD4990A_ADD(_tag) \
2020   MDRV_DEVICE_ADD(_tag, UPD4990A, 0)
2121
22#define MDRV_UPD4990A_REMOVE(_tag) \
23   MDRV_DEVICE_REMOVE(_tag)
2422
25
2623/***************************************************************************
2724    PROTOTYPES
2825***************************************************************************/
src/emu/machine/z80dma.h
r4962r4963
1313   MDRV_DEVICE_ADD(_tag, Z80DMA, _clock) \
1414   MDRV_DEVICE_CONFIG(_config)
1515
16#define MDRV_Z80DMA_REMOVE(_tag) \
17   MDRV_DEVICE_REMOVE(_tag)
18
1916typedef struct _z80dma_interface z80dma_interface;
2017struct _z80dma_interface
2118{
src/emu/machine/ds1302.c
r4962r4963
219219    DEVICE_GET_INFO( ds1302 )
220220-------------------------------------------------*/
221221
222static const char *DEVTEMPLATE_SOURCE = __FILE__;
222static const char DEVTEMPLATE_SOURCE[] = __FILE__;
223223
224224#define DEVTEMPLATE_ID(p,s)      p##ds1302##s
225225#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/rp5h01.c
r4962r4963
211211    device definition
212212-------------------------------------------------*/
213213
214static const char *DEVTEMPLATE_SOURCE = __FILE__;
214static const char DEVTEMPLATE_SOURCE[] = __FILE__;
215215
216216#define DEVTEMPLATE_ID(p,s)      p##rp5h01##s
217217#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/8255ppi.h
r4962r4963
4343   MDRV_DEVICE_MODIFY(_tag) \
4444   MDRV_DEVICE_CONFIG(_intrf)
4545
46#define MDRV_PPI8255_REMOVE(_tag) \
47   MDRV_DEVICE_REMOVE(_tag)
4846
4947
50
5148/* device interface */
5249DEVICE_GET_INFO(ppi8255);
5350
src/emu/machine/ds1302.h
r4962r4963
1818#define MDRV_DS1302_ADD(_tag) \
1919   MDRV_DEVICE_ADD(_tag, DS1302, 0)
2020
21#define MDRV_DS1302_REMOVE(_tag) \
22   MDRV_DEVICE_REMOVE(_tag)
2321
24
2522/***************************************************************************
2623    PROTOTYPES
2724***************************************************************************/
src/emu/machine/rp5h01.h
r4962r4963
1818   MDRV_DEVICE_ADD(_tag, RP5H01, 0) \
1919   MDRV_DEVICE_CONFIG(_config)
2020
21#define MDRV_RP5H01_REMOVE(_tag) \
22   MDRV_DEVICE_REMOVE(_tag)
2321
24
2522/***************************************************************************
2623    TYPE DEFINITIONS
2724***************************************************************************/
src/emu/machine/smc91c9x.h
r4962r4963
3737   MDRV_DEVICE_ADD(_tag, SMC91C96, 0) \
3838   MDRV_DEVICE_CONFIG_DATAPTR(smc91c9x_config, interrupt, _callback)
3939
40#define MDRV_SMC91C94_REMOVE(_tag) \
41   MDRV_DEVICE_REMOVE(_tag)
4240
43#define MDRV_SMC91C96_REMOVE(_tag) \
44   MDRV_DEVICE_REMOVE(_tag)
4541
46
47
4842/***************************************************************************
4943    FUNCTION PROTOTYPES
5044***************************************************************************/
src/emu/machine/8257dma.h
r4962r4963
1313   MDRV_DEVICE_ADD(_tag, DMA8257, _clock) \
1414   MDRV_DEVICE_CONFIG(_config)
1515
16#define MDRV_DMA8257_REMOVE(_tag) \
17   MDRV_DEVICE_REMOVE(_tag)
1816
19
2017#define DMA8257_STATUS_UPDATE      0x10
2118#define DMA8257_STATUS_TC_CH3      0x08
2219#define DMA8257_STATUS_TC_CH2      0x04
src/emu/machine/z80pio.h
r4962r4963
6262   MDRV_DEVICE_ADD(_tag, Z80PIO, 0) \
6363   MDRV_DEVICE_CONFIG(_intrf)
6464
65#define MDRV_Z80PIO_REMOVE(_tag) \
66   MDRV_DEVICE_REMOVE(_tag)
6765
6866
69
7067/***************************************************************************
7168    CONTROL REGISTER READ/WRITE
7269***************************************************************************/
src/emu/machine/adc083x.c
r4962r4963
492492    device definition
493493-------------------------------------------------*/
494494
495static const char *DEVTEMPLATE_SOURCE = __FILE__;
495static const char DEVTEMPLATE_SOURCE[] = __FILE__;
496496
497497#define DEVTEMPLATE_ID(p,s)      p##adc0831##s
498498#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/i2cmem.c
r4962r4963
406406   return 0;
407407}
408408
409static void nvram_handler_i2cmem( int chip, running_machine *machine, mame_file *file, int read_or_write )
409static void nvram_handler_i2cmem( running_machine *machine, mame_file *file, int read_or_write, int chip )
410410{
411411   struct i2cmem_chip *c;
412412
r4962r4963
428428   }
429429}
430430
431NVRAM_HANDLER( i2cmem_0 ) { nvram_handler_i2cmem( 0, machine, file, read_or_write ); }
431NVRAM_HANDLER( i2cmem_0 ) { nvram_handler_i2cmem( machine, file, read_or_write, 0 ); }
src/emu/machine/adc083x.h
r4962r4963
4040   MDRV_DEVICE_ADD(_tag, ADC0831, 0) \
4141   MDRV_DEVICE_CONFIG(_config)
4242
43#define MDRV_ADC0831_REMOVE(_tag) \
44   MDRV_DEVICE_REMOVE(_tag)
45
4643#define MDRV_ADC0832_ADD(_tag, _config) \
4744   MDRV_DEVICE_ADD(_tag, ADC0832, 0) \
4845   MDRV_DEVICE_CONFIG(_config)
4946
50#define MDRV_ADC0832_REMOVE(_tag) \
51   MDRV_DEVICE_REMOVE(_tag)
52
5347#define MDRV_ADC0834_ADD(_tag, _config) \
5448   MDRV_DEVICE_ADD(_tag, ADC0834, 0) \
5549   MDRV_DEVICE_CONFIG(_config)
5650
57#define MDRV_ADC0834_REMOVE(_tag) \
58   MDRV_DEVICE_REMOVE(_tag)
59
6051#define MDRV_ADC0838_ADD(_tag, _config) \
6152   MDRV_DEVICE_ADD(_tag, ADC0838, 0) \
6253   MDRV_DEVICE_CONFIG(_config)
6354
64#define MDRV_ADC0838_REMOVE(_tag) \
65   MDRV_DEVICE_REMOVE(_tag)
6655
67
6856/***************************************************************************
6957    TYPE DEFINITIONS
7058***************************************************************************/
src/emu/machine/eepromdev.h
r4962r4963
5353   MDRV_DEVICE_CONFIG_DATAPTR(eeprom_config, default_data, &_data) \
5454   MDRV_DEVICE_CONFIG_DATA32(eeprom_config, default_data_size, _size)
5555
56#define MDRV_EEPROM_REMOVE(_tag) \
57   MDRV_DEVICE_REMOVE(_tag, EEPROM)
5856
59
6057void eepromdev_write_bit( const device_config *device, int bit );
6158int eepromdev_read_bit( const device_config *device );
6259//CUSTOM_INPUT( eeprom_bit_r );
src/emu/machine/i8243.h
r4962r4963
4242   MDRV_DEVICE_CONFIG_DATAPTR(i8243_config, readhandler, _read) \
4343   MDRV_DEVICE_CONFIG_DATAPTR(i8243_config, writehandler, _write)
4444
45#define MDRV_I8243_REMOVE(_tag) \
46   MDRV_DEVICE_REMOVE(_tag)
4745
4846
49
5047/***************************************************************************
5148    FUNCTION PROTOTYPES
5249***************************************************************************/
src/emu/machine/msm6242.h
r4962r4963
1818#define MDRV_MSM6242_ADD(_tag) \
1919   MDRV_DEVICE_ADD(_tag, MSM6242, 0)
2020
21#define MDRV_MSM6242_REMOVE(_tag) \
22   MDRV_DEVICE_REMOVE(_tag)
2321
24
2522/* device interface */
2623DEVICE_GET_INFO( msm6242 );
2724
src/emu/machine/mb3773.c
r4962r4963
106106    DEVICE_GET_INFO( mb3773 )
107107-------------------------------------------------*/
108108
109static const char *DEVTEMPLATE_SOURCE = __FILE__;
109static const char DEVTEMPLATE_SOURCE[] = __FILE__;
110110
111111#define DEVTEMPLATE_ID(p,s)      p##mb3773##s
112112#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/6850acia.h
r4962r4963
3030   MDRV_DEVICE_ADD(_tag, ACIA6850, 0) \
3131   MDRV_DEVICE_CONFIG(_config)
3232
33#define MDRV_ACIA6850_REMOVE(_tag) \
34   MDRV_DEVICE_REMOVE(_tag)
35
3633#define ACIA6850_INTERFACE(_name) \
3734   const acia6850_interface(_name) =
3835
36
3937/***************************************************************************
4038    TYPE DEFINITIONS
4139***************************************************************************/
src/emu/machine/mb3773.h
r4962r4963
1919#define MDRV_MB3773_ADD(_tag) \
2020   MDRV_DEVICE_ADD(_tag, MB3773, 0)
2121
22#define MDRV_MB3773_REMOVE(_tag) \
23   MDRV_DEVICE_REMOVE(_tag)
2422
25
2623/***************************************************************************
2724    PROTOTYPES
2825***************************************************************************/
src/emu/machine/upd4701.c
r4962r4963
306306    device definition
307307-------------------------------------------------*/
308308
309static const char *DEVTEMPLATE_SOURCE = __FILE__;
309static const char DEVTEMPLATE_SOURCE[] = __FILE__;
310310
311311#define DEVTEMPLATE_ID(p,s)      p##upd4701##s
312312#define DEVTEMPLATE_FEATURES   DT_HAS_START | DT_HAS_RESET
src/emu/machine/laserdsc.h
r4962r4963
122122   MDRV_DEVICE_CONFIG_DATAFP32(laserdisc_config, overscalex, _scalex, 24) \
123123   MDRV_DEVICE_CONFIG_DATAFP32(laserdisc_config, overscaley, _scaley, 24)
124124
125#define MDRV_LASERDISC_REMOVE(_tag) \
126   MDRV_DEVICE_REMOVE(_tag)
127125
128
129126/* use these to add laserdisc screens with proper video update parameters */
130127#define MDRV_LASERDISC_SCREEN_ADD_NTSC(_tag, _overlayformat) \
131128   MDRV_VIDEO_ATTRIBUTES(VIDEO_SELF_RENDER) \
src/emu/machine/upd4701.h
r4962r4963
1818#define MDRV_UPD4701_ADD(_tag) \
1919   MDRV_DEVICE_ADD(_tag, UPD4701, 0)
2020
21#define MDRV_UPD4701_REMOVE(_tag) \
22   MDRV_DEVICE_REMOVE(_tag)
2321
24
2522/***************************************************************************
2623    PROTOTYPES
2724***************************************************************************/
src/emu/machine/x2212.h
r4962r4963
2020#define MDRV_X2212_ADD(_tag) \
2121   MDRV_DEVICE_ADD(_tag, X2212, 0)
2222
23#define MDRV_X2212_REMOVE(_tag) \
24   MDRV_DEVICE_REMOVE(_tag)
2523
26
2724extern void x2212_write( const device_config *device, int offset, int data );
2825extern int x2212_read( const device_config *device, int offset );
2926extern void x2212_store( const device_config *device, int store );
src/emu/machine/at28c16.h
r4962r4963
2121   MDRV_DEVICE_ADD(_tag, AT28C16, 0) \
2222   MDRV_DEVICE_CONFIG_DATAPTR(at28c16_config, id, _id)
2323
24#define MDRV_AT28C16_REMOVE(_tag) \
25   MDRV_DEVICE_REMOVE(_tag)
2624
27
2825extern void at28c16_a9_12v( const device_config *device, int a9_12v );
2926extern void at28c16_oe_12v( const device_config *device, int a9_12v );
3027
src/emu/machine/latch8.h
r4962r4963
7979   MDRV_DEVICE_CONFIG_DATA32_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, from_bit, _from_bit) \
8080   MDRV_DEVICE_CONFIG_DATAPTR_ARRAY_MEMBER(latch8_config, devread, _bit, latch8_devread, read_handler, _handler) \
8181
82/* remove device */
83#define MDRV_LATCH8_REMOVE(_tag) \
84   MDRV_DEVICE_REMOVE(_tag)
85
8682/* Accessor macros */
8783
8884#define AM_LATCH8_READ(_tag) \
src/emu/machine/cdp1852.h
r4962r4963
3939   MDRV_DEVICE_ADD(_tag, CDP1852, _clock) \
4040   MDRV_DEVICE_CONFIG(_config)
4141
42#define MDRV_CDP1852_REMOVE(_tag) \
43   MDRV_DEVICE_REMOVE(_tag)
44
4542#define CDP1852_INTERFACE(_name) \
4643   const cdp1852_interface (_name)=
4744
src/emu/machine/z80sio.h
r4962r4963
3636   MDRV_DEVICE_ADD(_tag, Z80SIO, _clock) \
3737   MDRV_DEVICE_CONFIG(_intrf)
3838
39#define MDRV_Z80SIO_REMOVE(_tag) \
40   MDRV_DEVICE_REMOVE(_tag)
4139
4240
43
4441/***************************************************************************
4542    CONTROL REGISTER READ/WRITE
4643***************************************************************************/
src/emu/machine/i2cmemdev.h
r4962r4963
3535   MDRV_DEVICE_CONFIG_DATA32(i2cmem_config, data_size, _data_size) \
3636   MDRV_DEVICE_CONFIG_DATAPTR(i2cmem_config, data, _data)
3737
38#define MDRV_I2CMEM_REMOVE(_tag) \
39   MDRV_DEVICE_REMOVE(_tag, I2CMEM)
4038
41
4239void i2cmemdev_write( const device_config *device, int line, int data );
4340int i2cmemdev_read( const device_config *device, int line );
4441void i2cmemdev_set_read_mode( const device_config *device, int mode );
src/emu/machine/z80ctc.h
r4962r4963
4646   MDRV_DEVICE_ADD(_tag, Z80CTC, _clock) \
4747   MDRV_DEVICE_CONFIG(_intrf)
4848
49#define MDRV_Z80CTC_REMOVE(_tag) \
50   MDRV_DEVICE_REMOVE(_tag)
5149
5250
53
5451/***************************************************************************
5552    INITIALIZATION/CONFIGURATION
5653***************************************************************************/
src/emu/devintrf.h
r4962r4963
6060
6161      DEVINFO_PTR_ROM_REGION = DEVINFO_PTR_FIRST,      /* R/O: pointer to device-specific ROM region */
6262      DEVINFO_PTR_MACHINE_CONFIG,                  /* R/O: pointer to device-specific machine config */
63      DEVINFO_PTR_CONTRACT_LIST,                  /* R/O: pointer to list of supported device contracts */
6364
6465   DEVINFO_PTR_CLASS_SPECIFIC = 0x14000,            /* R/W: device-specific values start here */
6566   DEVINFO_PTR_DEVICE_SPECIFIC = 0x18000,            /* R/W: device-specific values start here */
r4962r4963
126127
127128#define DEVICE_VALIDITY_CHECK_NAME(name)   device_validity_check_##name
128129#define DEVICE_VALIDITY_CHECK(name)         int DEVICE_VALIDITY_CHECK_NAME(name)(const game_driver *driver, const device_config *device)
129#define DEVICE_VALIDITY_CHECK_CALL(name)   DEVICE_VALIDITY_CHECK(name)(driver, device)
130#define DEVICE_VALIDITY_CHECK_CALL(name)   DEVICE_VALIDITY_CHECK_NAME(name)(driver, device)
130131
131132#define DEVICE_CUSTOM_CONFIG_NAME(name)      device_custom_config_##name
132133#define DEVICE_CUSTOM_CONFIG(name)         const union _machine_config_token *DEVICE_CUSTOM_CONFIG_NAME(name)(const device_config *device, UINT32 entrytype, const union _machine_config_token *tokens)
133#define DEVICE_CUSTOM_CONFIG_CALL(name)      DEVICE_CUSTOM_CONFIG(name)(device, entrytype, tokens)
134#define DEVICE_CUSTOM_CONFIG_CALL(name)      DEVICE_CUSTOM_CONFIG_NAME(name)(device, entrytype, tokens)
134135
135136
137/* device contract lists */
138#define DEVICE_CONTRACT_LIST_NAME(name)      device_contract_list_##name
139
140#define DEVICE_CONTRACT_LIST_START(name)   static const device_contract DEVICE_CONTRACT_LIST_NAME(name)[] = {
141#define DEVICE_CONTRACT_ENTRY(type, var)   { type, sizeof(var), &(var) },
142#define DEVICE_CONTRACT_LIST_END         { NULL, 0, NULL } };
143
144
145/* macro for specifying a clock derived from an owning device */
136146#define DERIVED_CLOCK(num, den)      (0xff000000 | ((num) << 12) | ((den) << 0))
137147
138148
r4962r4963
181191typedef struct _device_config device_config;
182192
183193
194/* a device contract */
195typedef struct _device_contract device_contract;
196struct _device_contract
197{
198   const char *   name;         /* name of this contract */
199   UINT32         size;         /* size of this contract in bytes */
200   const void *   contract;      /* pointer to the contract struct itself */
201};
202
203
184204/* device interface function types */
185205typedef void (*device_get_info_func)(const device_config *device, UINT32 state, deviceinfo *info);
186206typedef void (*device_start_func)(const device_config *device);
r4962r4963
213233   device_nvram_func      nvram;               /* DEVINFO_FCT_NVRAM */
214234   const rom_entry *      romregion;            /* DEVINFO_PTR_ROM_REGION */
215235   const union _machine_config_token *machine_config;/* DEVINFO_PTR_MACHINE_CONFIG */
236   const device_contract *   contract_list;         /* DEVINFO_PTR_CONTRACT_LIST */
216237};
217238
218239
r4962r4963
270291/* build a tag with the same device prefix as the source tag*/
271292const char *device_inherit_tag(astring *dest, const char *sourcetag, const char *tag);
272293
294/* find a given contract on a device */
295const device_contract *device_get_contract(const device_config *device, const char *name);
273296
274297
298
275299/* ----- type-based device access ----- */
276300
277301/* return the number of items of a given type; DEVICE_TYPE_WILDCARD is allowed */
src/emu/cpuexec.h
r4962r4963
9191   MDRV_DEVICE_ADD(_tag, CPU, _clock) \
9292   MDRV_DEVICE_CONFIG_DATAPTR(cpu_config, type, CPU_##_type)
9393
94#define MDRV_CPU_REMOVE(_tag) \
95   MDRV_DEVICE_REMOVE(_tag)
96
9794#define MDRV_CPU_MODIFY(_tag) \
9895   MDRV_DEVICE_MODIFY(_tag)
9996
src/emu/sound/cdp1869.h
r4962r4963
9292   MDRV_DEVICE_CONFIG_DATAPTR(sound_config, type, SOUND_CDP1869) \
9393   MDRV_DEVICE_CONFIG(_config)
9494
95#define MDRV_CDP1869_REMOVE(_tag) \
96   MDRV_DEVICE_REMOVE(_tag)
97
9895#define CDP1869_INTERFACE(_name) const cdp1869_interface (_name) =
9996
10097#define CDP1869_CHAR_RAM_READ(name) UINT8 name(const device_config *device, UINT16 pma, UINT8 cma)
src/emu/sound/pokey.c
r4962r4963
946946
947947READ8_HANDLER( quad_pokey_r )
948948{
949   static const char *devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
949   static const char *const devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
950950   int pokey_num = (offset >> 3) & ~0x04;
951951   int control = (offset & 0x20) >> 2;
952952   int pokey_reg = (offset % 8) | control;
r4962r4963
13321332
13331333WRITE8_HANDLER( quad_pokey_w )
13341334{
1335   static const char *devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
1335   static const char *const devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
13361336    int pokey_num = (offset >> 3) & ~0x04;
13371337    int control = (offset & 0x20) >> 2;
13381338    int pokey_reg = (offset % 8) | control;
src/emu/sound/okim6376.c
r4962r4963
5353
5454/* volume lookup table. Upon configuration, the number of ST pulses determine how much
5555   attenuation to apply to the sound signal. */
56static int volume_table[4] =
56static const int volume_table[4] =
5757{
5858   0x20,   //   0 dB
5959   0x10,   //  -6.0 dB
src/emu/sound/okim6258.h
r4962r4963
2929int okim6258_get_vclk(const device_config *device);
3030
3131READ8_DEVICE_HANDLER( okim6258_status_r );
32READ8_DEVICE_HANDLER( okim6258_data_r );
3332WRITE8_DEVICE_HANDLER( okim6258_data_w );
3433WRITE8_DEVICE_HANDLER( okim6258_ctrl_w );
3534
src/emu/crsshair.h
r4962r4963
6464/* draws crosshair(s) in a given screen, if neccessary */
6565void crosshair_render(const device_config *screen);
6666
67/* toggles crosshair visibility */
68void crosshair_toggle(running_machine *machine);
69
7067/* sets the screen(s) for a given player's crosshair */
7168void crosshair_set_screen(running_machine *machine, int player, const device_config *screen);
7269
src/emu/sound.h
r4962r4963
9090   MDRV_DEVICE_ADD(_tag, SOUND, _clock) \
9191   MDRV_DEVICE_CONFIG_DATAPTR(sound_config, type, SOUND_##_type)
9292
93#define MDRV_SOUND_REMOVE(_tag) \
94   MDRV_DEVICE_REMOVE(_tag)
95
9693#define MDRV_SOUND_MODIFY(_tag) \
9794   MDRV_DEVICE_MODIFY(_tag)
9895
r4962r4963
132129   MDRV_DEVICE_CONFIG_DATAFP32(speaker_config, y, _y, 24) \
133130   MDRV_DEVICE_CONFIG_DATAFP32(speaker_config, z, _z, 24)
134131
135#define MDRV_SPEAKER_REMOVE(_tag) \
136   MDRV_DEVICE_REMOVE(_tag)
137
138132#define MDRV_SPEAKER_STANDARD_MONO(_tag) \
139133   MDRV_SPEAKER_ADD(_tag, 0.0, 0.0, 1.0)
140134
src/emu/timer.h
r4962r4963
131131   MDRV_DEVICE_CONFIG_DATA32(timer_config, first_vpos, _first_vpos) \
132132   MDRV_DEVICE_CONFIG_DATA32(timer_config, increment, _increment)
133133
134#define MDRV_TIMER_REMOVE(_tag) \
135   MDRV_DEVICE_REMOVE(_tag)
136
137134#define MDRV_TIMER_MODIFY(_tag) \
138135   MDRV_DEVICE_MODIFY(_tag)
139136
src/version.c
r4962r4963
99
1010***************************************************************************/
1111
12const char build_version[] = "0.131.1 ("__DATE__")";
12const char build_version[] = "0.132 ("__DATE__")";
src/mess/audio/mea8000.h
r4962r4963
2828  MDRV_DEVICE_ADD(_tag, MEA8000, 0)         \
2929  MDRV_DEVICE_CONFIG(_intrf)
3030
31#define MDRV_MEA8000_REMOVE(_tag)      \
32  MDRV_DEVICE_REMOVE(_tag)
3331
34
3532/* ---------- functions ------------ */
3633
3734DEVICE_GET_INFO(mea8000);
src/mess/includes/cbmieeeb.h
r4962r4963
1919#define MDRV_CBM_IEEEBUS_ADD(_tag) \
2020   MDRV_DEVICE_ADD(_tag, CBM_IEEEBUS, 0)
2121
22#define MDRV_CBM_IEEEBUS_REMOVE(_tag) \
23   MDRV_DEVICE_REMOVE(_tag)
24
2522/***************************************************************************
2623    PROTOTYPES
2724***************************************************************************/
src/mess/includes/cbmserb.h
r4962r4963
2121   MDRV_DEVICE_ADD(_tag, CBM_SERBUS, 0) \
2222   MDRV_DEVICE_CONFIG(_config)
2323
24#define MDRV_CBM_SERBUS_REMOVE(_tag) \
25   MDRV_DEVICE_REMOVE(_tag)
26
2724/***************************************************************************
2825    TYPE DEFINITIONS
2926***************************************************************************/
src/mess/machine/applefdc.h
r4962r4963
8181#define MDRV_APPLEFDC_MODIFY(_tag, _intrf) \
8282  MDRV_DEVICE_MODIFY(_tag)         \
8383  MDRV_DEVICE_CONFIG(_intrf)
84
85#define MDRV_APPLEFDC_REMOVE(_tag)      \
86  MDRV_DEVICE_REMOVE(_tag)
8784 
8885#define MDRV_IWM_ADD(_tag, _intrf) \
8986   MDRV_DEVICE_ADD(_tag, IWM, 0) \
r4962r4963
9289#define MDRV_IWM_MODIFY(_tag, _intrf) \
9390  MDRV_DEVICE_MODIFY(_tag)         \
9491  MDRV_DEVICE_CONFIG(_intrf)
95
96#define MDRV_IWM_REMOVE(_tag)      \
97  MDRV_DEVICE_REMOVE(_tag)
9892 
9993#define MDRV_SWIM_ADD(_tag, _intrf) \
10094   MDRV_DEVICE_ADD(_tag, SWIM, 0) \
r4962r4963
10397#define MDRV_SWIM_MODIFY(_tag, _intrf) \
10498  MDRV_DEVICE_MODIFY(_tag)         \
10599  MDRV_DEVICE_CONFIG(_intrf)
106
107#define MDRV_SWIM_REMOVE(_tag)      \
108  MDRV_DEVICE_REMOVE(_tag)
109100 
110101
111102#endif /* __APPLEFDC_H__ */
src/mess/machine/at45dbxx.h
r4962r4963
2525#define MDRV_AT45DB041_ADD(_tag) \
2626   MDRV_DEVICE_ADD(_tag, AT45DB041, 0) \
2727
28#define MDRV_AT45DB041_REMOVE(_tag) \
29   MDRV_DEVICE_REMOVE(_tag)
30
3128#define AT45DB081      DEVICE_GET_INFO_NAME(at45db081)
3229
3330#define MDRV_AT45DB081_ADD(_tag) \
3431   MDRV_DEVICE_ADD(_tag, AT45DB081, 0) \
3532
36#define MDRV_AT45DB081_REMOVE(_tag) \
37   MDRV_DEVICE_REMOVE(_tag)
38
3933#define AT45DB161      DEVICE_GET_INFO_NAME(at45db161)
4034
4135#define MDRV_AT45DB161_ADD(_tag) \
4236   MDRV_DEVICE_ADD(_tag, AT45DB161, 0) \
4337
44#define MDRV_AT45DB161_REMOVE(_tag) \
45   MDRV_DEVICE_REMOVE(_tag)
4638
47
4839/***************************************************************************
4940    FUNCTION PROTOTYPES
5041***************************************************************************/
src/mess/machine/cdp1871.h
r4962r4963
4545   MDRV_DEVICE_ADD(_tag, CDP1871, _clock) \
4646   MDRV_DEVICE_CONFIG(_intrf)
4747
48#define MDRV_CDP1871_REMOVE(_tag) \
49   MDRV_DEVICE_REMOVE(_tag)
50
5148#define CDP1871_INTERFACE(name) \
5249   const cdp1871_interface (name)=
5350
src/mess/machine/6530miot.h
r4962r4963
3535   MDRV_DEVICE_ADD(_tag, MIOT6530, _clock) \
3636   MDRV_DEVICE_CONFIG(_intrf)
3737
38#define MDRV_MIOT6530_REMOVE(_tag) \
39   MDRV_DEVICE_REMOVE(_tag)
4038
4139
42
4340/***************************************************************************
4441    FUNCTION PROTOTYPES
4542***************************************************************************/
src/mess/machine/ctronics.h
r4962r4963
6767   MDRV_DEVICE_ADD(_tag, CENTRONICS, 0) \
6868   MDRV_DEVICE_CONFIG(_intf)
6969
70#define MDRV_CENTRONICS_REMOVE(_tag) \
71   MDRV_DEVICE_REMOVE(_tag)
7270
73
7471/***************************************************************************
7572    DEFAULT INTERFACES
7673***************************************************************************/
src/mess/machine/adc080x.h
r4962r4963
4646   MDRV_DEVICE_ADD(_tag, ADC0808, _clock) \
4747   MDRV_DEVICE_CONFIG(_intrf)
4848
49#define MDRV_ADC0808_REMOVE(_tag) \
50   MDRV_DEVICE_REMOVE(_tag)
51
5249#define MDRV_ADC0809_ADD(_tag, _clock, _intrf) \
5350   MDRV_DEVICE_ADD(_tag, ADC0809, _clock) \
5451   MDRV_DEVICE_CONFIG(_intrf)
5552
56#define MDRV_ADC0809_REMOVE(_tag) \
57   MDRV_DEVICE_REMOVE(_tag)
5853
59
6054/* interface */
6155typedef struct _adc080x_interface adc080x_interface;
6256struct _adc080x_interface
src/mess/machine/ay31015.h
r4962r4963
6969    MDRV_DEVICE_ADD(_tag, AY31015, 0)      \
7070    MDRV_DEVICE_CONFIG(_config)
7171
72#define MDRV_AY31015_REMOVE(_tag)      \
73    MDRV_DEVICE_REMOVE(_tag)
7472
75
7673/***************************************************************************
7774    FUNCTION PROTOTYPES
7875***************************************************************************/
src/mess/machine/com8116.h
r4962r4963
3434   MDRV_DEVICE_ADD(_tag, COM8116, _clock) \
3535   MDRV_DEVICE_CONFIG(_config)
3636
37#define MDRV_COM8116_REMOVE(_tag) \
38   MDRV_DEVICE_REMOVE(_tag)
39
4037#define COM8116_INTERFACE(name) \
4138   const com8116_interface (name)=
4239
src/mess/machine/6525tpi.h
r4962r4963
5959   MDRV_DEVICE_ADD(_tag, TPI6525, 0) \
6060   MDRV_DEVICE_CONFIG(_intrf)
6161
62#define MDRV_TPI6525_REMOVE(_tag) \
63   MDRV_DEVICE_REMOVE(_tag)
6462
65
6663/***************************************************************************
6764    FUNCTION PROTOTYPES
6865***************************************************************************/
src/mess/machine/ins8250.h
r4962r4963
5858   MDRV_DEVICE_ADD(_tag, INS8250, 0) \
5959   MDRV_DEVICE_CONFIG(_intrf)
6060
61#define MDRV_INS8250_REMOVE(_tag) \
62   MDRV_DEVICE_REMOVE(_tag)
6361
64
6562#define MDRV_NS16450_ADD(_tag, _intrf) \
6663   MDRV_DEVICE_ADD(_tag, NS16450, 0) \
6764   MDRV_DEVICE_CONFIG(_intrf)
6865
69#define MDRV_NS16450_REMOVE(_tag) \
70   MDRV_DEVICE_REMOVE(_tag)
7166
72
7367#define MDRV_NS16550_ADD(_tag, _intrf) \
7468   MDRV_DEVICE_ADD(_tag, NS16550, 0) \
7569   MDRV_DEVICE_CONFIG(_intrf)
7670
77#define MDRV_NS16550_REMOVE(_tag) \
78   MDRV_DEVICE_REMOVE(_tag)
7971
80
8172/***************************************************************************
8273    FUNCTION PROTOTYPES
8374***************************************************************************/
src/mess/mess.mak
r4962r4963
346346   $(MESSOBJ)/sharp.a \
347347   $(MESSOBJ)/sinclair.a \
348348   $(MESSOBJ)/skeleton.a \
349   $(MESSOBJ)/snk.a \
349350   $(MESSOBJ)/sony.a \
350351   $(MESSOBJ)/sord.a \
351352   $(MESSOBJ)/special.a \
r4962r4963
375376   $(MESSOBJ)/xerox.a \
376377   $(MESSOBJ)/z80ne.a \
377378   $(MESSOBJ)/shared.a \
378   $(MESSOBJ)/snk.a \
379379
380380
381381
src/mess/devices/snapquik.h
r4962r4963
8080   MDRV_DEVICE_CONFIG_DATA64(snapquick_config, delay_seconds, (seconds_t) (_delay)) \
8181   MDRV_DEVICE_CONFIG_DATA64(snapquick_config, delay_attoseconds, (attoseconds_t) (((_delay) - (int)(_delay)) * ATTOSECONDS_PER_SECOND)) \
8282
83#define MDRV_QUICKLOAD_REMOVE(_tag) \
84   MDRV_DEVICE_REMOVE(_tag)
8583
8684
87
8885/***************************************************************************
8986    FUNCTION PROTOTYPES
9087***************************************************************************/
src/mess/devices/cassette.h
r4962r4963
7575   MDRV_DEVICE_ADD(_tag, CASSETTE, 0)         \
7676   MDRV_DEVICE_CONFIG(_config)
7777
78#define MDRV_CASSETTE_REMOVE(_tag)         \
79   MDRV_DEVICE_REMOVE(_tag)
80
8178#define MDRV_CASSETTE_MODIFY(_tag, _config)   \
8279   MDRV_DEVICE_MODIFY(_tag)      \
8380   MDRV_DEVICE_CONFIG(_config)
src/mess/devices/xmodem.h
r4962r4963
2727  MDRV_DEVICE_ADD(_tag, XMODEM, 0)         \
2828  MDRV_DEVICE_CONFIG(_intrf)
2929
30#define MDRV_XMODEM_REMOVE(_tag)      \
31  MDRV_DEVICE_REMOVE(_tag)
3230
33
3431extern DEVICE_GET_INFO( xmodem );
3532
3633
src/mess/devices/kermit.h
r4962r4963
2727  MDRV_DEVICE_ADD(_tag, KERMIT, 0)         \
2828  MDRV_DEVICE_CONFIG(_intrf)
2929
30#define MDRV_KERMIT_REMOVE(_tag)      \
31  MDRV_DEVICE_REMOVE(_tag)
3230
33
3431extern DEVICE_GET_INFO( kermit );
3532
3633
src/mess/devices/cartslot.h
r4962r4963
8686#define MDRV_CARTSLOT_ADD(_tag)                               \
8787   MDRV_DEVICE_ADD(_tag, CARTSLOT, 0)                           \
8888
89#define MDRV_CARTSLOT_REMOVE(_tag)                              \
90   MDRV_DEVICE_REMOVE(_tag)
91
9289#define MDRV_CARTSLOT_MODIFY(_tag)                              \
9390   MDRV_DEVICE_MODIFY(_tag)                           \
9491
src/mess/drivers/c65.c
r4962r4963
264264   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50)
265265
266266   /* cia */
267   MDRV_CIA6526_REMOVE("cia_0")
268   MDRV_CIA6526_REMOVE("cia_1")
267   MDRV_DEVICE_REMOVE("cia_0")
268   MDRV_DEVICE_REMOVE("cia_1")
269269   MDRV_CIA6526_ADD("cia_0", CIA6526R1, 3500000, c65_pal_cia0)
270270   MDRV_CIA6526_ADD("cia_1", CIA6526R1, 3500000, c65_pal_cia1)
271271MACHINE_DRIVER_END
src/mess/drivers/cbmb.c
r4962r4963
400400   MDRV_SCREEN_VISIBLE_AREA(0, 720 - 1, 0, 350 - 1)
401401   MDRV_GFXDECODE( cbm700 )
402402
403   MDRV_MC6845_REMOVE("crtc")
403   MDRV_DEVICE_REMOVE("crtc")
404404   MDRV_MC6845_ADD("crtc", MC6845, XTAL_18MHz / 8 /*? I do not know if this is correct, please verify */, cbm700_crtc)
405405
406406   MDRV_VIDEO_START( cbm700 )
src/mess/drivers/thomson.c
r4962r4963
11101110
11111111     MDRV_CASSETTE_MODIFY( "cassette", mo5_cassette_config )
11121112
1113     MDRV_MC6846_REMOVE( "mc6846" )
1113     MDRV_DEVICE_REMOVE( "mc6846" )
11141114
11151115   MDRV_PIA6821_MODIFY( THOM_PIA_SYS, mo5_pia6821_sys )
11161116
r4962r4963
14561456     MDRV_CPU_PROGRAM_MAP ( to9)
14571457
14581458   MDRV_PIA6821_MODIFY( THOM_PIA_SYS, to9_pia6821_sys )
1459   MDRV_PIA6821_REMOVE( THOM_PIA_IO )
1459   MDRV_DEVICE_REMOVE( THOM_PIA_IO )
14601460
1461   MDRV_CENTRONICS_REMOVE("centronics")
1461   MDRV_DEVICE_REMOVE("centronics")
14621462   MDRV_CENTRONICS_ADD("centronics", standard_centronics)
14631463
14641464     MDRV_MC6846_MODIFY( "mc6846", to9_timer )
r4962r4963
16841684     MDRV_CPU_PROGRAM_MAP ( to8)
16851685
16861686   MDRV_PIA6821_MODIFY( THOM_PIA_SYS, to8_pia6821_sys )
1687   MDRV_PIA6821_REMOVE( THOM_PIA_IO )
1687   MDRV_DEVICE_REMOVE( THOM_PIA_IO )
16881688
1689   MDRV_CENTRONICS_REMOVE("centronics")
1689   MDRV_DEVICE_REMOVE("centronics")
16901690   MDRV_CENTRONICS_ADD("centronics", standard_centronics)
16911691
16921692     MDRV_MC6846_MODIFY( "mc6846", to8_timer )
r4962r4963
18391839     MDRV_CPU_PROGRAM_MAP ( to9p)
18401840
18411841   MDRV_PIA6821_MODIFY( THOM_PIA_SYS, to9p_pia6821_sys )
1842   MDRV_PIA6821_REMOVE( THOM_PIA_IO )
1842   MDRV_DEVICE_REMOVE( THOM_PIA_IO )
18431843
1844   MDRV_CENTRONICS_REMOVE("centronics")
1844   MDRV_DEVICE_REMOVE("centronics")
18451845   MDRV_CENTRONICS_ADD("centronics", standard_centronics)
18461846
18471847     MDRV_MC6846_MODIFY( "mc6846", to9p_timer )
r4962r4963
21782178     MDRV_CPU_MODIFY( "maincpu" )
21792179     MDRV_CPU_PROGRAM_MAP ( mo6)
21802180
2181     MDRV_MC6846_REMOVE( "mc6846" )
2181     MDRV_DEVICE_REMOVE( "mc6846" )
21822182
21832183   MDRV_PIA6821_MODIFY( THOM_PIA_SYS, mo6_pia6821_sys )
2184   MDRV_PIA6821_REMOVE( THOM_PIA_IO )
2184   MDRV_DEVICE_REMOVE( THOM_PIA_IO )
21852185   MDRV_PIA6821_MODIFY( THOM_PIA_GAME, mo6_pia6821_game )
21862186
2187   MDRV_CENTRONICS_REMOVE("centronics")
2187   MDRV_DEVICE_REMOVE("centronics")
21882188   MDRV_CENTRONICS_ADD("centronics", mo6_centronics_config)
21892189
21902190   MDRV_CARTSLOT_MODIFY("cart")
r4962r4963
24102410     MDRV_CPU_MODIFY( "maincpu" )
24112411     MDRV_CPU_PROGRAM_MAP ( mo5nr)
24122412
2413     MDRV_MC6846_REMOVE( "mc6846" )
2413     MDRV_DEVICE_REMOVE( "mc6846" )
24142414
24152415   MDRV_PIA6821_MODIFY( THOM_PIA_SYS, mo5nr_pia6821_sys )
2416   MDRV_PIA6821_REMOVE( THOM_PIA_IO )
2416   MDRV_DEVICE_REMOVE( THOM_PIA_IO )
24172417   MDRV_PIA6821_MODIFY( THOM_PIA_GAME, mo5nr_pia6821_game )
24182418
2419   MDRV_CENTRONICS_REMOVE("centronics")
2419   MDRV_DEVICE_REMOVE("centronics")
24202420   MDRV_CENTRONICS_ADD("centronics", standard_centronics)
24212421
24222422   MDRV_CARTSLOT_MODIFY("cart")
src/mess/drivers/pmd85.c
r4962r4963
623623   MDRV_PPI8255_ADD( "ppi8255_0", mato_ppi8255_interface )
624624
625625   /* no uart */
626   MDRV_MSM8251_REMOVE( "uart" )
626   MDRV_DEVICE_REMOVE( "uart" )
627627MACHINE_DRIVER_END
628628
629629static MACHINE_DRIVER_START( c2717 )
src/mess/drivers/c128.c
r4962r4963
183183
184184/* devices config */
185185#include "includes/cbm.h"
186#include "includes/cbmserb.h"   // needed for MDRV_CBM_SERBUS_REMOVE
186#include "includes/cbmserb.h"
187187#include "includes/cbmdrive.h"
188188#include "includes/vc1541.h"
189189
r4962r4963
645645static MACHINE_DRIVER_START( c128d )
646646   MDRV_IMPORT_FROM( c128 )
647647
648   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
648   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
649649   MDRV_IMPORT_FROM( cpu_c1571 )
650650MACHINE_DRIVER_END
651651
652652static MACHINE_DRIVER_START( c128dcr )
653653   MDRV_IMPORT_FROM( c128 )
654654
655   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
655   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
656656   MDRV_IMPORT_FROM( cpu_c1571cr )
657657MACHINE_DRIVER_END
658658
659659static MACHINE_DRIVER_START( c128d81 )
660660   MDRV_IMPORT_FROM( c128 )
661661
662   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
662   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
663663   MDRV_IMPORT_FROM( cpu_c1581 )
664664MACHINE_DRIVER_END
665665
r4962r4963
679679   MDRV_SOUND_CONFIG(c128_sound_interface)
680680
681681   /* cia */
682   MDRV_CIA6526_REMOVE("cia_0")
683   MDRV_CIA6526_REMOVE("cia_1")
682   MDRV_DEVICE_REMOVE("cia_0")
683   MDRV_DEVICE_REMOVE("cia_1")
684684   MDRV_CIA6526_ADD("cia_0", CIA6526R1, VIC6569_CLOCK, c128_pal_cia0)
685685   MDRV_CIA6526_ADD("cia_1", CIA6526R1, VIC6569_CLOCK, c128_pal_cia1)
686686MACHINE_DRIVER_END
r4962r4963
688688static MACHINE_DRIVER_START( c128dpal )
689689   MDRV_IMPORT_FROM( c128pal )
690690
691   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
691   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
692692   MDRV_IMPORT_FROM( cpu_c1571 )
693693MACHINE_DRIVER_END
694694
695695static MACHINE_DRIVER_START( c128dcrp )
696696   MDRV_IMPORT_FROM( c128pal )
697697
698   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
698   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
699699   MDRV_IMPORT_FROM( cpu_c1571cr )
700700MACHINE_DRIVER_END
701701
src/mess/drivers/c16.c
r4962r4963
129129/* devices config */
130130#include "includes/cbm.h"
131131#include "includes/cbmdrive.h"
132#include "includes/cbmserb.h"   // needed for MDRV_CBM_SERBUS_REMOVE
132#include "includes/cbmserb.h"
133133
134134#include "includes/c16.h"
135135
r4962r4963
464464
465465   /* c16c uses 'real' floppy drive emulation from machine/vc1541.c...
466466   still in progress, atm */
467   MDRV_TPI6525_REMOVE("tpi6535_tpi_2")
467   MDRV_DEVICE_REMOVE("tpi6535_tpi_2")
468468   MDRV_TPI6525_ADD("tpi6535_tpi_2", c16_tpi6525_tpi_2_c1551_intf)
469469
470470   /* emulation code currently supports only one drive */
471   MDRV_TPI6525_REMOVE("tpi6535_tpi_3")
471   MDRV_DEVICE_REMOVE("tpi6535_tpi_3")
472472
473   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
473   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
474474   MDRV_IMPORT_FROM( cpu_c1551 )
475475#ifdef CPU_SYNC
476476   MDRV_QUANTUM_TIME(HZ(60))
r4962r4963
483483static MACHINE_DRIVER_START( c16v )
484484   MDRV_IMPORT_FROM( c16 )
485485
486   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
486   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
487487   MDRV_IMPORT_FROM( cpu_vc1541 )
488488#ifdef CPU_SYNC
489489   MDRV_QUANTUM_TIME(HZ(60))
r4962r4963
492492#endif
493493
494494   /* no c1551 in this driver */
495   MDRV_TPI6525_REMOVE("tpi6535_tpi_2")
496   MDRV_TPI6525_REMOVE("tpi6535_tpi_3")
495   MDRV_DEVICE_REMOVE("tpi6535_tpi_2")
496   MDRV_DEVICE_REMOVE("tpi6535_tpi_3")
497497MACHINE_DRIVER_END
498498
499499
r4962r4963
514514
515515   /* plus4c uses 'real' floppy drive emulation from machine/vc1541.c...
516516   still in progress, atm */
517   MDRV_TPI6525_REMOVE("tpi6535_tpi_2")
517   MDRV_DEVICE_REMOVE("tpi6535_tpi_2")
518518   MDRV_TPI6525_ADD("tpi6535_tpi_2", c16_tpi6525_tpi_2_c1551_intf)
519519
520520   /* emulation code currently supports only one drive */
521   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
522   MDRV_TPI6525_REMOVE("tpi6535_tpi_3")
521   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
522   MDRV_DEVICE_REMOVE("tpi6535_tpi_3")
523523
524524   MDRV_IMPORT_FROM( cpu_c1551 )
525525
r4962r4963
536536static MACHINE_DRIVER_START( plus4v )
537537   MDRV_IMPORT_FROM( plus4 )
538538
539   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
539   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
540540   MDRV_IMPORT_FROM( cpu_vc1541 )
541541
542542   MDRV_SCREEN_MODIFY("screen")
r4962r4963
548548#endif
549549
550550   /* no c1551 in this driver */
551   MDRV_TPI6525_REMOVE("tpi6535_tpi_2")
552   MDRV_TPI6525_REMOVE("tpi6535_tpi_3")
551   MDRV_DEVICE_REMOVE("tpi6535_tpi_2")
552   MDRV_DEVICE_REMOVE("tpi6535_tpi_3")
553553MACHINE_DRIVER_END
554554
555555
src/mess/drivers/ql.c
r4962r4963
666666   MDRV_CPU_ADD(I8051_TAG, I8051, X4)
667667   MDRV_CPU_IO_MAP(ipc_io_map)
668668   
669   MDRV_CARTSLOT_REMOVE("cart")
669   MDRV_DEVICE_REMOVE("cart")
670670MACHINE_DRIVER_END
671671
672672static MACHINE_DRIVER_START( ql_ntsc )
src/mess/drivers/amiga.c
r4962r4963
421421   MDRV_CPU_REPLACE("maincpu", M68000, CDTV_CLOCK_X1 / 4)
422422   MDRV_CPU_PROGRAM_MAP(cdtv_mem)
423423
424   MDRV_CPU_REMOVE("keyboard")
424   MDRV_DEVICE_REMOVE("keyboard")
425425
426426   MDRV_CPU_ADD("rcmcu", M6502, XTAL_1MHz) /* 1 MHz? */
427427   MDRV_CPU_PROGRAM_MAP(cdtv_rcmcu_mem)
r4962r4963
443443   MDRV_TPI6525_ADD("tpi6525", cdtv_tpi_intf)
444444
445445   /* cia */
446   MDRV_CIA8520_REMOVE("cia_0")
447   MDRV_CIA8520_REMOVE("cia_1")
446   MDRV_DEVICE_REMOVE("cia_0")
447   MDRV_DEVICE_REMOVE("cia_1")
448448   MDRV_CIA8520_ADD("cia_0", CDTV_CLOCK_X1 / 40, cia_0_cdtv_intf)
449449   MDRV_CIA8520_ADD("cia_1", CDTV_CLOCK_X1 / 4, cia_1_cdtv_intf)
450450MACHINE_DRIVER_END
r4962r4963
462462   MDRV_SCREEN_VISIBLE_AREA(214, (228*4)-1, 34, 312-1)
463463
464464   /* cia */
465   MDRV_CIA8520_REMOVE("cia_0")
465   MDRV_DEVICE_REMOVE("cia_0")
466466   MDRV_CIA8520_ADD("cia_0", AMIGA_68000_PAL_CLOCK / 10, cia_0_pal_intf)
467467MACHINE_DRIVER_END
468468
src/mess/drivers/a7800.c
r4962r4963
308308   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
309309
310310   /* devices */
311   MDRV_RIOT6532_REMOVE("riot")
311   MDRV_DEVICE_REMOVE("riot")
312312   MDRV_RIOT6532_ADD("riot", 3546894/3, a7800_r6532_interface)
313313MACHINE_DRIVER_END
314314
src/mess/drivers/z1013.c
r4962r4963
177177
178178static MACHINE_DRIVER_START( z1013k76 )
179179   MDRV_IMPORT_FROM(z1013)
180   MDRV_Z80PIO_REMOVE("z80pio")
180   MDRV_DEVICE_REMOVE("z80pio")
181181   MDRV_Z80PIO_ADD("z80pio", z1013k7659_z80pio_intf)
182182MACHINE_DRIVER_END
183183
src/mess/drivers/cpschngr.c
r4962r4963
428428   MDRV_NVRAM_HANDLER(qsound)
429429
430430   /* sound hardware */
431   MDRV_SPEAKER_REMOVE("mono")
431   MDRV_DEVICE_REMOVE("mono")
432432   MDRV_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
433433
434   MDRV_SOUND_REMOVE("2151")
435   MDRV_SOUND_REMOVE("oki")
434   MDRV_DEVICE_REMOVE("2151")
435   MDRV_DEVICE_REMOVE("oki")
436436
437437   MDRV_SOUND_ADD("qsound", QSOUND, QSOUND_CLOCK)
438438   MDRV_SOUND_ROUTE(0, "lspeaker", 1.0)
src/mess/drivers/ami1200.c
r4962r4963
471471   MDRV_SCREEN_REFRESH_RATE(50)
472472
473473   /* cia */
474   MDRV_CIA8520_REMOVE("cia_0")
475   MDRV_CIA8520_REMOVE("cia_1")
474   MDRV_DEVICE_REMOVE("cia_0")
475   MDRV_DEVICE_REMOVE("cia_1")
476476   MDRV_CIA8520_ADD("cia_0", AMIGA_68EC020_PAL_CLOCK / 10, a1200_cia_0_intf)
477477   MDRV_CIA8520_ADD("cia_1", AMIGA_68EC020_PAL_CLOCK / 10, a1200_cia_1_intf)
478478MACHINE_DRIVER_END
src/mess/drivers/apple2gs.c
r4962r4963
177177   MDRV_SOUND_ROUTE(1, "rspeaker", 1.0)
178178
179179   /* replace the old-style FDC with an IWM */
180   MDRV_APPLEFDC_REMOVE("fdc")
180   MDRV_DEVICE_REMOVE("fdc")
181181   MDRV_IWM_ADD("fdc", apple2_fdc_interface)
182182   /* SCC */
183183   MDRV_SCC8530_ADD("scc")
src/mess/drivers/nc.c
r4962r4963
16911691   MDRV_DEFAULT_LAYOUT(layout_nc200)
16921692
16931693   /* printer */
1694   MDRV_CENTRONICS_REMOVE("centronics")
1694   MDRV_DEVICE_REMOVE("centronics")
16951695   MDRV_CENTRONICS_ADD("centronics", nc200_centronics_config)
16961696
16971697   /* uart */
1698   MDRV_MSM8251_REMOVE("uart")
1698   MDRV_DEVICE_REMOVE("uart")
16991699   MDRV_MSM8251_ADD("uart", nc200_uart_interface)
17001700
17011701   /* no rtc */
1702   MDRV_TC8521_REMOVE("rtc")
1702   MDRV_DEVICE_REMOVE("rtc")
17031703
17041704   MDRV_NEC765A_ADD("nec765", nc200_nec765_interface)
17051705MACHINE_DRIVER_END
src/mess/drivers/mac.c
r4962r4963
187187static MACHINE_DRIVER_START( macse )
188188   MDRV_IMPORT_FROM( macplus )
189189
190   MDRV_VIA6522_REMOVE("via6522_0")
190   MDRV_DEVICE_REMOVE("via6522_0")
191191   MDRV_VIA6522_ADD("via6522_0", 1000000, mac_via6522_adb_intf)
192192MACHINE_DRIVER_END
193193
r4962r4963
197197   MDRV_CPU_REPLACE("maincpu", M68020, 7833600*2)
198198   MDRV_CPU_PROGRAM_MAP(maclc_map)
199199
200   MDRV_VIA6522_REMOVE("via6522_0")
200   MDRV_DEVICE_REMOVE("via6522_0")
201201   MDRV_VIA6522_ADD("via6522_0", 1000000, mac_via6522_adb_intf)
202202   MDRV_VIA6522_ADD("via6522_1", 1000000, mac_via6522_2_intf)
203203MACHINE_DRIVER_END
src/mess/drivers/vectrex.c
r4962r4963
206206   MDRV_VIDEO_START(raaspec)
207207
208208   /* via */
209   MDRV_VIA6522_REMOVE("via6522_0")
209   MDRV_DEVICE_REMOVE("via6522_0")
210210   MDRV_VIA6522_ADD("via6522_0", 0, spectrum1_via6522_interface)
211211   
212   MDRV_CARTSLOT_REMOVE("cart")
212   MDRV_DEVICE_REMOVE("cart")
213213MACHINE_DRIVER_END
214214
215215ROM_START(raaspec)
src/mess/drivers/lisa.c
r4962r4963
140140   MDRV_IWM_MODIFY("fdc", lisa210_fdc_interface)
141141
142142   /* via */
143   MDRV_VIA6522_REMOVE("via6522_0")
144   MDRV_VIA6522_REMOVE("via6522_1")
143   MDRV_DEVICE_REMOVE("via6522_0")
144   MDRV_DEVICE_REMOVE("via6522_1")
145145   MDRV_VIA6522_ADD("via6522_0", 1250000, lisa_via6522_0_intf)
146146   MDRV_VIA6522_ADD("via6522_1", 1250000, lisa_via6522_1_intf)
147147MACHINE_DRIVER_END
src/mess/drivers/lynx.c
r4962r4963
100100   MDRV_IMPORT_FROM( lynx )
101101
102102   /* sound hardware */
103   MDRV_SPEAKER_REMOVE("mono")
103   MDRV_DEVICE_REMOVE("mono")
104104   MDRV_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
105   MDRV_SOUND_REMOVE("lynx")
105   MDRV_DEVICE_REMOVE("lynx")
106106   MDRV_SOUND_ADD("lynx2", LYNX2, 0)
107107   MDRV_SOUND_ROUTE(0, "lspeaker", 0.50)
108108   MDRV_SOUND_ROUTE(1, "rspeaker", 0.50)
src/mess/drivers/timex.c
r4962r4963
637637   MDRV_CARTSLOT_LOAD(timex_cart)
638638   MDRV_CARTSLOT_UNLOAD(timex_cart)
639639   
640   MDRV_BETA_DISK_REMOVE(BETA_DISK_TAG)
640   MDRV_DEVICE_REMOVE(BETA_DISK_TAG)
641641MACHINE_DRIVER_END
642642
643643
src/mess/drivers/apf.c
r4962r4963
658658   MDRV_CPU_MODIFY( "maincpu" )
659659   MDRV_CPU_PROGRAM_MAP( apf_m1000_map)
660660
661   MDRV_PIA6821_REMOVE( "pia_1" )
661   MDRV_DEVICE_REMOVE( "pia_1" )
662662
663   MDRV_CASSETTE_REMOVE( "cassette" )
663   MDRV_DEVICE_REMOVE( "cassette" )
664664   MDRV_CARTSLOT_ADD("cart")
665665MACHINE_DRIVER_END
666666
src/mess/drivers/vc20.c
r4962r4963
9292
9393/* devices config */
9494#include "includes/cbm.h"
95#include "includes/cbmserb.h"   // needed for MDRV_CBM_SERBUS_REMOVE
95#include "includes/cbmserb.h"   // needed for MDRV_DEVICE_REMOVE
9696#include "includes/cbmdrive.h"
9797#include "includes/vc1541.h"
9898#include "includes/cbmieeeb.h"
r4962r4963
308308static MACHINE_DRIVER_START( vic20v )
309309   MDRV_IMPORT_FROM( vic20 )
310310
311   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
311   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
312312   MDRV_IMPORT_FROM( cpu_vc1540 )
313313#ifdef CPU_SYNC
314314   MDRV_QUANTUM_TIME(HZ(60))
r4962r4963
348348static MACHINE_DRIVER_START( vc20v )
349349   MDRV_IMPORT_FROM( vc20 )
350350
351   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
351   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
352352   MDRV_IMPORT_FROM( cpu_vc1540 )
353353#ifdef CPU_SYNC
354354   MDRV_QUANTUM_TIME(HZ(60))
src/mess/drivers/intv.c
r4962r4963
433433   MDRV_VIDEO_UPDATE(intvkbd)
434434
435435   /* cartridge */
436   MDRV_CARTSLOT_REMOVE("cart")
436   MDRV_DEVICE_REMOVE("cart")
437437   MDRV_CARTSLOT_ADD("cart1")
438438   MDRV_CARTSLOT_EXTENSION_LIST("int,rom,bin,itv")
439439   MDRV_CARTSLOT_NOT_MANDATORY
src/mess/drivers/cybiko.c
r4962r4963
290290   MDRV_CPU_PROGRAM_MAP(cybikoxt_mem )
291291   MDRV_CPU_IO_MAP(cybikoxt_io )
292292   // sound
293   MDRV_SPEAKER_REMOVE("mono")
294   MDRV_SOUND_REMOVE("speaker")
293   MDRV_DEVICE_REMOVE("mono")
294   MDRV_DEVICE_REMOVE("speaker")
295295   // machine
296296   MDRV_MACHINE_START(cybikoxt)
297297   MDRV_MACHINE_RESET(cybikoxt)
298298   // non-volatile ram
299299//  MDRV_NVRAM_HANDLER(cybikoxt)
300   MDRV_AT45DB041_REMOVE("flash1")
300   MDRV_DEVICE_REMOVE("flash1")
301301   MDRV_SST39VF020_ADD("flash2", 16, ENDIANNESS_BIG)
302302MACHINE_DRIVER_END
303303
src/mess/drivers/c64.c
r4962r4963
333333
334334/* devices config */
335335#include "includes/cbm.h"
336#include "includes/cbmserb.h"   // needed for MDRV_CBM_SERBUS_REMOVE
336#include "includes/cbmserb.h"   // needed for MDRV_DEVICE_REMOVE
337337#include "includes/cbmdrive.h"
338338#include "includes/vc1541.h"
339339
r4962r4963
578578   MDRV_SOUND_CONFIG(c64_sound_interface)
579579   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
580580   
581   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
582   MDRV_CARTSLOT_REMOVE("cart1")
583   MDRV_CARTSLOT_REMOVE("cart2")
581   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
582   MDRV_DEVICE_REMOVE("cart1")
583   MDRV_DEVICE_REMOVE("cart2")
584584
585585   MDRV_IMPORT_FROM(ultimax_cartslot)
586586MACHINE_DRIVER_END
r4962r4963
593593
594594static MACHINE_DRIVER_START( c64gs )
595595   MDRV_IMPORT_FROM( c64pal )
596   MDRV_SOUND_REMOVE( "dac" )
597   MDRV_CASSETTE_REMOVE( "cassette" )
598   MDRV_QUICKLOAD_REMOVE( "quickload" )
596   MDRV_DEVICE_REMOVE( "dac" )
597   MDRV_DEVICE_REMOVE( "cassette" )
598   MDRV_DEVICE_REMOVE( "quickload" )
599599MACHINE_DRIVER_END
600600
601601
602602static MACHINE_DRIVER_START( sx64 )
603603   MDRV_IMPORT_FROM( c64pal )
604604
605   MDRV_CBM_SERBUS_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
605   MDRV_DEVICE_REMOVE("serial_bus")   // in the current code, serial bus device is tied to the floppy drive
606606   MDRV_IMPORT_FROM( cpu_vc1541 )         // so we need to remove the one from MDRV_IMPORT_FROM(simulated_drive)!
607607
608   MDRV_SOUND_REMOVE( "dac" )
609   MDRV_CASSETTE_REMOVE( "cassette" )
608   MDRV_DEVICE_REMOVE( "dac" )
609   MDRV_DEVICE_REMOVE( "cassette" )
610610#ifdef CPU_SYNC
611611   MDRV_QUANTUM_TIME(HZ(60))
612612#else
src/mess/drivers/genesis.c
r4962r4963
728728   MDRV_CPU_MODIFY("maincpu")
729729   MDRV_CPU_PROGRAM_MAP(_pico_mem)
730730
731   MDRV_CPU_REMOVE("genesis_snd_z80")
731   MDRV_DEVICE_REMOVE("genesis_snd_z80")
732732
733733   MDRV_MACHINE_RESET( ms_megadriv )
734734   
r4962r4963
741741   MDRV_CPU_MODIFY("maincpu")
742742   MDRV_CPU_PROGRAM_MAP(_pico_mem)
743743
744   MDRV_CPU_REMOVE("genesis_snd_z80")
744   MDRV_DEVICE_REMOVE("genesis_snd_z80")
745745
746746   MDRV_MACHINE_RESET( ms_megadriv )
747747   
docs/messnew.txt
r4962r4963
10.131.1
10.132
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
r4962r4963
4242- Xerox 820 [Robbbert, Curt Coder]
4343- ZX97 (not working) [Miodrag Milanovic]
4444
45
46
4547Skeleton drivers :
4648------------------
4749- Agat-7
r4962r4963
150152- V-Tech Socrates
151153- XOR-100-12
152154
155
156
153157System Driver Changes:
154158----------------------
155159- [ATARI] Added proper labels and dumps to Atari 400, 800 and XE/XL. A
r4962r4963
191195
192196- [TI85] Bug 1711 fixed, and TI-82 progress in emulation [Xander]
193197
198
199
194200User Interface Changes:
195201-----------------------
196202(none)
r4962r4963
205211
206212Source Changes:
207213----------------
208- The core is based on MAME 0.131u4.  This incorporates all features of the
214- The core is based on MAME 0.132.  This incorporates all features of the
209215  update to this core.  [MAME team]
210216
211217- Converted the WAVE sound device to stereo. [Curt Coder]
whatsnew.txt
r4962r4963
10.131
10.132
22-----
33
44
55MAMETesters Bugs Fixed
66----------------------
7- 02399: [Known Issues/To-Do's] qmhayaku : Sound CPU is running at 4MHz in
8         real machine. (Luigi30)
9- 03115: [Graphics] nss_smw: Tilemap issue when displaying game map
10         (Angelo Salese)
11- 00767: [DIP/Input] bshark, bsharkj: Analog stick input is broken since
12         0.112u4. (Derrick Renaud)
13- 03070: [DIP/Input] harddriv, racedriv, steeltal and clones: Games map
14         some P1 inputs to P2 controls (Fabio Priuli)
15- 03105: [Documentation] quizmeku: Year is listed as 1994, but title
16         screen shows 1992. (Fabio Priuli)
7- 03013: [Misc.] [debug] "Error: free a non-existant block" on
8         TMS57002 source generation (Atari Ace)
9- 03241: [DIP/Input] aladbl: Unable to "Press Start" (Fabio Priuli)
10- 03238: [Crash/Freeze] gtmr and clones: Access Violation (Tafoid)
1711
1812
1913
2014Source Changes
2115--------------
22Removed the last use of PORT_PLAYER(2) for P1 inputs. [Fabio Priuli]
16Fixed colors in the Aristocrat Mark-IV driver. [Angelo Salese]
2317
24Merged memory maps in the suna8, supbtime, superchs, suprnova,
25suprslam, subs, suna16, stepstag, stfight, strnskill drivers.
26[Aaron Giles]
18Hooked up 2nd player mahjong panel in mjkjidai. [Angelo Salese]
2719
28Numerous improvements to the roul driver. [robiza]
20Watchdog hooked up in twinkle.c so test mode exits. [smf]
2921
30Merged findout.c memory map. [Angelo Salese]
22Fixed for good the colors in 86 Lions. [Angelo Salese]
3123
32Added basic implementation of the TMS9927 video controller.
33[Aaron Giles]
24Fixed address line swapping in Mirax. [Olivier Galibert]
3425
35Status games driver rewrite: [Aaron Giles]
36 - Reduced multiple drivers down to a primary one with minor tweaks
37 - Hooked up TMS9927 video generator
38 - Fixed statriv2v character generator to be more accurate
39 - Fixed incorrect colors
40 - Correct video timing
26Fixed rom 2 decryption in Mirax. [Tomasz Slanina]
4127
42Miscellaneous Naomi work and improvements. Some refactoring done,
43new games hooked up. Moved NAOMI DRIVER_INITs to specific
44machine/naomi.c & includes/naomi.h files, in preparation to add
45per-game JVS settings. [Angelo Salese, David Haywood]
28Improved the video emulation in Mirax. [Angelo Salese]
4629
47Changed generic NVRAM behavior so that all the variants look for a
48memory region named "nvram". If it is found and is of the same length
49as the generic_nvram_size, data is copied from there instead of
50filling the RAM with the fallback pattern. [Aaron Giles]
30Fixed a minor typo in the SSEM debugging features. [MooglyGuy]
5131
52Fixed mouse/lightgun buttons to individually select when using
53-mouse/-multimouse and -lightgun. Meaning you will not receive Mouse
54Button 0 Gun Button 0 when selecting in the UI. [Derrick Renaud]
32Fixed a number of year listings known to be unknown or incorrect the
33current MAME source. The source for these changes come from the book:
34Arcade TV Game List (Edition: Domestic and Overseas, 1971 - 2005).
35[Tafoid, Fujix]
5536
56Merged memory map and attempted to add proper colors in Carrera.
57[Angelo Salese]
37Update ghosteo driver with information out of eolith.c about QS1000
38and added the sample rom, with a note about it NOT being dumped from
39this PCB but is a common sample rom used by Eolith. [Brian Troha]
5840
59Fixed verbose output of RAW device names for XP. [Derrick Renaud]
41Fixed minor cycle counting inaccuracy in Z80 core. [Marshmellow]
6042
61When using RawInput - Fixed UI selection of Gun axis so Gun 1 is not
62always selected with the desired gun. [Derrick Renaud]
43Added the concept of device contracts. A contract is a well-defined
44set of interfaces supported by a device, and identified by a unique
45string identifier. A device may support any number of contracts,
46described in a list via the DEVICE_CONTRACT_LIST* macros. The purpose
47of contracts is to provide a means for devices to expose a standard
48set of interfaces to other parts of the system. For example, the PCI
49device should expose a contract that includes functions for
50configuration register access, and 32-bit I/O. Then any device with
51a PCI interface should implement the PCI contract, so that the PCI
52bus device can route things appropriately. [Aaron Giles]
6353
64Fixed XF flag in the 8085A core. [Aaron Giles]
54Removed the MDRV_<devtype>_REMOVE macros. A simple DEVICE_REMOVE
55works now that device types are not needed. [Aaron Giles]
6556
66Fixed frontend messages to leave enough space for clone longer names.
67[Fabio Priuli]
57Verified clocks on Samurai Aces pcb. [Corrado Tomaselli]
6858
69Added Toshiba TLCS-900/H cpu core. [Wilbert Pol]
59Added missing static and const qualifiers throughout the source.
60[Atari Ace]
7061
71Added T6W28 sound core (SNK(?) custom sn76489a clone). [Wilbert Pol]
62Changed several internal interfaces to be more consistent, namely
63(1) passing device_config as a const always, (2) passing
64running_machine as a non-const always, (3) eliminating running_machine
65where possible, (4) passing machine/device first, and (5) preferring
66(screen, bitmap, cliprect) over (machine, bitmap, cliprect) when all
67are needed for rendering. [Atari Ace]
7268
73removed YM2151 from gijoe which is not present on real PCB.
74[Yasuhiro Ogawa]
7569
76Fixed P2 gun reload in Lethal Enforcers II. [Derrick Renaud]
7770
78Fixed bug where repeating axis values were being selected for button
79input in UI. [Derrick Renaud]
80
81Documented PALs from Xenophobe board. [Kevin Eshbach]
82
83Crystallized 1945kiii.c, maygay1b.c, maygayv1.c, mwarr.c, n8080.c
84(20.16MHz crystal confirmed with schematics), pacman.c, panicr.c,
85rallyx.c. [Luigi30]
86
87
88
8971New games added or promoted from NOT_WORKING status
9072---------------------------------------------------
91Fantastic Journey [Olivier Galibert]
92Super Lucky Roulette [robiza]
93Status Blackjack [Aaron Giles]
94Status Fun Casino [Aaron Giles]
95Multi Game 2 [Mariusz Wojcieszek]
73Mirax [Olivier Galibert, Angelo Salese, Tomasz Slanina]
74Super Crowns Golf [Angelo Salese, Tomasz Slanina]
75Jockey Club [Andrew Welburn, Dumping Union]
9676
9777
9878
9979New clones added
10080----------------
101Asterix (Japan) [Chack'n]
102Ashura Blaster (World) [Tirino73]
81Shadow Force (Japan Version 3) [Guru]
10382
10483
10584
10685New games marked as GAME_NOT_WORKING
10786------------------------------------
108Marvel vs. Capcom 2 [Guru]
109Zombie Revenge [Guru]
110Guilty Gear X [Guru]
111Virtua Striker 4 (Japan) [Guru]
112Virtua NBA [Guru]
113Giant Gram Zen-Nippon Pro Wresring 2 [Guru]
114Dengen Tenshi Taisen Janshi Shangri-la [Guru]
115Virtua Striker 4 ver. 2006 (Rev D) (Japan)
116   [Alex's Rom Dumping Project]
117The Key Of Avalon - The Wizard Master - Server (GDT-0005C) (V4.001)
118   [Alex's Rom Dumping Project]
119Virtua Striker 2002 (GDT-0001) [Alex's Rom Dumping Project]
120Derby Owners Club II [Guru]
121Wild Riders [Guru]
122WWF Royal Rumble [Guru]
123Quiz Ah Megamisama [Guru]
124Dynamite Baseball Naomi [Guru]
125Dynamite Baseball '99 [Guru]
126Death Crimson OX [Guru]
127Tripple Draw [Aaron Giles]
128Casino Strip [Aaron Giles]
87Enchanted Forest [Palindrome]
88Janputer [alien_mame, Dumping Union]
89Dolphin Treasure [AGEMAME]
12990
13091
13192
1320.130u4
93
940.131u4
13395-------
13496
13597
13698MAMETesters Bugs Fixed
13799----------------------
138- 03106: [Sound] mouja: Sound Effects/Voice missing (Angelo Salese)
139- 03065: [Crash/Freeze] All sets in namcos12.c: [debug] MAME asserts
140         during load time (Aaron Giles)
141- 03069: [Crash/Freeze] All sets in midzeus.c: [debug] MAME asserts
142         during load time (Aaron Giles)
100- 02730: [Crash/Freeze] fiveside: Doesn't past rom check
101         (Angelo Salese)
102- 03226: [Crash/Freeze] dadandrn, mmaulers: Game sits at black screen.
103         (Tafoid)
104- 03222: [Sound] ctribe + clones: Music is missing (ShimaPong)
105- 03221: [Crash/Freeze] demonwld + clones: Game fails to start
106         (Tafoid)
107- 03217: [Misc.] All sets in twinkle.c: Beatmania IIDX chds were
108         added in chdformat < 4 (smf)
109- 03218: [Crash/Freeze] anteatgb: Game sits at POST screen (Tafoid)
143110
144111
145112
146113Source Changes
147114--------------
148Documented the www.segaresurrection.com decrypted Ninja Kids II sound
149rom so it doesn't show up as newly "found" bootleg version.
150[Brian Troha]
115Fixed megadrive PAL refresh rate (for MESS). [Enik Land]
151116
152Converted downtown, gondo, hbarrel, midres, timesold, topgunbl to use
153IPT_POSITIONAL. [Derrick Renaud]
117Simplified megadriv.c input reading. [Fabio Priuli]
154118
155Fixed Analog Settings to return to default when IPT_UI_SELECT (enter)
156pressed. Fixed misplaced brackets, allowing upper/lower case
157extensions for crosshair graphics and ldplayer chd files.
158[Derrick Renaud]
119Fixed NMI firing in Goal 92 (same sound hook-up as Euro League).
120[Angelo Salese]
159121
160Naomi updates: [Angelo Salese, David Haywood]
161 * Added H-Blank IN interrupt hook-up
162 * Generate a few more interrupts (ISP end of render, VIDEO end of
163    render)
164 * Some minor improvements to the irq system
165 * Added a bunch of Maple-DMA fixes, now moeru boots too
122Replaced almost all remaining cpu[num] occurrences in src/mame/ with
123tags. [Fabio Priuli]
166124
167Factored out MESS-specific code from machine/atari.c (cart init,
168loading & unloading) [Fabio Priuli]
125Converted Dallas DS1302 RTC to a device. [Fabio Priuli]
169126
170Correctly implemented 'trail' function in ninjakd2. [kanikani]
127Fix coin issue sqixr1. [ShimaPong]
171128
172Changed galgbios service switch to be a toggle. [David Haywood]
129Updated Intruder & Moon Base roms with PCB locations. [Brian Troha]
173130
174Fixed CPU_GET_INFO issues spotted by -validate in MESS debug build.
131Corrected some rom names & added some PCB locations to pipedrm. Added
132dipswitch locations. [Brian Troha]
133
134Corrected dipswitches in Konami's Wizz Quiz and added dipswitch
135locations. [Brian Troha]
136
137Significant improvements to the Super Crowns Golf video. Also hooked
138up inputs and DIP switches. [Angelo Salese, Yasuhiro Ogawa]
139
140Decrypted Mirax main program roms. [Olivier Galibert]
141
142Cleaned up Namco 5xxx docs, listing both MB88xx pin IDs and Namco
143custom IDs where appropriate. [Aaron Giles]
144
145Added clocks to the Namco 06xx in anticipation of improved device
146interconnection. [Aaron Giles]
147
148Added new file devtempl.h which can be used to generate the
149DEVICE_GET_INFO function. Updated all the Namco I/O devices to use
150this, along with the 6821pia and voodoo. [Aaron Giles]
151
152Updated galaga driver to use computed video timing. [Aaron Giles]
153
154Added configuration settings and analog adjusters to xml output (see
155e.g. mario or crbaloon). Also, added port categories for MESS.
175156[Fabio Priuli]
176157
177Added Dip Locations to jalmah.c. [Fabio Priuli]
158Correct BPROM names, added PCB location and documented the BPROM type
159for Moon Base. [Smitdogg, Dumping Union]
178160
179Improved test mode behaviour on the jalmah.c. [Angelo Salese]
161Corrected rom names for Wing Shooting Championship and added
162documentation of the new game features of v2.00.
163[Brian Troha, Dumping Union]
180164
181Added display of frame number to the beamx/y info in the register
182view in the debugger. [Aaron Giles]
165Converted DS1302 to use devtemplate. [Fabio Priuli]
183166
184munch mobile improvements: [robiza]
185 * implemented priorities
186 * removed unnecessary tile index check
167Converted ADC083x converters to be MAME devices. [Fabio Priuli]
187168
188Memory map merging for naughtyb.c, ssrj.c. [Angelo Salese]
169Converted Fujitsu MB3773 to be a MAME device. [Fabio Priuli]
189170
190Converted jangou & nightgal drivers to use resistors with the color
191proms. [Angelo Salese]
171Converted NEC uPD4701 to be a MAME device. [Fabio Priuli]
192172
193Reverted to older behavior for how modified input port fields are
194handled. The originally intended behavior is that a new field that
195intersected a previous field would completely wipe out the original
196field. Recently a change was made that changed the behavior to only
197remove a portion of the bits from the original field. This is actually
198problematic behavior, so the original behavior was restored.
199[Aaron Giles]
173Tekken Tag Tournament Japanese versions: Mark the in-practice undumped
174roms as NO_DUMP. The versions used in the source were from where from
175the export version and they're incompatible with the japanese program
176roms. [Olivier Galibert]
200177
201Fixed auto-center bug on analog joysticks. [Derrick Renaud]
178Converted ADC1213x converters to be MAME devices. [Fabio Priuli]
202179
203Fixed UI when modifying the inc/dec/analog fields of an analog control
204in sequence. [Derrick Renaud]
180Converted RP5H01 to be a MAME device. [Fabio Priuli]
205181
206Corrected System 1 Z80 clocking: [Aaron Giles]
207 * each opcode fetch is 2 cycles with /M1 low, so each byte of
208    opcode fetching causes slightly longer delays than the previous
209    tables
210 * implemented approximate wait state timing for videoram access;
211    further accuracy will rely on getting a dump of the PAL16R4
212    that controls the horizontal video timing
182Added DIP Locations and verified defaults for Speed Rumbler/Rush and
183Crash (using Speed Rumbler manual). [Tafoid]
213184
214Merged memory maps in taito_l.c, taito_x.c, taito_b.c, taito_f2.c,
215taito_f3.c, surpratk.c, system16.c, system18.c. Also removed some word
216handlers in favor of using READ8/WRITE8 directly in address maps.
217Removed some additional unnecessary handlers in favor of using
218AM_READ_PORT. [Aaron Giles]
185Fixed digitalker mode 2. [Olivier Galibert]
219186
220Changed the PPU2C0x implementation to be a device. [Nathan Woods]
187Partially converted NEC uPD4990A RTC to be a MAME device. Moved clock
188init to device_start. [Fabio Priuli]
221189
222Simplified the gun port handling in the Sammy Outdoor Shooting games.
223[Derrick Renaud]
190Added CPU core for the Manchester Small-Scale Experimental Machine
191(SSEM) from 1948. [MooglyGuy]
224192
225Small System 1 update: [Aaron Giles]
226 * correct video timing
227 * removed "small" video drivers for games that properly mask the
228    scrolling areas
193Updated the dipswitches and listed the dipswitches in the hvyunit
194driver. [Brian Troha]
229195
230Correct sound ROM for T-Mek 4.4 [Lars Bull]
196Added documentation about the Galaxian bootleg hardware known as
197Artic Multi-System. [Brian Troha]
231198
232Partial fix to bug MT 3070 (harddriv & racedriv do not show anymore
233P2 inputs for analog controls). Still thinking about steeltal.
234[Fabio Priuli]
199Added alternate read/write handlers to the Z80 PIO implementation.
200[Curt Coder]
235201
202Converted Motorola 6840PTM to be a MAME device. [Fabio Priuli]
236203
204Fixed VIA address map in 86 Lions. [Palindrome]
237205
238New games added or promoted from NOT_WORKING status
239---------------------------------------------------
240Tekken Tag Tournament (world versions) [Olivier Galibert]
206Fixed ROM filenames of CVS Hunchback and Logger. [Andrew Welburn]
241207
208Verified clocks and corrected 6502 cpu speed on "the deep".
209[Corrado Tomaselli]
242210
243211
212
244213New clones added
245214----------------
246Might! Pang (Euro 000925) [Corrado Tomaselli]
247Night Warriors: Darkstalkers' Revenge (Asia 950302?)
248  [Smitdogg Jones, Nicola Salmoria]
249Trivia Master (set 4) [SoftwareThis]
250Wolf Fang -Kuhga 2001- (Rohga Japan Ver.) [Team Japump!!!]
251Mystic Warriors (JAA) [Guru]
215Off Road Challenge v1.63 [Tormod, Smitdogg, Dumping Union]
216Touchmaster 5000 (v7.10 California) [Tormod, Smitdogg, Dumping Union]
217Touchmaster 7000 (v8.1X Evaluation) [Incog, Smitdogg, Dumping Untion]
218Bucky O'Hare (ver AA) [Irongiant]
219Street Fighter II - The World Warrior (World 910214, TAB Austria
220   bootleg) [TeamEurope]
252221
253222
254223
255New games marked as GAME_NOT_WORKING
256------------------------------------
257The Typing of the Dead [Alex's Rom Dumping Project]
258OutTrigger [Guru]
259Cannon Spike / Gun Spike
260Heavy Metal Geomatrix
261Super Lucky Roulette? [robiza, Angelo Salese]
262
263
264
2650.130u3
2240.131u3
266225-------
267226
268227
269228MAMETesters Bugs Fixed
270229----------------------
271- 01030: [Side-by-side] starjack: "Star Jacker" side-by-side test.
230- 03101: [Sound] jantotsu: Game gives incorrect calls (Angelo Salese)
231- 03196: [DIP/Input] daisyari: Game resets itself after full strip of
232         girl (Tafoid)
233- 02329: [Graphics] iganinju, plusalph and others: Very bad sprite lag
234         (Angelo Salese)
235- 03190: [Documentation] 86lions: 'Wrong' colours seem fixed when you
236         swap R/B values (Angelo Salese)
237- 03149: [Crash/Freeze] All sets in cps3.c: Access Violation
272238         (Aaron Giles)
273- 00983: [Graphics] pitfall2: Once you lose your last life, any object
274         not in the background shows up on the high score and continue
275         screens. (Aaron Giles)
276- 00984: [Graphics] 4dwarrio: The game resolution changes in the 2nd
277         players turn in the cocktail mode. (Aaron Giles)
278- 00257: [Graphics] wbmlb, wbmljb: When the player sprite reaches the
279         right side of the playfield, some garbage gfx appear on the
280         left side. (Aaron Giles)
281- 00303: [Graphics] regulus: In cocktail mode when it is player 2's
282         turn graphics from the top of the screen flash at the bottom
283         of the screen (Aaron Giles)
284- 00256: [Graphics] seganinj: [possible] Sprites leaving on the left
285         side on the screen aren't clipped properly. (Aaron Giles)
286- 03098: [Color/Palette] all sets in mcatadv.c: Palette regression
287         (Christophe Jaillet, Fabio Priuli)
288- 03087: [Graphics] daireika: Graphic artifacts on attract mode.
289         (Angelo Salese)
290- 03093: [Graphics] mazinger: the boss of 4th level is black (robiza)
291- 03092: [Sound] spuzbobl: Some sound samples are being played
292         indefinitely (David Haywood)
293- 01163: [DIP/Input] popbounc: [possible] MAME doesn't support paddle
294         input. (Fabio Priuli)
295- 02187: [Documentation] All games of "Technos": Fix for manufacturer.
296         (Fabio Priuli)
297- 02558: [Graphics] Graphic priority is not fully understood.
298         (Angelo Salese)
299- 02557: [Graphics] All games in jalmah.c: There are square gaps
300         during gameplay. (Angelo Salese)
301- 00598: [DIP/Input] popbounc: Regardless of whether the "paddle" or
302         "joystick" option is activated in the dipswitch, the controls
303         are broken. (Fabio Priuli)
304- 00947: [Graphics] batsugun: At the level 4 boss there's a sprite
305         problem. (robiza)
306- 02562: [Interface] Ability to choose arbitrarily named crosshair
307         pictures (Derrick Renaud)
239- 03187: [Documentation] scin: Game title is different as shown in
240         picture (Fabio Priuli)
241- 03176: [Graphics] cheekyms: Graphic Regression (Pierpaolo Prazzoli)
242- 03182: [Sound] Many sets in system1.c: Missing Sound (Aaron Giles)
243- 03178: [DIP/Input] dragngun: Unable to move Crosshair (Fabio Priuli)
308244
309245
310246
311247Source Changes
312248--------------
313Crosshair update: [Derrick Renaud]
314 * Added Crosshair Options menu
315    - ability to individually enable/disable crosshairs
316    - ability for them to automatically disappear after a set amount
317       of time (this is now the default)
318    - ability to select crosshair graphic
319    - all settings are saved in the cfg file
320 * Removed F1 toggle for crosshairs
321 * Added new command option -crsshairpath
322    - store all selectable graphics here
323    - see config.txt for further info
249Fixed Oki banking in Grand Cross. [Angelo Salese]
324250
325Merged memory maps, renamed sets in the following drivers: vendetta,
326videopkr, wrally, vball, unico, tsamuri, triplhnt, toypop, tnzs,
327topshoot, topspeed, tecmo, tecmo16, tecmosys, terracre, thoop2,
328tunderx, tiamc1, timelimt, taito_z. [Aaron Giles]
251Added basic ADPCM support to Grand Cross [Angelo Salese]
329252
330Added direct mode JVS command, used by the i/o for the later Naomi
331games [ElSemi, Angelo Salese]
253Fixed title screen display in Joshi Volleyball [Angelo Salese]
332254
333hyprduel fix [Hau]
255Fixed sound mute for system 2 games. [Aaron Giles]
334256
335Force cpu resyncs main<->protection on pgm. [David Haywood]
257The logic for detecting merged roms did not check all the rom sources
258in the parent, leading to cases where roms from devices aren't
259detected as merged (e.g. ldv1000 in superdqs). This fixes it.
260[Atari Ace]
336261
337trackfld cleanups: [Aaron Giles]
338 - derived clocks where possible
339 - complete memory maps from the schematics
340 - hooked up proper sound command latching
341 - reimplemented 6802-based ADPCM samples for the bootlegs
342 - merged memory maps
343 - extended NVRAM to the full RAM range (according to schematics)
344 - created common include file and modified drivers to use it instead
345    of explicit externs
262Added save state to artmagic.c and runaway.c. [Xander]
346263
347Removed msb/lsb handlers from taitosnd. Updated all drivers to
348call the 8-bit versions directly from the address maps. [Aaron Giles]
264Added newly-dumped PROMs to Robocop. [Irongiant]
349265
350Did bulk replace of AM_READ/WRITE(SMH_NOP) -> AM_READ/WRITENOP.
351[Aaron Giles]
266Added static qualifiers to recently-added code. [Atari Ace]
352267
353Reverted recent TMS32025 timing change which busted Cool Pool sound.
354[Olivier Galibert]
268Added missing coin lockout to lottofun. [Luigi30]
355269
356exctsccr update: [Uki]
357 - verified clock frequency (including 4KHz NMI)
358 - position 6A is not populated in JAPAN ver.
359 - sound tempo is wrong in all sets (with or without this change)
360 - clock for AY-3-8910 is 14.31818M/8 except for main melody
270Improved lamp output in MPU4.c. Redrawing now only occurs on the peaks
271of the 50Hz AC Power. [AGEMAME]
361272
362taito_l input updates: [Fabio Priuli]
363 * added plgirls cheat dip-switch [found by Gatinho]
364 * added plgirls2 coin mode B
273Updated the megatech.c parts list with info from more carts and
274fixed some errors in the notes for the rom definitions, and arranged
275them in correct order. [Smitdogg]
365276
366Fixed crshrace coinage dips. [stephh, Fabio Priuli]
277Added LSHIFT and RSHIFT as alises to << and >> for cheat files.
278[Pugsy]
367279
368Fixed mechattu coinage dips. [Fabio Priuli]
280Added Guru-readme(TM) for Triforce. [Guru]
369281
370Redumped GFX ROM of kakumei2. [Uki]
282Added Guru-readme(TM) for Sega model3 and I/O board. [Guru]
371283
372Improved the Wave-DMA behaviour in Naomi, added PVR-DMA support.
373[Angel Salese]
284Moved the configuration of m6502-family callbacks to the cpu
285configuration. [Wilbert Pol]
374286
375Naomi video cleanups/reworking. [David Haywood]
287Split Naomi video ram access into 32-bit / 64-bit areas pending more
288information on how they actually mirror (it's not a straight mirror).
289[David Haywood]
376290
377DIPSW update [kanikani]
378 - added DIP location to following drivers: djmain.c, fitfight.c,
379    gaiden.c, hornet.c, namcos1.c, namcos86.c, nwk-tr.c, skykid.c,
380    zr107.c
381 - enabled some DIPSW settings
291psattack CF card redump and ID metadata added to create a CHD. [Guru]
382292
383PGM update [XingXing]
384 - added video ram mirroring (fixes a glitch in kovsh)
385 - corrected some set names
293H8 series MCU updates: [R. Belmont]
294 - Implemented 8-bit timers and free-running counter for H8/3334
295 - Added bld #imm, @Rd instruction
296 - Improvements to interrupts and the serial ports
386297
387neogeo fixes: [Fabio Priuli]
388 * fixed popbounc controls bug (MT 598)
389 * removed use of sprintf
390 * added a note about service menu browsing when mahjong panel is ON
298Namco System 23 update: [R. Belmont]
299 - Changes and documentation added on how the I/O board is hooked up.
300The H8/3334 based TSS-I/O board sometimes handshakes successfully in
301Time Crisis 2 now but timing-related problems remain.
391302
392Konami inputs improvements: [Fabio Priuli]
393 * Added source file konamipt.h to unify Konami inputs where possible
394    (e.g. most 80s-90s games were using basically the same coinage
395    settings and joystick inputs).
396 * While at it, verified all 0x00 coinage effects in drivers which now
397    use konamipt.h (fixing a few mistakes: hexion, mikie, crimfgtj...)
398 * Added finalizb service coin. Removed roadf coin4 & asterix coin3
399    (neither used by the games nor present in service mode).
400 * Fixed gberetb coin inputs (they were switched).
401 * Added port_condition to hcrash so that brake appears only when
402    present in the chosen cabinet.
403 * Cleaned up mystwarr.c & moo.c input handlers.
404 * Verified 0x00 coinage settings in remaining Konami drivers (and two
405    Banpresto ones using same coinage settings)
303Namco System Super 22 update: [R. Belmont]
304 - Reimplemented SPOT RAM - Tokyo Wars relied on some details not
305    previously seen
306 - Fixed uninitialized RAM area that caused random sprite colors
307    since 0.120 (thanks to Phil Bennett for debugging the problem)
308 - Updated Guru Readme(tm)
406309
407Fixed the priority system in the jalmah.c driver [Uki, Angelo Salese]
310Fixed Aliens P2 inputs. [stephh]
408311
409Simulate 'keyoff' in the SPU. The envelopes aren't actually emulated,
410but the sound is silenced after a key-off (by placing the sound in a
411'release' state)  This prevents audiable sound from looping forever.
412[David Haywood]
312Gladiator coinage fix. [Tafoid]
413313
414Build the IDE features table only when there is a CHD available.
415[Curt Coder]
314Fixed regressed sound in wc90b.c. Also fixed nested NMIs, improving
315msm sound, and converted memory maps to current standards.
316[Angelo Salese]
416317
417Added device-based implementations of the eeprom and i2c deevices.
418[Samuele Zannoli]
318Corrected the 202 entry in the LFO Frequency Table (and comments for
319it) for the YMF271 based on a formula by Olivier Galibert.
320[Brian Troha, Roman Scherzer]
419321
420Added diplocations to finalizr.c, gradius3.c, pandoras.c, rollerg.c
421and ultraman.c based on Guru's notes (thanks to AJG, who fwded them
422to me). [Fabio Priuli]
322Added PCB rom locations to Dog Fight (Thunderbolt) romdef as well as
323the bprom type. [Brian Troha]
423324
424Dumped 1 BPROM of suchipi [Uki]
325Fixed ROM filename for Battle Zone. [Andrew Welburn]
425326
426Changed Z80 cycle table definitions to be per-device. Removed
427old set_info constants for the tables; they are now set up via
428the z80_set_cycle_tables function. [Aaron Giles]
327Added basic MSM support for Super Crowns Golf, and fixed NMI
328generation. Also found & hooked up the flip screen bit, and cleaned
329up the memory maps. [Angelo Salese]
429330
430m90: reduced volume for all games, removed wrong graphics flag and
431added no cocktail flag for risky challenge. [robiza]
331Hooked up sprite buffering in the Jaleco Mega System 1 driver.
332[Angelo Salese]
432333
433Reduced volume for bombrman, added wrong graphics flag for quizf1.
434[robiza]
334Corrected Euro League clock speeds. [Mike Coates]
435335
436Removed old hardcoded keyboard handling for Atari 8bit systems and
437used more reasonable key matrix scan. No regressions expected in MAME
438(tested maxaflex.c games). [Fabio Priuli]
336Fixed ADPCM stop flag in Jantotsu, and cleaned up some routines in the
337driver. Added an heuristic table for the msm samples. Fixed MSM
338frequency. [Angelo Salese]
439339
440Many Naomi tweaks and improvements, plus a number of new sets added
441but with no credit specified. [David Haywood]
340Hooked up sound in Super Shanghai Dragon's Eye. [Angelo Salese]
442341
443Corrected names for Champion Italian PK boards (thank f205v for
444spotting this). [Mirko Buffoni]
342Fixed some dip-switches quirks in the Mexico 86 driver and enabled the
343single board 4 players mode. [Angelo Salese]
445344
446Sega System 1/2 rewrite: [Aaron Giles]
447 * accurate collision detection in all games
448 * correct full memory maps
449 * hooked up 8255 and Z80 PIO correctly
450 * unified many hacked variants into common hardware models
451 * proper mixing using the mixing PROM
452 * converted to tilemaps
453 * fixed shtngmst sprites
454 * correct Z80 timing
455 * proper sound interrupt signaling and feedback
456 * full description of video hardware
457 * proper input hookup in dakkochn
458 * cleaned up rendering code
459 * fixed cocktail mode in pretty much all games
460 * fixed stuck sprites in some games
461 * partial 8751 simulation for choplift
462 * proper global muting (attract sound off works in older games)
463 * yes, the Pitfall 2 title is missing; more work to be done
345Improved timing of communication between the main and sound cpus in
346the megadriv driver. [Wilbert Pol]
464347
465Put tables used for RGB utilities in a single object file rather
466than compiling them as statics in every object that uses them.
467[Vas Crabb]
348Fixed flickering in Super Shanghai Dragon's Eye on girl presentation
349screens. Split memory maps for the different sshangha version, and
350fixed sound in the parent set. [Angelo Salese]
468351
469Added small workaround to get Thunder Hoop 2 past the "bad
470coprocessor" screen, but the game still has issues. [Peter Ferrie]
352Added I8751 ROM to sqixu [Dr. Decapitator, Nicola Salmoria]
471353
472Fixed incorrect DIP location for dealer in epos.c. [Tafoid]
354Fixed sqix/sqixa bootleg MCU bad dump by comparison with the original.
355[Nicola Salmoria]
473356
357Fixed coin lockout in Tetris (Arkanoid HW) and removed the
358GAME_WRONG_COLORS flag since the colors are correct. [Angelo Salese]
474359
360Added MSM hook-up for Ganbare Chinsan Ooshoubu. [Angelo Salese]
475361
362Fixed background colors in Tryout and cleaned-up the NMI firings on
363coin insertion. [Angelo Salese]
364
365Cleaned-up the Mazer Blazer driver. [Angelo Salese]
366
367Fixed foreground color offsets in Tryout, game colors should now be
368100% accurate. Also fixed flip X on the sprites, fixed scrolling
369issues, and added screen disable flag. [Angelo Salese]
370
371Disabled unused variables in the project that were only assigned to
372but never used. [Oliver Stoeneberg]
373
374Removed the pulse input on the touchscreen for the touchmaster
375drivers, making centipede returns (tm4k), breakout3k (tm3k),
376wordsearch (tm8k) and possibly other games playable do to the need for
377"dragging" the screen. An example of this is the word search game
378where it is necessary to drag from the start letter to the end to
379highlight the selection, which is not possible with a pulse input.
380[Mike Green]
381
382Corrected the clock speed for Pirate Ship Higemaru. [Stefan Lindberg]
383
384Hand-tuned bgm OKI sound chip frequency in mirage.c. [Angelo Salese]
385
386Added readmes to Jail Break, Ninja Warriors, Operation Wolf and
387Rainbow Islands. [Guru]
388
389Fixed sound banking and priorities in Mirage Youjuu Mahjongden.
390[Angelo Salese]
391
392Decoded color proms and fixed bitplanes in Mirax. [Angelo Salese]
393
394CPUs actually take some time to reset. Changed the 68000/68010 to
395eat an appropriate number of cycles after a reset. [Aaron Giles]
396
397Sega System 16A changes: [Aaron Giles, Dr. Decapitator]
398 * Added MCU dumps to quart21 and bodyslam
399 * Hooked up MCU in these games
400 * Marked games using simulated MCU as "unemulated protection"
401    as the MCUs clearly do more than what we are simulating
402
403Eliminated SMH_* usage in all memory maps in drivers beginning with
404A and B. [MooglyGuy]
405
406Added some security custom info to the Sega drivers
407(from http://www.higenekodo.jp/sega_n.htm). [Yasuhiro Ogawa]
408
409Converted the Namco 50xx, 51xx, 52xx, 53xx, 54xx, and 06xx into
410proper devices. [Aaron Giles]
411
412Added DERIVED_CLOCK() macro which can be used by sub-devices to
413derive their clock from the parent device. [Aaron Giles]
414
415Tweaked some of the laserdisc interfaces to use ROM_NAME() and
416MACHINE_DRIVER_NAME() macros. [Aaron Giles]
417
418Changed the Namco 52xx and 53xx devices to run the actual MCU instead
419of simulating the behavior. Hooked them up properly in bosco, digdug,
420and polepos. [Aaron Giles]
421
422Fixed Bronx regression. [Angelo Salese]
423
424Guessed ADPCM PAL shuffling in Idol Janshi Suchie-Pai Special, it
425sounds better but I'm not sure if it's 100% accurate (I need a
426side-by-side test). [Angelo Salese]
427
428Added mirrors to Pole Position memory maps. [Aaron Giles]
429
430DIP switch changes: [kanikani]
431 - added DIPLOCATION to scontra and thunderx
432 - added some DEF_STRs (Difficult, Very Difficult, etc.) and modified
433    drivers using them
434
435Added internal memory maps and internal clock divider to the MB88xx
436CPUs. Removed now-redundant memory maps from drivers and removed
437explicitly-specified clock dividers. [Aaron Giles]
438
439Continued changing CPU references from numbers to tags in drivers.
440[Fabio Priuli]
441
442Preliminary work on beatmania iidx, still lots to do. [smf]
443
444Several MB88xx changes/fixes: [Aaron Giles]
445 - internal timer support now works; prescaler is guessed based
446    on Pole Position sample playback frequency
447 - external counter support works
448 - a basic mechanism for reading serial input has been added; it
449    is not sufficient for a full implementation, but good enough
450    to sample the SI pin at startup
451 - fixed TSTS/TSTV to clear their respective flags
452 - fixed CI and CYI to compute imm-reg instead of reg-imm
453 - added masking of the PA register upon RTI/RTS to prevent bogus
454    PC values
455
456Fixes compilation with ARM7_DEBUG_CORE enabled.
457[Reijo Tomperi, Oliver Stoeneberg]
458
459Added support for parsing horizont.ini or vertical.ini based on the
460game's orientation. [Krick]
461
462Made a pass at shuffling/improving the system 16 and 18 bootlegs.
463Some games are probably more broken now, but they are better
464structured for future improvements. [David Haywood]
465
466Fixed a few potential memory leaks detected by cppcheck and also added
467an errormessage to verinfo. [Oliver Stoeneberg]
468
469Added Guru-readme(TM) for TWINKLE hardware. [Guru]
470
471
472
476473New games added or promoted from NOT_WORKING status
477474---------------------------------------------------
478Unknown Poker [robiza, Angelo Salese]
475Aqua Jet (Rev. AJ2 Ver.B) [Guru, R. Belmont, Phil Bennett]
479476
480477
481478
482479New clones added
483480----------------
484Exciting Soccer (Japan) [Uki]
485Super Megatouch IV Tournament Edition
486  (9255-51-01 ROB, Standard version) [Brian Troha]
487Pit Fighter (rev 7) [Smitdogg]
488Chase H.Q. (US) [Smitdogg]
489Crush Roller (bootleg?) [Tafoid, f205v]
481Wizard Fire (Over Sea v2.1) [Irongiant]
482US AAF Mustang (TAB Austria bootleg) [Klaus Sommer]
483Chaos Heat (World) [Tormod / Brian Troha]
484Bloody Roar (Japan) [D. Alves, Smitdogg, Dumping Union]
485Fighters' Impact (Japan) [TH60]
486Ehrgeiz (Japan) [Uki]
487Super Qix (World, Rev 2) [Stefan Lindberg]
488High Impact Football (rev LA5 02/15/91)
489  [Tormod, Smitdogg, Dumping Union]
490Intruder [Smitdogg, jmurjr, ranger_lennier]
491Pro. Sports (alternate) [Smitdogg] -- not working
492Forgotten Worlds (World) [Corrado Tomaselli]
493Cherry Bonus III (alt) [David Haywood]
490494
491495
492496
493497New games marked as GAME_NOT_WORKING
494498------------------------------------
495Key of Avalon 1.30 - Client [Alex's Rom Dumping Project]
496Key of Avalon 2.0 - Client [Alex's Rom Dumping Project]
497Sega Network Taisen Mahjong MJ 2 [Alex's Rom Dumping Project]
498Sega Network Taisen Mahjong MJ 3 (Rev D) [Alex's Rom Dumping Project]
499Triforce DIMM Updater [Alex's Rom Dumping Project]
500Virtua Fighter 4 Final Tuned (Rev D) [Alex's Rom Dumping Project]
501Virtua Fighter 4 Final Tuned (Rev A) [Alex's Rom Dumping Project]
502Initial D : Arcade Stage Ver. 3 (Japan) (Rev B) [Alex's Rom Dumping Project]
503Virtua Fighter 4 Evolution (Rev A) [Alex's Rom Dumping Project]
504Wangan Midnight Maximum Tune 2 (Japan?) [Alex's Rom Dumping Project]
499Alpine Racer 2 (Rev. ARS2 Ver.A) [Guru]
500Tokyo Wars (Rev. TW2 Ver.A) [Guru, R. Belmont, Phil Bennett]
501Microman Battle Charge [Guru]
502Technical Bowling [Guru]
503Enchanted Forest (E - 23/06/95, Local) [AGEMAME]
504Golden Pyramids (B - 13-05-97, USA) [AGEMAME]
505Queen of the Nile (B - 13-05-97, NSW/ACT) [AGEMAME]
506Super Cherry Master / New Cherry Gold '99 [David Haywood]
507Super Cherry Master / Super Cherry Gold [David Haywood]
508Super Cherry Master / Grand Cherry Master [David Haywood]
505509
506510
507511
5080.130u2
5120.131u2
509513-------
510514
511(Due to an oversight, credit for the new Neo Geo BIOS was incorrectly
512given in the previous whatsnew. Thanks to Massimiliano Macri for the
513donation.)
514515
515
516
517516MAMETesters Bugs Fixed
518517----------------------
519- 02382: [Graphics] peke1012: Bad ROM dump causes graphics glitches
520         (Jim Stolis)
521- 02977: [Crash/Freeze] rdft2j2: Access Violation (Haze)
522- 03071: [Sound] tndrcade tndrcadj: music problem (Phil Bennett)
523- 03063: [Misc.] psyvaria, psyvarrv, usagi, nightrai, xiistag: Some
524         G-Net cards were dumped without restoring them to defaults
525         first (Guru)
526- 03068: [DIP/Input] leprechn: Lives are incorrect in Dip Settings
527         (Tafoid)
528- 03024: [DIP/Input] jrpacmbl: All inputs perform wrong function in-
529         game (Fabio Priuli)
530- 02972: [Documentation] shuttlei: Year is listed as 197?, confirmed
531         as 1979. (incog)
532- 02978: [Documentation] suprgolf: Year is listed as 19??, confirmed
533         as 1989. (incog)
534- 02970: [Documentation] sfbonus, sfbonusa, sfbonusb, sfbonusd,
535         sfbonusv: The year is 2003 according to the attract mode.
536         (incog)
537- 02968: [Documentation] parrot3: The year is 2003 according to the
538         attract mode. (incog)
539- 02969: [Documentation] parrot3b: The year is 2004 according to the
540         attract mode. (incog)
541- 02999: [DIP/Input] taotaida: need more 3 buttons (Fabio Priuli)
542- 03029: [DIP/Input] jitsupro, kazan, p47, rodland, stdragon and
543         clones: "Demo sounds" dip-switch inverted (Fabio Priuli)
544- 03042: [Documentation] mjclub: Dip-Switch settings for mjclub
518- 03173: [Sound] Many sets using atarijsa.c: Audio samples are
519         incorrectly pitched (Phil Bennett)
520- 03171: [Crash/Freeze] pang, spang, pompingw, pkladies: Ram error
521         during the boot checking of the games. (Pierpaolo Prazzoli)
522- 03170: [Sound] mtrap and clones: Sound effects cycle constantly
523         while playing (Fabio Priuli)
524- 03169: [Crash/Freeze] All sets in hvyunit.c: Access Violation
525         (Angelo Salese)
526- 03168: [Sound] All sets in halleys.c: Audio is missing completely
545527         (Fabio Priuli)
546- 03031: [DIP/Input] seganinj and clones: Player 1 button 3 not
547         present (Fabio Priuli)
548- 03048: [Sound] equites and clone: strange noise ingame
549         (Phil Bennett)
550- 03035: [Save/Restore] frogg, froggrmc: Autosave does not work
551         correctly (couriersud)
552- 02172: [DIP/Input] some driving games: MAME allocates Player 2 - 4
553         inputs for deficient Player 1 inputs. (Fabio Priuli)
528- 03167: [Color/Palette] fromancr, fromanc4: Second screen has
529         incorrect palette/colors (Fabio Priuli)
530- 03166: [Graphics] tattass, tattassa: Missing Graphics (Fabio Priuli)
531- 03153: [Crash/Freeze] penbros: Access Violation (Mamesick)
532- 03163: [Graphics] sailormn, sailormo: Playfield Graphics regression
533         (Mamesick)
534- 03150: [Crash/Freeze] metmqstr, nmaster: Access Violation (Mamesick)
535- 03162: [Sound] baddudes, hbarrel, birdtry, robocop, hippodrm,
536         ffantasa : Game has no sound at all (Angelo Salese)
537- 03147: [Misc.] shtngmst, shtngmst1: wrong sha1 values for shooting
538         master ic74 (Nicola Salmoria)
539- 03160: [Crash/Freeze] tubepb: Access Violation (Fabio Priuli)
540- 03152: [Crash/Freeze] All Sets in nss.c: Access Violation
541         (Fabio Priuli)
542- 03151: [Crash/Freeze] jajamaru, mightybj, topgun, vsgshoe: Access
543         Violation (Fabio Priuli)
544- 03154: [Crash/Freeze] All sets in pooyan.c: Access Violation
545         (Fabio Priuli)
546- 03157: [Crash/Freeze] All Sets in policetr.c: Access Violation
547         (Fabio Priuli)
548- 03159: [Crash/Freeze] superchs: Access Violation (Fabio Priuli)
549- 03148: [Crash/Freeze] All sets in konamigx.c: Access Violation
550         (Fabio Priuli)
551- 03146: [Compiling] cpu\vtlb.c 64 bit warning: 64bit vs compile
552         warnings (smf)
554553
555554
556555
557556Source Changes
558557--------------
559Added board description to Zodiack. [Guru]
558Added notes to several drivers indicating specifically that an MCU
559is needed for decapping. [Angelo Salese]
560560
561Demoted some games to have the GAME_NOT_WORKING flag:
562 - Alligator Hunt (protected version);
563 - Glass;
564 - Great Guns;
565 - Name Club Ver. 3;
566 - Snow Board Championship;
567 - Tetris Korean bootleg;
568 - Thunder Hoop 2: TH Strikes Back;
569 - Touryuu Densetsu Elan-Doree / Elan Doree - Legend of Dragoon;
570 - World Grand Prix;
571 - World Rally 2 - Twin Racing;
561Naomi renderer: add all 64 blending modes, and made it anal-retentive
562where it comes to position precision. [Olivier Galibert]
572563
573Some various Naomi improvements and SH4 hacks to get more Naomi games
574booting farther. [David Haywood, Angelo Salese]
564Converted Irem M14 HW to tilemaps and cleaned-up the driver.
565[Angelo Salese]
575566
576Added a PCB layout for the large single plane PCB that Incredible
577Technologies used for the Golden Tee 3D series (3D through Classic),
578Shuffleshot, World Class Bowling and World Class Bowling Deluxe.
579[Guru]
567Renamed yumefuda.c/hanaroku.c drivers to albazg.c/albazc.c (like they
568should be properly named). [Angelo Salese]
580569
581Added PCB layout & hardwared documentation for Atari's Badlands [Guru]
570Added MCU no dumps for the Grand Striker driver. [Angelo Salese]
582571
583WIP driver for Cubo CD32 [Mariusz Wojcieszek]:
584 - AGA palette
585 - AGA bitplane data fetching
586 - support for up to 8 standard bitplanes
587 - HAM8 mode
572Fixed background colors in Alien Command. [Angelo Salese]
588573
589Further annotated the game lists is mamedriv.c. [Yasuhiro Ogawa]
574Added profile markers to naomi, to see what % of cpu time things are
575using. [David Haywood]
590576
591Fixed pending IRQs handling in the TLCS-90 CPU core [Luca Elia]
577Lowered the AY-8910 volumes in the adp driver. [Angelo Salese]
592578
593Updated video timing in bestbest to match PCB [Guru]
579Some Maple fixes, now Street Fighter Zero 3 Upper should be fully
580playable. [Angelo Salese]
594581
595ejsakura fix: added ymz280b_r to memory map to prevent musics to stop
596while playing [Cs9ph7Rg0]
582Added cart info documentation update for the two resent Mega-Tech cart
583dumps: Shadow Dancer & Streets of Rage. [Brian Troha]
597584
598nemesis.c fix [Hau]
599 - Fixed screen priority problems in Kitten Kaboodle.
600 - Added flip screen & cocktail support.
601 - Merged memory maps in hyprduel.c
585Merged memory maps in the following remaining drivers and cleaned up
586some comments: homedata.c, intrscti.c, inufuku.c, irobot.c, jack.c,
587kaneko16.c, naughtyb.c, scobra.c, scramble.c, slapfght.c, spaceg.c.
588[MooglyGuy]
602589
603CPU cores are now enabled on a per cpu core family basis instead of
604per cpu core variant. As a result CPUDEFS is no longer needed in the
605makefile. [Wilbert Pol]
590Fixed Naomi bug in computedilated, was causing bad portraits in
591shikgam2. [David Haywood]
606592
607TMS320C25 fixes and enhancements: [Olivier Galibert]
608 - accept IRQs on IDLE
609 - actually count irq processing and instruction fetching cycles
610 - add support for external serial frame sync with internal
611    triggering (aka TXM=1 and FSM=1).
593Removed second parameter from MDRV_CPU_PROGRAM_MAP, MDRV_CPU_DATA_MAP,
594and MDRV_CPU_IO_MAP. For the remaining drivers that used multiple
595address maps, converted them to use AM_IMPORT_FROM to import the base
596map. [Aaron Giles]
612597
613Updated G-Net CHDs (reset to factory default settings and clear
614high-score table) [Guru]
598Added bilinear filtering to Naomi video emulation. Textures are still
599a bit crawly since we're always using the lowest MIP level.
600[MooglyGuy, Aaron Giles]
615601
616Added description of G-Net card/PCB [Guru]
602Short-circuit the naomi rendering in non-textured cases, prevents a
603lot of bad graphics. [David Haywood]
617604
618Fixed crash due to recent cheat engine changes. [Pugsy]
605Fixed tubepb regression. [Fabio Priuli]
619606
620Fixed the sprite collision code of the mcu simulation in
621'machine\mexico86.c'. [Aladar]
607Added MC-8123 key for Gigas. Of course the game still doesn't work
608because the program ROM is missing. [Nicola Salmoria]
622609
623Improved sound banking in galpani2 driver. [Luis Faria]
610Applied some of the Naomi exclusive texture mode rules.
611[David Haywood]
624612
625Gameplan improvements: [Tafoid]
626 - verified and simplified the DIPs, adding locations
627 - adjusted clocks in Leprechaun and Pirate Treasure based on info
628    from the manual
613Added a work-around for the UART FIFO read only status register on the
614SH-4 to make Tetris Kiwamemichi happy to boot. It crashes shortly
615after that like La Keyboard though (jumps to an unmapped address).
616[Angelo Salese]
629617
630Implemented model2 inputs through direct AM_READ_PORT access rather
631than using read handlers. The patch also fixes daytona brakes (which
632were previously labeled with the wrong tag). [Fabio Priuli]
618Hacked the Naomi YUV interrupt to fire when the base register is
619written.  (Currently looking at implementing properly, but this
620prevents KuruCham and SS2005 from hanging). [David Haywood]
633621
634Simplified input handling in Taito F3 games. [Fabio Priuli]
622Converted namcos2.c, niyanpai.c and nbmj9195.c to use AM_IMPORT_FROM
623instead of macros. [Angelo Salese]
635624
636Various PGM fixes and improvements [XingXing]
625Fixed regression for mitchell.c games. [Pierpaolo Prazzoli]
637626
638Fixed rdft2j2 set, it was using rdft roms instead of the rdft2 ones.
639[David Haywood]
627Added MCU no-dump to Air Buster. [Angelo Salese]
640628
641Additional PGM improvements: [David Haywood]
642 - Added emulation of the earlier type of ARM (ASIC27A, 5585E type)
643    Used this for protection emulation on Photo Y2k, Knights of
644    Valour Superheroes instead of old simulation code
645 - Disabled protection simulation for several sets. This demotes
646    Knights of Valour / Knights of Valour Plus to NOT working as there
647    is no dump of the internal rom.
648 - Photo Y2k still works because it's using the emulation added above,
649    but You can no longer change region as this is supplied by the
650    ASIC27A device which is now emulated.  This is correct.
651 - Added several new sets, several of which are re-releases of the
652    games using the ASIC 27A instead of the previous protection
653    devices. (oldss, killbldp)
654 - Removed per-game speedup hacks, as they're no longer needed for the
655    ARM based games to boot correctly.
629Commented out the ACIA irq, was causing missing bgms in Street
630Fighter Zero 3 Upper. [Angelo Salese]
656631
657Fixed core_strwildcmp by increasing the limit from 8 to 16 characters.
658[smf]
632Improved the debugging on the Naomi Wave DMA handler. [Angelo Salese]
659633
660Verified and simplified munchmo DIPs, and added locations. Also fixed
661clock speeds and AY-8910 clock to match recordings. [Tafoid]
634Converted DJ Boy memory maps to current standards. [Angelo Salese]
662635
663Verified DIPs and added locations for Road Fighter. Adjusted defaults
664to match the manual. [Tafoid]
636Fixed pipedrm tag problem. [Fabio Priuli]
665637
666In bublbobl, emulated CPU1 (slave) <-> AUDIOCPU communications and
667AUDIOCPU reset at startup, previously this was disabled. [Mamesick]
638Fixed ninjakd2 DIPSW and notes. [kanikani]
668639
669Added samples emulation to Rough Ranger (V2.0), write ports A & B of
670YM2203 are used. [Mamesick]
640Fixed a couple of bugs in cave.c and seta2.c introduced with the
641memory map merges. [Fabio Priuli]
671642
672Added game-specific kludge to get music in SD Gundam Psycho Salamander.
673[Mamesick]
643MCS-51 fixes: [Aaron Giles]
644 * jb int0,<self> loops are now broken out of if int0 comes and is
645    taken
646 * externally-clocked counters only count when enabled
647 * internal RAM no longer wraps when accessed out of bounds
674648
675Fixed G-NET on big-endian hosts. [R. Belmont]
649System 1 changes: [Aaron Giles]
650 * hooked up 8751 properly
651 * removed old 8751 hacks
652 * shuffled Shooting Master sets
676653
654Fixed tattass regression from map merging. [Fabio Priuli]
677655
656Fixed P2 palette write handlers for fromancr and fromanc4.
657[Fabio Priuli]
678658
659Fixed halleys.c sound: ay8910 write handlers work on two bytes.
660[Fabio Priuli]
661
662Marked polystar, hellngt and totlvice CHDs as bad. Will be replaced
663soon. [Guru]
664
665Added missing YMZ280B ROM to evilngt/hellngt. [Guru]
666
667Fixed regression on homedata.c driver. [Angelo Salese]
668
669Fixed Legend of Makai regression. [Angelo Salese]
670
671Removed "BAD_DUMP" from the Red Baron AVG bprom, it has been verified
672correct (contents and label) by the Dumping Union. [Smitdogg]
673
674Improved the single board 4p mode in Kick N Run / Mexico 86. It
675basically works but 2p mode is broken so I still keep it as disabled
676by default. [Angelo Salese]
677
678Fixed Kiki Kai Kai exception. [Angelo Salese]
679
680Dumped io board rom to Dynamic Golf. [Guru]
681
682Fixed King Derby sprites wrap-around and flip x positioning.
683[Angelo Salese]
684
685
686
679687New games added or promoted from NOT_WORKING status
680688---------------------------------------------------
681Hidden Catch 3 [Pierpaolo Prazzoli, Tomasz Slanina]
682Iron Fortress [Smitdogg Jones, Dumping Project]
683Mahjong Vegas (unprotected set) [Luca Elia, Uki]
684E-Jan Sakurasou [Cs9ph7Rg0]
685Kollon [Guru]
686Otenki Kororin [Guru]
687Shikigami no Shiro [Guru]
688Magical Error wo Sagase [Hau]
689Knights of Valour Superheroes [XingXing, David Haywood]
689PT Reach Mahjong [Angelo Salese]
690Otenami Haiken (V2.04J) [Joerg Hartenberger, Guru]
691Shanghai Sangokuhai Tougi (Ver 2.01J) [Joerg Hartenberger, Guru]
692Choplifter (8751 315-5151) [The Decapping Project, Aaron Giles]
693Shooting Master (EVG, 8751 315-5159a)
694  [The Decapping Project, Aaron Giles]
695Noboranka [The Decapping Project, Aaron Giles]
690696
691697
692698
693699New clones added
694700----------------
695Super Puzzle Bobble (2.04J) [Guru]
696Zooo [Guru]
697Operation Wolf (Japan) [Guru]
698Puzz Loop (Asia) [Brian Troha]
701Samurai Nihon-ichi (set 3, harder) [f205v]
702Hatris (US) [Andrew Welburn]
699703
700704
701705
7020.130u1
703-------
706New games marked as GAME_NOT_WORKING
707------------------------------------
708IQ Pipe [SoftwareThis]
704709
705IMPORTANT NOTE: The CHD format has undergone a change with this
706release. The main reason for this change is to include some of the
707key metadata into the hashes for the CHDs. This ensures that the
708metadata is valid and prevents abuse.
709710
710The first impact you will find is that all of your CHD differencing
711files are invalid. Just delete your "diff" directory contents
712entirely.
713711
714The second impact is that all your existing CHDs will warn you that
715they have incorrect hashes. This is expected. Your old CHDs should
716still work fine, so if you can live with the "bad ROM" warnings, you
717don't really need to do anything. However, if this bugs you or you
718want to be "clean", you can update your CHDs, using this command
719line:
7120.131u1
713-------
720714
721   chdman -update <chdfile> <newchdfile>
722   
723for each one of your CHDs. This will take a while, but will produce
724CHDs that match the new checksums posted in the drivers.
725715
726
727
728716MAMETesters Bugs Fixed
729717----------------------
730- 03017: [Crash/Freeze] bmfinal: crash after cutting edge logo
731         (Phil Bennett)
732- 02875: [Sound] Any Game that uses AY-3-8910: Envelope Fix causes
733         notes tones to be played back incorrectly (couriersud)
734- 03026: [Graphics] retofinv, retofin1, retofin2: The remaining lives
735         are not shown. (Pierpaolo Prazzoli)
736- 02981: [Cheat System] CHEAT.C: MAX_ARGUMENTS doesn't seem to work.
737         (Pugsy)
738- 00827: [Graphics] wc90b1, wc90b2: On the Credit display screen, the
739         PCB shows the upper part of the stadium. (robiza)
740- 00230: [Graphics] troangel: I just checked mame emulation against my
741         pcb. (robiza)
742- 03018: [Sound] f1gpstr2: Sounds not playing (Phil Bennett)
718- 03144: [DIP/Input] piratpet: [possible] Button 2 skips level
719         (Fabio Priuli)
720- 03126: [Gameplay] sbishi: When Player 2 plays alone, strange things
721         happen. (David Haywood)
722- 03143: [Graphics] screwloo: screwy graphics area on one screen
723         (Pierpaolo Prazzoli)
724- 03129: [DIP/Input] xmen: Directional controls re-arranged
725         (Fabio Priuli)
726- 00487: [Misc.] groundfx: It has wrong default NVRAM settings,
727         especially about the lap number (1) and the coin/credit
728         settings (1/2). (Angelo Salese)
729- 03104: [Graphics] captaven and clones: No enemies appear in the
730         second phase. (Pierpaolo Prazzoli)
743731
744732
745733
746734Source Changes
747735--------------
748Fixed C140 ROM loading in winrun, winrun91 and driveyes [Phil Bennett]
736Deprecated device_set_info. Almost all devices had a NULL or empty
737function here. Remaining devices have been converted to have
738device-specific functions to do the same thing with proper type
739checking. CPUs still have a set_info function but it is CPU-specific
740now and no longer piggybacks on the general device function.
741[Aaron Giles]
749742
750Added Champion Italian PK blue board and promoted Champion Italian
751PK green board (previously citalian) and Champion Italian Cup
752(previously citaliana) to GAME_WORKING status
753[Mirko Buffoni, David Haywood]
754 - Added cpokerpk (also known as CPK blue board for the color of the
755    board)
756 - Renamed citalian -> cpokerpkg (green board, can be seen in rom too)
757 - Renamed citaliana -> citalcup
758 - added PAL decryption, making all games playable
759 - Updated input ports and fixed gfx layout to use 6 bitplanes like
760    all others
761 - Changed number10 and cpokerpk video udpate to not use transparency
743Changed UI to ignore selection from lightguns when off screen. This
744stops selection of Gun X Gun Y if you move the gun out of range.
745[Derrick Renaud]
762746
763Updated CHD format to version 4. Checksums are now computed and
764stored separately for raw data and metadata, and metadata is now
765checksummed by default. [Aaron Giles]
747Moved stv_vdp2_dynamic_res_change() function outside of VIDEO_UPDATE
748in ST-V. [Angelo Salese]
766749
767Updated chdman to support a generic metadata addition system:
768  chdman -addmetatext <chdfile> <tag> [<index>] <sourcefile>
769  chdman -addmetabin <chdfile> <tag> [<index>] <sourcefile>
770[Aaron Giles]
750Memory map merging for the NMK16 driver and cleaned-up some unneeded
751video code. [Angelo Salese]
771752
772Changed the CHD verify interfaces to pass back a structure containing
773all the necessary data for verification and fixing. [Aaron Giles]
753Made Hyper Pacman run with protection code from decapped MCU rather
754than simulation. [Guru, David Haywood]
774755
775NeoGeo update [Johnboy]
776 - maglordh - Renamed p1 to correct chip label (MichaelNet)
777 - Renamed maglordh to maglord (MVS) and maglord to maglordh (AES)
778 - whp - Renamed several roms to correct chip label (MichaelNet)
779 - kof2001 - Renamed p's to correct chip label; added note (MichaelNet)
780 - Added mv1c bios, redump/reverification required
781 - Updated documentation (see neogeo.c)
782 - cyberlip - Added correct m1 (Guru/Smitdogg)
783 - eightman - Removed BAD_DUMP from m1, is correct (Guru/Smitdogg)
756Added a large gfx decode using macros to allow the textures on hng64
757to be viewed, handy for verifying the dumps. [David Haywood]
784758
785Merged Casino Winner and Royal Casino drivers [Angelo Salese]
786 * Fixes Royal Casino colors;
787 * Added flip screen support to the driver;
788 * Changed Casino Winner to be a clone of Royal Casino;
789 * Cleaned-up the driver;
759Audited code and added savestate support to the following drivers:
760[MooglyGuy]
761 - dotrikun.c (dotrikun, dotriku2)
762 - espial.c (espial, netwars)
763 - zodiack.c (zodiack, dogfight, moguchan, percuss, bounty)
790764
791Fixed Midnight Landing gfx bitplanes [Angelo Salese]
765Merged memory maps in the Dottori Kun driver [MooglyGuy]
792766
793PGM updates: [Xing Xing, David Haywood]
794 - added kov2p205, martmasc romset
795 - fixed some descriptions
796 - experimental video change with a view to fix priorities on kov2
767Merged memory maps for the following drivers: [MooglyGuy]
768 - battlex.c, buggychl.c, bwing.c, carjmbre.c, cbuster.c, chaknpop.c
769 - changela.c, chqflag.c, circus.c, cischeat.c
770 - cave.c, circusc.c, citycon.c, cninja.c, combatsc.c, compgolf.c,
771    contra.c, cop01.c, cosmic.c, cps2.c, crimfght.c, crospang.c,
772    crshrace.c, and cshooter.c
773 - ssv.c
774 - dambustr.c, darius.c, darkhors.c, darkseal.c, dassault.c, dbz.c,
775    dcon.c, dday.c, ddenlovr.c, ddragon3.c, ddrible.c, dec0.c, dec8.c,
776    deco32.c, deco_mlc.c, deniam.c, dietgo.c, discoboy.c, diverboy.c,
777    dogfgt.c, dooyong.c, dragrace.c, dribling.c, drmicro.c
778 - egghunt.c, epos.c, esd16.c, espial.c, exedexes.c, exzisus.c
779 - f1gp.c, fastlane.c, firetrap.c, flkatck.c, flstory.c, freekick.c,
780    fromanc2.c, fromance.c, funkybee.c, funkyjet.c, funybubl.c,
781    fuukifg2.c, fuukifg3.c
782 - gaelco.c, gaelco2.c, gaiden.c, galaga.c, galastrm.c, galaxold.c,
783    galivan.c, gaplus.c, gbusters.c, gcpinbal.c, genesis.c, gijoe.c,
784    ginganin.c, glass.c, gng.c, goal92.c, goindol.c, gomoku.c,
785    gotcha.c, gotya.c, gridlee.c, gstriker.c, gumbo.c, gunbustr.c
786 - halleys.c, hanaawas.c, hanaroku.c, hcastle.c, hexa.c, hexion.c,
787    higemaru.c, hnayayoi.c, holeland.c, homedata.c, hshavoc.c,
788    hyhoo.c, hyperspt.c
797789
798Modified cdrom.c to expose metadata read/write functions, and changed
799chdman to use them. Also changed chdman to parse old-style metadata
800and convert it to new-style metadata. [Aaron Giles]
790Merged memory map in ltcasino.c, Lemmings, quizdna.c, pushman.c,
791popper.c, sshangha.c. [Angelo Salese]
801792
802Fixed regressed sound in the deco MLC driver. [Angelo Salese]
793Added irq acks to the snowbros.c driver and merged memory maps on it.
794[Angelo Salese]
803795
804Preliminary protection simulation in olds100a [XingXing]
796TLCS-900/H cpu core fixes: [Wilbert Pol]
797 - Reimplemented hdma
798 - Fixed bugs in the EX (mem), R instructions.
805799
806Added an older Japanese neogeo bios [Corrado Tomaselli]
800Merged memory map and worked out some sound related stuff in Pass.
801[Angelo Salese]
807802
808Improvements to Counter Steer [Angelo Salese]
803Hooked up standard paletteram16_xbgr() function instead of a custom
804one in sshangha.c driver. [Angelo Salese]
809805
810Added new function core_fload() to load a file into an allocated
811buffer. Updated src2html, regrep, and chdman tools to use this
812function where appropriate. [Aaron Giles]
806Replaced the use of CPU numbers with tags where possible across most
807drivers. [Fabio Priuli]
813808
814Fix f1gpstr2 sound regression [Phil Bennett]
809hng64.c improvements / changes: [David Haywood]
810 - Stripped out some old HNG64 code / some improvements
811 - disabled the floor stuff in Fatal Fury Wild Ambition (looking for a
812    cleaner implementation)
813 - disabled zooming code for the same reasons (it was causing many
814    issues)
815 - understood and implemented the 'auto-animate' registers for the
816    tilemaps (animated waterfalls etc. in Fatal Fury Wild Ambition)
817 - reorganized graphic decoding
818 - documented + hooked up 4bpp/8bpp select on layers.
819 - fixed tile flipping
820 - fixed a bug in the hng64 dma
815821
816Added default nvrams to sfbonus.c using rom_load_optional. This should
817save some time renaming and reparenting these in the future.
818[David Haywood]
822goldstar.c improvements / changes: [David Haywood]
823 - added scroll registers for the girl when enabled in attract mode
824 - documented how you can swap the blue/green bonus colours (but left
825    the code disabled, I think versions with it swapped probably just
826    have different proms)
827 - added gfxdecode for cmasterc
819828
820Minor video/psx.c changes that were needed for raycrisis.
821[David Haywood]
829Memory maps merges for the following drivers: [Angelo Salese]
830 * groundfx.c
831 * lastduel.c
832 * macrossp.c
833 * madmotor.c (also cleaned-up some video variables in it)
834 * mcatadv.c (also reduced a 1.0 clipping out volume setting)
835 * moo.c
822836
823Fixed Heavy Unit main CPU bankswitch. This fixes the enemy appearing
824in attract mode. [Mamesick]
837Changed the way memory allocation is handled. Rather than allocating
838in terms of bytes, allocations are now done in terms of objects. This
839is done via new set of macros that replace the malloc_or_die() macro:
825840
826Added text tilemap flickering to pzletime. It allows to see the
827selected options. [Pierpaolo Prazzoli]
841  alloc_or_die(t) - allocate memory for an object of type 't'
842  alloc_array_or_die(t,c) - allocate memory for an array of 'c' objects of type 't'
843  alloc_clear_or_die(t) - same as alloc_or_die but clears the memory
844  alloc_array_clear_or_die(t,c) - alloc_array_or_die with clearing
828845
829Changed the CPU cores to use the get_safe_token() pattern like other
830devices. [Aaron Giles]
846All original callers of malloc_or_die have been updated to call these
847new macros. If you just need an array of bytes, you can use
848alloc_array_or_die(UINT8, numbytes). [Aaron Giles]
831849
832System16 update [kanikani]
833 - Enabled some buttons previously marked as 'unused'.
834   Manuals say 'No Connection', but programs read them and do
835   something. i.e. button2 in Tetris: can rotate the piece
850Made a similar change to the auto_* allocation macros. In addition,
851added 'machine' as a required parameter to the auto-allocation macros,
852as the resource pools will eventually be owned by the machine object.
853The new macros are:
836854
837More Counter Steer progress. [Angelo Salese]
855  auto_alloc(m,t) - allocate memory for an object of type 't'
856  auto_alloc_array(m,t,c) - allocate memory for an array of 'c' objects of type 't'
857  auto_alloc_clear(m,t) - allocate and clear
858  auto_alloc_array_clear(m,t,c) - allocate and clear
838859
839Added PCB layout for Jumping Break and additional information.
840Corrected the sound clocks on PCBs that only have a 28MHz OSC. Only
841Super Lup Lup Puzzle has the 14.318180MHz OSC. Rearranged the rom
842def section to group the F-E1-16-0xx PCB based games in order.
843[Brian Troha]
860All original calls or auto_malloc have been updated to use the new
861macros. In addition, auto_realloc(), auto_strdup(),
862auto_astring_alloc(), and auto_bitmap_alloc() have been updated to
863take a machine parameter. [Aaron Giles]
844864
845troangel: better support of line scroll with wrap. The scroll offsets
846are split in LOW byte and HIGH byte. [robiza]
865Changed validity check allocations to not rely on auto_alloc* anymore
866because they are not done in the context of a machine. [Aaron Giles]
847867
848Add specific support for NEC VR4300/4310 CPUs. [R. Belmont]
868Removed of SMH_BANKn macros. Just use SMH_BANK(n) instead, which is
869what the previous macros mapped to anyhow. [Aaron Giles]
849870
850Fixed paletteram in Super Crowns Golf. Hooked up text background.
871Added missing casts and made other tweaks to appease some more strict
872settings on the compiler. [Aaron Giles]
873
874Merged memory maps in the seta.c, sf.c, nbmj8688.c, megasys1.c
875drivers. [Angelo Salese]
876
877Merged memory maps in the overdriv.c and demoted it tothe GNW flag.
851878[Angelo Salese]
852879
853Updated CHD hashes. [Yasuhiro Ogawa, Aaron Giles, David Haywood]
880Added engine noise hook-up to Chequered Flag. [Angelo Salese]
854881
855Added default eeprom to skullfng, so that it appears less broken by
856default. (doesn't boot without one) [David Haywood]
882Fixed nested NMIs on Chequered Flag sound cpu, this fixes the sound
883loops and the music tempo. [Phil Bennett]
857884
858wc90b1 and wc90b2: fix fg and bg vertical scroll [robiza]
885Memory maps merges for the following drivers: [Angelo Salese]
886 * metlclsh.c
887 * mexico86.c (also added a basic hook-up for the 4p communication cpu,
888   disabled by default)
889 * mirage.c
890 * mjkjidai.c
891 * mjsister.c
892 * mogura.c
893 * news.c
894 * ohmygod.c
895 * ojankohs.c (also cleaned-up some video variables in it)
896 * oneshot.c
897 * opwolf.c
859898
860Implemented a multi-sprite bit in toaplan2 driver. [robiza]
899Fixed player controls in the 4 player version of tank force (thanks to
900tip posted by sxevious on mantis #3127) [David Haywood]
861901
862Changed mapping of start key in multfish.c to standard key (1) like
863other gambling games, added extra set. [David Haywood]
902Memory maps merges for the following drivers: [Angelo Salese]
903 * mayumi.c (also cleaned-up the video routines)
904 * mazerbla.c
905 * momoko.c
906 * mosaic.c
907 * mouser.c
908 * mrflea.c
909 * mrjong.c (also cleaned-up the spriteram routines)
910 * srmp2.c
911 * shaolins.c
912 * shisen.c
913 * shootout.c (and cleaned-up the NMIs on coin insertions)
914 * sidearms.c
915 * sidepckt.c (merged the two per-game memory maps and moved the
916    protection simulation hook-up to be called on DRIVER_INIT)
917 * skyarmy.c
918 * skyfox.c (and cleaned-up the NMIs on coin insertions)
919 * skyraid.c
920 * slapfght.c (also cleaned-up the ram sharing)
921 * slapshot.c
922 * spbactn.c
923 * spcforce.c
924 * spdodgeb.c
925 * speedspn.c
926 * senjyo.c
927 * seta2.c
928 * sfkick.c
929 * shangha3.c
930 * puckpkmn.c
931 * punchout.c
932 * qdrmfgp.c
933 * quizpani.c
934 * rabbit.c
935 * rainbow.c
936 * rcorsair.c
937 * redclash.c (also cleaned-up the irq/nmi generation on coin
938    insertion)
939 * renegade.c
940 * rmhaihai.c
941 * rockrage.c
942 * rocnrope.c
943 * rollerg.c
944 * rollrace.c
945 * runaway.c
946 * rungun.c
947 * sangho.c
948 * sauro.c (also cleaned-up a video function)
949 * sbasketb.c
950 * sbugger.c
951 * scregg.c
952 * segae.c
953 * powerins.c
954 * psikyo.c
955 * psikyo4.c
956 * psikyosh.c
957 * rohga.c
958 * sbugger.c
959 * spy.c
960 * nycaptor.c
961 * olibochu.c
962 * othldrby.c
963 * pandoras.c
964 * parodius.c
965 * pbaction.c
966 * pcktgal.c
967 * pingpong.c
968 * pirates.c
969 * pitnrun.c
970 * pktgaldx.
971 * pokechmp.c
972 * popeye.c
973 * nbmj9195.c
974 * niyanpai.c
975 * ninjaw.c
976 * metro.c
977 * mitchell.c
978 * ms32.c
979 * msisaac.c
980 * mugsmash.c
981 * lkage.c
982 * lsasquad.c
983 * lwings.c
984 * m62.c
985 * m90.c
986 * magmax.c
987 * mainevt.c
988 * marinedt.c
989 * markham.c
990 * mastboy.c
991 * matmania.c
992 * megadriv.c
993 * megazone.c
994 * karnov.c
995 * kchamp.c
996 * kingobox.c
997 * klax.c
998 * koikoi.c
999 * konamigq.c
1000 * ladyfrog.c
1001 * liberate.c
8641002
865Fixed bug where chdman -extract would not truncate to the logical
866size. [Aaron Giles]
1003Modified my coin_insertion() function to use ASSERT & CLEAR instead
1004of PULSE_LINE in cntsteer.c & ssozumo.c. [Angelo Salese]
8671005
868Silenced out heavy accesses to Sound RAM expansion area for Stress
869Busters [Angelo Salese]
1006Made sure that both the RESET and BUSREQ lines are honored by the
1007megadriv sound cpu. [Wilbert Pol]
8701008
871Added better descriptions and dates to a number of drivers in the
872mamedriv.c file. [Yasuhiro Ogawa]
1009Properly hooked-up player 2 mahjong panel in mj4simai. [Angelo Salese]
8731010
874Minor hack to fix start countdown sound bug in the Buggy Boys.
875[Phil Bennett]
1011Moved paletteram_IIBBGGRR_w() from senjyo.c to emu/video/generic.c.
1012[Angelo Salese]
8761013
877Added idle skipping and a number of new sets to the Naomi driver.
878[David Haywood]
1014Removed deprecat.h dependancy for usgames.c. [Angelo Salese]
8791015
880Burger Time: Added resistor values measured on real pcb [Anoid]
1016Add READY line readback to the SN76496 core, cleaned up the structs a
1017bit, cleaned up comments, added more TODOs, Fixed some unsaved
1018savestate related stuff. [Lord Nightmare]
8811019
882Adjusted volume in the galaxian driver. [couriersud]
1020Added sn76496 ready line hook-up for spcforce.c, doesn't make a
1021difference since it's not actually used. [Angelo Salese]
8831022
884Adjusted Volume and removed dc component from sound in the gyruss
885driver. [couriersud]
1023Added RTC emulation for hng64 driver [Angelo Salese]
8861024
887AY-3-8910 improvements: [couriersud]
888 * Fixed Gyruss audio regression
889 * Measured RU and RD on AY-3-8910
890 * Modelled ZX Spectrum audio circuit in SwitcherCAD and derived
891    resistor values for AY-3-8910
1025Fixed sprite trail for mnight and robokid [kanikani]
8921026
893MIPS III: Update RA before executing the delay slot. [R. Belmont]
1027Factored out some more MESS specific code for Atari 8bit.
1028[Fabio Priuli]
8941029
895Added inputs for galaxia and astrowar. Galaxia is semi-playable.
896Note: After inserting a coin, it can take a few seconds to respond.
897[Robbbert]
1030Splitted Naomi / Atomiswave memory maps and improved sorting of the
1031driver. [Angelo Salese]
8981032
899Fixed build of ldplayer on OS X. Since the CUSTOM sound module no
900longer exists, I arbitrarily changed it to WAVE, as ar gets upset if
901it has no input files. I also removed the -all_load flag for ldplayer
902from the main makefile as it upsets the linker on OS X. [Vas Crabb]
1033Added sound to Pocket Gal Deluxe (bootleg) [Angelo Salese]
9031034
904Fix build for PPC64 Linux. (This slightly messes up static branch
905prediction hints on OS X and AIX, but OS X for PPC64 is dead, and
906no-one builds MAME for AIX, and it will still build, anyway.)
907[Vas Crabb]
1035lordgun - Fix: P1 Button2 is really P2 Button1. [Cananas]
9081036
909Paramaterise the arguments to check for NULL in the ATTR_NONNULL macro
910rather than just checking the first argument. This requires compiler
911support for C99 variadic macros (MSVC2005 and GCC4 have this AFAIK).
912[Vas Crabb]
1037Changed Lunar Lander thrust control to a pedal. This more accurately
1038emulates the control. Note: the current code uses IPT_PADDLE. This
1039causes the game to start with the thrust at 50%. This is not correct.
1040The control is really a hand operated pedal. [Derrick Renaud]
9131041
914Z80PIO: When outputting from a port to the hardware in pio mode 3,
915only those bits defined by the mask should be output. Mame currently
916outputs everything. [Robbbert]
1042Merged memory maps for nycaptor, nbmj8991, nbmj8891, mystwarr.
1043[Angelo Salese]
9171044
918Changed the One-Shot List or Selectable value cheats to display "Set"
919instead of "Off". Also stopped the cheat options being activated in
920order when you are going through the possibilities in this case.
921These cheats are now activated by pressing ENTER after you have
922chosen an option. [Pugsy]
1045First layer of memory map merging for namcos2.c and namcos21.c, needs
1046a second hand in order to remove all the SMH references (they both
1047are macroized to hell). [Angelo Salese]
9231048
1049Fixed Yellow Cab (Japan) booting, promoted to working status
1050[Angelo Salese]
9241051
1052Attempted to fix colors in Koi Koi Part 2 [Angelo Salese]
9251053
1054Lowered DAC volume in Karate Champ from 0.50 to 0.15, it was having
1055sound clipping problems since day one. [Angelo Salese]
1056
1057Cleaned-up HNG64 system ports. [Angelo Salese]
1058
1059Changed the z80_bank_addr in megadriv.c into a simple 9 bit shift
1060register. Fixes mantis 2817.  [Enik Land]
1061
1062Improved interrupt handling for the 8/16 bit H8s. [R. Belmont]
1063
1064System 23: hooked up serial comms between subcpu and I/O board.
1065[R. Belmont]
1066
1067Added a driver for Irem M14 HW. [Angelo Salese]
1068
1069Removed deprecat.h dependancy for kopunch.c. [Angelo Salese]
1070
1071Naomi: hacked up 3D renderer. Still quite preliminary but allows most
1072games to show graphics. [Olivier Galibert, David Haywood]
1073
1074Converted the WAVE sound device to stereo (for MESS). [Curt Coder]
1075
1076Various improvements to Parent Jack driver. [Tomasz Slanina]
1077
1078Modified mahjong games in Naomi to be loaded with a specific
1079configuration, will add the proper JVS hook-up later. [Angelo Salese]
1080
1081Added proper MCU dump for Black Tiger.
1082[Dr. Decapitator, Guru, Angelo Salese]
1083
1084Fixed display of the i8085's SP register when in the debugger.
1085[MooglyGuy]
1086
1087Added proper MCU dump for Meikyuu Hunter G.
1088[Dr. Decapitator, Guru, Angelo Salese]
1089
1090Moved Taito 'skip to next level' buttons from BUTTON_2 to Q/W keys.
1091[Fabio Priuli]
1092
1093Fix MCS51 disassembler to work properly when there are two memory
1094arguments (the second would overwrite the first). [Aaron Giles]
1095
1096Added and began hooking up the 8751's for the System 1 games. Still
1097some work to do. [Aaron Giles]
1098
1099Added proper JVS I/O board init string for Idol Janshi Suchie-Pai 3
1100to allow it to boot. [Angelo Salese]
1101
1102Corrected sauro main cpu to 5Mhz and YM3812 to 2.5Mhz as verified on
1103the pcb. [Corrado Tomaselli]
1104
1105Improved protection emulation in galpani2 driver: [Luis Faria]
1106 - modified somewhat the protection handling, geeting rid of the need
1107    to call galpani2_mcu_run from VIDEO_UPDATE, as that function is
1108    performed by CPU2's INT7 and it now works. And added support for
1109    command 2, making gp2se go into demo mode and allowing to go
1110    ingame, nice skulls! ;-) Unfortunately, this set is still not
1111    playable because of missing gals in the background and sometimes
1112    there's an ADDRESS ERROR, causing a reset. Included in these
1113    changes, I added support for MCU triggering by CPU2.
1114 - changed some 8 bit writes disguised as 16 bit to AM_WRITE8 and
1115    AM_DEVWRITE8 and some AM_WRITE(SMH_NOP)s to AM_WRITENOP.
1116 - "crystallized" the clocks of the M68000s and OKIs, deriving the
1117    latter from the former.
1118 - fixed a Copy&Paste mistake I made in the previous submission, in
1119    the sound rom mappings for galpani2/2t/2g.
1120 - reduced the input port definition duplication by using PORT_INCLUDE
1121    where applicable instead of defining everything again.
1122 - reduced the CPU#2 Code region size to the effectively used size,
1123    and expanded the CPU#2 Backgrounds Data region size to the maximum
1124    usable size, making it the same for all sets.
1125
1126Fixed bug when setting breakpoints on Z80 CPUs at addresses A-F.
1127[Xander Xander]
1128
1129
1130
9261131New games added or promoted from NOT_WORKING status
9271132---------------------------------------------------
928Buggy Boy/Speed Buggy (cockpit) [Phil Bennett]
929Chaos Heat [Olivier Galibert]
930Ray Crisis [Olivier Galibert, David Haywood]
931Chaos Heat [Olivier Galibert, David Haywood]
932Flip Maze [Olivier Galibert, David Haywood]
933Super Puzzle Bobble [Olivier Galibert, David Haywood]
934Soutenryu [Olivier Galibert, David Haywood]
935Shanghai Shoryu Sairin [Olivier Galibert, David Haywood]
936Psyvariar -Medium Unit- [Olivier Galibert, David Haywood]
937Psyvariar -Revision- [Olivier Galibert, David Haywood]
938Zoku Otenamihaiken [Olivier Galibert, David Haywood]
939Usagi [Olivier Galibert, David Haywood, Angelo Salese]
940Mahjong Oh [Olivier Galibert, David Haywood, Angelo Salese]
941XII Stag [Olivier Galibert, David Haywood]
942Jumping Break [Pierpaolo Prazzoli]
943Champion Super III [Mirko Buffoni, David Haywood, Angelo Salese]
944Champion Super 2 [Mirko Buffoni, David Haywood]
1133Pit Boss Supertouch 30 [Mariusz Wojcieszek]
9451134
9461135
9471136
9481137New clones added
9491138----------------
950Millennium 4000 (version 1.5) [Mirko Buffoni]
951American Poker II (bootleg, v4) [Mirko Buffoni]
1139Legend of Kage (oldest) [Uki]
1140Final Star Force (Japan) [Uki]
1141Yellow Cab (Japan) [Uki]
1142Zero Team (set 4) - not working [Uki]
1143The Combatribes (Japan) [Chack'n]
1144Super Xevious (Japan) [TH60]
1145Crazy Kong 2 (Japan) [Team Japump!!!]
1146Aliens (Asia) [Irongiant]
1147Noraut Joker Poker [Alan Griffin]
1148Pit Fighter (Rev 5) [Smitdogg, The Dumping Union]
1149Cabal (bootleg set 2) [Klaus]
1150Special Criminal Investigation (Negro Torino hack) [Corrado Tomaselli]
1151Cruis'n World v1.7 [MSN]
9521152
9531153
9541154
9551155New games marked as GAME_NOT_WORKING
9561156------------------------------------
957Go By RC [Olivier Galibert, David Haywood]
958Space Invaders Anniversary [Olivier Galibert, David Haywood]
959Night Raid [Olivier Galibert, David Haywood]
960Tokyo Cop (Italy) [David Haywood]
961California Chase [Angelo Salese]
962Street Games II [Guru, Angelo Salese]
963Street Games [Smitdogg, Angelo Salese]
964Bonanza [Smitdogg, Angelo Salese]
965Thunderbirds [AGEMAME]
966
1157Ferrari F355 Challenge [Guru]
1158Samurai Shodown 64 [Guru]
1159Dancing Stage Featuring Disney's Rave [smf/Mike DX]
1160Xtreme Rally / Off Beat Racer! [Guru]
1161Beast Busters 2nd Nightmare [Guru]
1162Skimaxx [Phil Bennett]
1163Panic Park (PNP2 Ver. A) [Guru]
1164Triple Star 2000 [f205v]
1165Super Star [f205v]
1166Gigas [Andy Welburn]
1167Shadow Dancer (Mega-Tech)
1168  [Smitdogg, cricri_pingouin, incog, B. Sparks, ANY]
1169Streets of Rage (Mega-Tech)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team